@@ -919,6 +919,143 @@ public List set(String parameterName, Object value) {
919919 return (List ) super .set (parameterName , value );
920920 }
921921 }
922+ /**
923+ * Searches Agents in a given project and location.
924+ *
925+ * Create a request for the method "agents.search".
926+ *
927+ * This request holds the parameters needed by the agentregistry server. After setting any optional
928+ * parameters, call the {@link Search#execute()} method to invoke the remote operation.
929+ *
930+ * @param parent Required. Parent value for SearchAgentsRequest. Format: `projects/{project}/locations/{location}`.
931+ * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.SearchAgentsRequest}
932+ * @return the request
933+ */
934+ public Search search (java .lang .String parent , com .google .api .services .agentregistry .v1alpha .model .SearchAgentsRequest content ) throws java .io .IOException {
935+ Search result = new Search (parent , content );
936+ initialize (result );
937+ return result ;
938+ }
939+
940+ public class Search extends AgentRegistryRequest <com .google .api .services .agentregistry .v1alpha .model .SearchAgentsResponse > {
941+
942+ private static final String REST_PATH = "v1alpha/{+parent}/agents:search" ;
943+
944+ private final java .util .regex .Pattern PARENT_PATTERN =
945+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+$" );
946+
947+ /**
948+ * Searches Agents in a given project and location.
949+ *
950+ * Create a request for the method "agents.search".
951+ *
952+ * This request holds the parameters needed by the the agentregistry server. After setting any
953+ * optional parameters, call the {@link Search#execute()} method to invoke the remote operation.
954+ * <p> {@link
955+ * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
956+ * be called to initialize this instance immediately after invoking the constructor. </p>
957+ *
958+ * @param parent Required. Parent value for SearchAgentsRequest. Format: `projects/{project}/locations/{location}`.
959+ * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.SearchAgentsRequest}
960+ * @since 1.13
961+ */
962+ protected Search (java .lang .String parent , com .google .api .services .agentregistry .v1alpha .model .SearchAgentsRequest content ) {
963+ super (AgentRegistry .this , "POST" , REST_PATH , content , com .google .api .services .agentregistry .v1alpha .model .SearchAgentsResponse .class );
964+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
965+ if (!getSuppressPatternChecks ()) {
966+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
967+ "Parameter parent must conform to the pattern " +
968+ "^projects/[^/]+/locations/[^/]+$" );
969+ }
970+ }
971+
972+ @ Override
973+ public Search set$Xgafv (java .lang .String $Xgafv ) {
974+ return (Search ) super .set$Xgafv ($Xgafv );
975+ }
976+
977+ @ Override
978+ public Search setAccessToken (java .lang .String accessToken ) {
979+ return (Search ) super .setAccessToken (accessToken );
980+ }
981+
982+ @ Override
983+ public Search setAlt (java .lang .String alt ) {
984+ return (Search ) super .setAlt (alt );
985+ }
986+
987+ @ Override
988+ public Search setCallback (java .lang .String callback ) {
989+ return (Search ) super .setCallback (callback );
990+ }
991+
992+ @ Override
993+ public Search setFields (java .lang .String fields ) {
994+ return (Search ) super .setFields (fields );
995+ }
996+
997+ @ Override
998+ public Search setKey (java .lang .String key ) {
999+ return (Search ) super .setKey (key );
1000+ }
1001+
1002+ @ Override
1003+ public Search setOauthToken (java .lang .String oauthToken ) {
1004+ return (Search ) super .setOauthToken (oauthToken );
1005+ }
1006+
1007+ @ Override
1008+ public Search setPrettyPrint (java .lang .Boolean prettyPrint ) {
1009+ return (Search ) super .setPrettyPrint (prettyPrint );
1010+ }
1011+
1012+ @ Override
1013+ public Search setQuotaUser (java .lang .String quotaUser ) {
1014+ return (Search ) super .setQuotaUser (quotaUser );
1015+ }
1016+
1017+ @ Override
1018+ public Search setUploadType (java .lang .String uploadType ) {
1019+ return (Search ) super .setUploadType (uploadType );
1020+ }
1021+
1022+ @ Override
1023+ public Search setUploadProtocol (java .lang .String uploadProtocol ) {
1024+ return (Search ) super .setUploadProtocol (uploadProtocol );
1025+ }
1026+
1027+ /**
1028+ * Required. Parent value for SearchAgentsRequest. Format:
1029+ * `projects/{project}/locations/{location}`.
1030+ */
1031+ @ com .google .api .client .util .Key
1032+ private java .lang .String parent ;
1033+
1034+ /** Required. Parent value for SearchAgentsRequest. Format: `projects/{project}/locations/{location}`.
1035+ */
1036+ public java .lang .String getParent () {
1037+ return parent ;
1038+ }
1039+
1040+ /**
1041+ * Required. Parent value for SearchAgentsRequest. Format:
1042+ * `projects/{project}/locations/{location}`.
1043+ */
1044+ public Search setParent (java .lang .String parent ) {
1045+ if (!getSuppressPatternChecks ()) {
1046+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
1047+ "Parameter parent must conform to the pattern " +
1048+ "^projects/[^/]+/locations/[^/]+$" );
1049+ }
1050+ this .parent = parent ;
1051+ return this ;
1052+ }
1053+
1054+ @ Override
1055+ public Search set (String parameterName , Object value ) {
1056+ return (Search ) super .set (parameterName , value );
1057+ }
1058+ }
9221059
9231060 }
9241061 /**
@@ -1684,6 +1821,146 @@ public List set(String parameterName, Object value) {
16841821 return (List ) super .set (parameterName , value );
16851822 }
16861823 }
1824+ /**
1825+ * Searches McpServers in a given project and location.
1826+ *
1827+ * Create a request for the method "mcpServers.search".
1828+ *
1829+ * This request holds the parameters needed by the agentregistry server. After setting any optional
1830+ * parameters, call the {@link Search#execute()} method to invoke the remote operation.
1831+ *
1832+ * @param parent Required. Parent value for SearchMcpServersRequest. Format:
1833+ * `projects/{project}/locations/{location}`.
1834+ * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.SearchMcpServersRequest}
1835+ * @return the request
1836+ */
1837+ public Search search (java .lang .String parent , com .google .api .services .agentregistry .v1alpha .model .SearchMcpServersRequest content ) throws java .io .IOException {
1838+ Search result = new Search (parent , content );
1839+ initialize (result );
1840+ return result ;
1841+ }
1842+
1843+ public class Search extends AgentRegistryRequest <com .google .api .services .agentregistry .v1alpha .model .SearchMcpServersResponse > {
1844+
1845+ private static final String REST_PATH = "v1alpha/{+parent}/mcpServers:search" ;
1846+
1847+ private final java .util .regex .Pattern PARENT_PATTERN =
1848+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+$" );
1849+
1850+ /**
1851+ * Searches McpServers in a given project and location.
1852+ *
1853+ * Create a request for the method "mcpServers.search".
1854+ *
1855+ * This request holds the parameters needed by the the agentregistry server. After setting any
1856+ * optional parameters, call the {@link Search#execute()} method to invoke the remote operation.
1857+ * <p> {@link
1858+ * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1859+ * be called to initialize this instance immediately after invoking the constructor. </p>
1860+ *
1861+ * @param parent Required. Parent value for SearchMcpServersRequest. Format:
1862+ * `projects/{project}/locations/{location}`.
1863+ * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.SearchMcpServersRequest}
1864+ * @since 1.13
1865+ */
1866+ protected Search (java .lang .String parent , com .google .api .services .agentregistry .v1alpha .model .SearchMcpServersRequest content ) {
1867+ super (AgentRegistry .this , "POST" , REST_PATH , content , com .google .api .services .agentregistry .v1alpha .model .SearchMcpServersResponse .class );
1868+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
1869+ if (!getSuppressPatternChecks ()) {
1870+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
1871+ "Parameter parent must conform to the pattern " +
1872+ "^projects/[^/]+/locations/[^/]+$" );
1873+ }
1874+ }
1875+
1876+ @ Override
1877+ public Search set$Xgafv (java .lang .String $Xgafv ) {
1878+ return (Search ) super .set$Xgafv ($Xgafv );
1879+ }
1880+
1881+ @ Override
1882+ public Search setAccessToken (java .lang .String accessToken ) {
1883+ return (Search ) super .setAccessToken (accessToken );
1884+ }
1885+
1886+ @ Override
1887+ public Search setAlt (java .lang .String alt ) {
1888+ return (Search ) super .setAlt (alt );
1889+ }
1890+
1891+ @ Override
1892+ public Search setCallback (java .lang .String callback ) {
1893+ return (Search ) super .setCallback (callback );
1894+ }
1895+
1896+ @ Override
1897+ public Search setFields (java .lang .String fields ) {
1898+ return (Search ) super .setFields (fields );
1899+ }
1900+
1901+ @ Override
1902+ public Search setKey (java .lang .String key ) {
1903+ return (Search ) super .setKey (key );
1904+ }
1905+
1906+ @ Override
1907+ public Search setOauthToken (java .lang .String oauthToken ) {
1908+ return (Search ) super .setOauthToken (oauthToken );
1909+ }
1910+
1911+ @ Override
1912+ public Search setPrettyPrint (java .lang .Boolean prettyPrint ) {
1913+ return (Search ) super .setPrettyPrint (prettyPrint );
1914+ }
1915+
1916+ @ Override
1917+ public Search setQuotaUser (java .lang .String quotaUser ) {
1918+ return (Search ) super .setQuotaUser (quotaUser );
1919+ }
1920+
1921+ @ Override
1922+ public Search setUploadType (java .lang .String uploadType ) {
1923+ return (Search ) super .setUploadType (uploadType );
1924+ }
1925+
1926+ @ Override
1927+ public Search setUploadProtocol (java .lang .String uploadProtocol ) {
1928+ return (Search ) super .setUploadProtocol (uploadProtocol );
1929+ }
1930+
1931+ /**
1932+ * Required. Parent value for SearchMcpServersRequest. Format:
1933+ * `projects/{project}/locations/{location}`.
1934+ */
1935+ @ com .google .api .client .util .Key
1936+ private java .lang .String parent ;
1937+
1938+ /** Required. Parent value for SearchMcpServersRequest. Format:
1939+ `projects/{project}/locations/{location}`.
1940+ */
1941+ public java .lang .String getParent () {
1942+ return parent ;
1943+ }
1944+
1945+ /**
1946+ * Required. Parent value for SearchMcpServersRequest. Format:
1947+ * `projects/{project}/locations/{location}`.
1948+ */
1949+ public Search setParent (java .lang .String parent ) {
1950+ if (!getSuppressPatternChecks ()) {
1951+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
1952+ "Parameter parent must conform to the pattern " +
1953+ "^projects/[^/]+/locations/[^/]+$" );
1954+ }
1955+ this .parent = parent ;
1956+ return this ;
1957+ }
1958+
1959+ @ Override
1960+ public Search set (String parameterName , Object value ) {
1961+ return (Search ) super .set (parameterName , value );
1962+ }
1963+ }
16871964
16881965 }
16891966 /**
0 commit comments