@@ -103,7 +103,7 @@ public class Safebrowsing extends com.google.api.client.googleapis.services.json
103103 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
104104 * <li>Android: {@code newCompatibleTransport} from
105105 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
106- * <li>Java: {@link com.google.api.client.googleapis .javanet.GoogleNetHttpTransport#newTrustedTransport()}
106+ * <li>Java: {@code com.google.api.client.http .javanet.NetHttpTransport}</li>
107107 * </li>
108108 * </ul>
109109 * @param jsonFactory JSON factory, which may be:
@@ -154,7 +154,7 @@ public HashList hashList() {
154154 public class HashList {
155155
156156 /**
157- * Get the latest contents of a hash list. A hash list may either by a threat list or a non-threat
157+ * Gets the latest contents of a hash list. A hash list may either by a threat list or a non-threat
158158 * list such as the Global Cache. This is a standard Get method as defined by
159159 * https://google.aip.dev/131 and the HTTP method is also GET.
160160 *
@@ -178,8 +178,8 @@ public class Get extends SafebrowsingRequest<com.google.api.services.safebrowsin
178178 private static final String REST_PATH = "v5/hashList/{name}" ;
179179
180180 /**
181- * Get the latest contents of a hash list. A hash list may either by a threat list or a non-threat
182- * list such as the Global Cache. This is a standard Get method as defined by
181+ * Gets the latest contents of a hash list. A hash list may either by a threat list or a non-
182+ * threat list such as the Global Cache. This is a standard Get method as defined by
183183 * https://google.aip.dev/131 and the HTTP method is also GET.
184184 *
185185 * Create a request for the method "hashList.get".
@@ -399,7 +399,7 @@ public HashLists hashLists() {
399399 public class HashLists {
400400
401401 /**
402- * Get multiple hash lists at once. It is very common for a client to need to get multiple hash
402+ * Gets multiple hash lists at once. It is very common for a client to need to get multiple hash
403403 * lists. Using this method is preferred over using the regular Get method multiple times. This is a
404404 * standard batch Get method as defined by https://google.aip.dev/231 and the HTTP method is also
405405 * GET.
@@ -422,7 +422,7 @@ public class BatchGet extends SafebrowsingRequest<com.google.api.services.safebr
422422 private static final String REST_PATH = "v5/hashLists:batchGet" ;
423423
424424 /**
425- * Get multiple hash lists at once. It is very common for a client to need to get multiple hash
425+ * Gets multiple hash lists at once. It is very common for a client to need to get multiple hash
426426 * lists. Using this method is preferred over using the regular Get method multiple times. This is
427427 * a standard batch Get method as defined by https://google.aip.dev/231 and the HTTP method is
428428 * also GET.
@@ -630,7 +630,7 @@ public BatchGet set(String parameterName, Object value) {
630630 }
631631 }
632632 /**
633- * List hash lists. In the V5 API, Google will never remove a hash list that has ever been returned
633+ * Lists hash lists. In the V5 API, Google will never remove a hash list that has ever been returned
634634 * by this method. This enables clients to skip using this method and simply hard-code all hash
635635 * lists they need. This is a standard List method as defined by https://google.aip.dev/132 and the
636636 * HTTP method is GET.
@@ -653,7 +653,7 @@ public class List extends SafebrowsingRequest<com.google.api.services.safebrowsi
653653 private static final String REST_PATH = "v5/hashLists" ;
654654
655655 /**
656- * List hash lists. In the V5 API, Google will never remove a hash list that has ever been
656+ * Lists hash lists. In the V5 API, Google will never remove a hash list that has ever been
657657 * returned by this method. This enables clients to skip using this method and simply hard-code
658658 * all hash lists they need. This is a standard List method as defined by
659659 * https://google.aip.dev/132 and the HTTP method is GET.
@@ -814,7 +814,7 @@ public Hashes hashes() {
814814 public class Hashes {
815815
816816 /**
817- * Search for full hashes matching the specified prefixes. This is a custom method as defined by
817+ * Searches for full hashes matching the specified prefixes. This is a custom method as defined by
818818 * https://google.aip.dev/136 (the custom method refers to this method having a custom name within
819819 * Google's general API development nomenclature; it does not refer to using a custom HTTP method).
820820 *
@@ -836,7 +836,7 @@ public class Search extends SafebrowsingRequest<com.google.api.services.safebrow
836836 private static final String REST_PATH = "v5/hashes:search" ;
837837
838838 /**
839- * Search for full hashes matching the specified prefixes. This is a custom method as defined by
839+ * Searches for full hashes matching the specified prefixes. This is a custom method as defined by
840840 * https://google.aip.dev/136 (the custom method refers to this method having a custom name within
841841 * Google's general API development nomenclature; it does not refer to using a custom HTTP
842842 * method).
@@ -957,6 +957,156 @@ public Search set(String parameterName, Object value) {
957957
958958 }
959959
960+ /**
961+ * An accessor for creating requests from the Urls collection.
962+ *
963+ * <p>The typical use is:</p>
964+ * <pre>
965+ * {@code Safebrowsing safebrowsing = new Safebrowsing(...);}
966+ * {@code Safebrowsing.Urls.List request = safebrowsing.urls().list(parameters ...)}
967+ * </pre>
968+ *
969+ * @return the resource collection
970+ */
971+ public Urls urls () {
972+ return new Urls ();
973+ }
974+
975+ /**
976+ * The "urls" collection of methods.
977+ */
978+ public class Urls {
979+
980+ /**
981+ * Searches for URLs matching known threats. Each URL and it's host-suffix and path-prefix
982+ * expressions (up to a limited depth) are checked. This means that the response may contain URLs
983+ * that were not included in the request, but are expressions of the requested URLs.
984+ *
985+ * Create a request for the method "urls.search".
986+ *
987+ * This request holds the parameters needed by the safebrowsing server. After setting any optional
988+ * parameters, call the {@link Search#execute()} method to invoke the remote operation.
989+ *
990+ * @return the request
991+ */
992+ public Search search () throws java .io .IOException {
993+ Search result = new Search ();
994+ initialize (result );
995+ return result ;
996+ }
997+
998+ public class Search extends SafebrowsingRequest <com .google .api .services .safebrowsing .v5 .model .GoogleSecuritySafebrowsingV5SearchUrlsResponse > {
999+
1000+ private static final String REST_PATH = "v5/urls:search" ;
1001+
1002+ /**
1003+ * Searches for URLs matching known threats. Each URL and it's host-suffix and path-prefix
1004+ * expressions (up to a limited depth) are checked. This means that the response may contain URLs
1005+ * that were not included in the request, but are expressions of the requested URLs.
1006+ *
1007+ * Create a request for the method "urls.search".
1008+ *
1009+ * This request holds the parameters needed by the the safebrowsing server. After setting any
1010+ * optional parameters, call the {@link Search#execute()} method to invoke the remote operation.
1011+ * <p> {@link
1012+ * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1013+ * be called to initialize this instance immediately after invoking the constructor. </p>
1014+ *
1015+ * @since 1.13
1016+ */
1017+ protected Search () {
1018+ super (Safebrowsing .this , "GET" , REST_PATH , null , com .google .api .services .safebrowsing .v5 .model .GoogleSecuritySafebrowsingV5SearchUrlsResponse .class );
1019+ }
1020+
1021+ @ Override
1022+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1023+ return super .executeUsingHead ();
1024+ }
1025+
1026+ @ Override
1027+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1028+ return super .buildHttpRequestUsingHead ();
1029+ }
1030+
1031+ @ Override
1032+ public Search set$Xgafv (java .lang .String $Xgafv ) {
1033+ return (Search ) super .set$Xgafv ($Xgafv );
1034+ }
1035+
1036+ @ Override
1037+ public Search setAccessToken (java .lang .String accessToken ) {
1038+ return (Search ) super .setAccessToken (accessToken );
1039+ }
1040+
1041+ @ Override
1042+ public Search setAlt (java .lang .String alt ) {
1043+ return (Search ) super .setAlt (alt );
1044+ }
1045+
1046+ @ Override
1047+ public Search setCallback (java .lang .String callback ) {
1048+ return (Search ) super .setCallback (callback );
1049+ }
1050+
1051+ @ Override
1052+ public Search setFields (java .lang .String fields ) {
1053+ return (Search ) super .setFields (fields );
1054+ }
1055+
1056+ @ Override
1057+ public Search setKey (java .lang .String key ) {
1058+ return (Search ) super .setKey (key );
1059+ }
1060+
1061+ @ Override
1062+ public Search setOauthToken (java .lang .String oauthToken ) {
1063+ return (Search ) super .setOauthToken (oauthToken );
1064+ }
1065+
1066+ @ Override
1067+ public Search setPrettyPrint (java .lang .Boolean prettyPrint ) {
1068+ return (Search ) super .setPrettyPrint (prettyPrint );
1069+ }
1070+
1071+ @ Override
1072+ public Search setQuotaUser (java .lang .String quotaUser ) {
1073+ return (Search ) super .setQuotaUser (quotaUser );
1074+ }
1075+
1076+ @ Override
1077+ public Search setUploadType (java .lang .String uploadType ) {
1078+ return (Search ) super .setUploadType (uploadType );
1079+ }
1080+
1081+ @ Override
1082+ public Search setUploadProtocol (java .lang .String uploadProtocol ) {
1083+ return (Search ) super .setUploadProtocol (uploadProtocol );
1084+ }
1085+
1086+ /** Required. The URLs to be looked up. Clients MUST NOT send more than 50 URLs. */
1087+ @ com .google .api .client .util .Key
1088+ private java .util .List <java .lang .String > urls ;
1089+
1090+ /** Required. The URLs to be looked up. Clients MUST NOT send more than 50 URLs.
1091+ */
1092+ public java .util .List <java .lang .String > getUrls () {
1093+ return urls ;
1094+ }
1095+
1096+ /** Required. The URLs to be looked up. Clients MUST NOT send more than 50 URLs. */
1097+ public Search setUrls (java .util .List <java .lang .String > urls ) {
1098+ this .urls = urls ;
1099+ return this ;
1100+ }
1101+
1102+ @ Override
1103+ public Search set (String parameterName , Object value ) {
1104+ return (Search ) super .set (parameterName , value );
1105+ }
1106+ }
1107+
1108+ }
1109+
9601110 /**
9611111 * Builder for {@link Safebrowsing}.
9621112 *
@@ -989,8 +1139,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
9891139 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
9901140 * <li>Android: {@code newCompatibleTransport} from
9911141 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
992- * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
993- * </li>
1142+ * <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
9941143 * </ul>
9951144 * @param jsonFactory JSON factory, which may be:
9961145 * <ul>
0 commit comments