|
1009 | 1009 | * </td> |
1010 | 1010 | * </tr> |
1011 | 1011 | * <tr> |
| 1012 | + * <td><p> GenerateAppResource</td> |
| 1013 | + * <td><p> Generates specific resources (e.g. agent) in the app using LLM assistant.</td> |
| 1014 | + * <td> |
| 1015 | + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> |
| 1016 | + * <ul> |
| 1017 | + * <li><p> generateAppResourceAsync(GenerateAppResourceRequest request) |
| 1018 | + * </ul> |
| 1019 | + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> |
| 1020 | + * <ul> |
| 1021 | + * <li><p> generateAppResourceAsync(AppName parent) |
| 1022 | + * <li><p> generateAppResourceAsync(String parent) |
| 1023 | + * </ul> |
| 1024 | + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> |
| 1025 | + * <ul> |
| 1026 | + * <li><p> generateAppResourceOperationCallable() |
| 1027 | + * <li><p> generateAppResourceCallable() |
| 1028 | + * </ul> |
| 1029 | + * </td> |
| 1030 | + * </tr> |
| 1031 | + * <tr> |
1012 | 1032 | * <td><p> ListChangelogs</td> |
1013 | 1033 | * <td><p> Lists the changelogs of the specified app.</td> |
1014 | 1034 | * <td> |
@@ -7814,6 +7834,201 @@ public final UnaryCallable<RestoreAppVersionRequest, Operation> restoreAppVersio |
7814 | 7834 | return stub.restoreAppVersionCallable(); |
7815 | 7835 | } |
7816 | 7836 |
|
| 7837 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 7838 | + /** |
| 7839 | + * Generates specific resources (e.g. agent) in the app using LLM assistant. |
| 7840 | + * |
| 7841 | + * <p>Sample code: |
| 7842 | + * |
| 7843 | + * <pre>{@code |
| 7844 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 7845 | + * // It will require modifications to work: |
| 7846 | + * // - It may require correct/in-range values for request initialization. |
| 7847 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 7848 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 7849 | + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { |
| 7850 | + * AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); |
| 7851 | + * GenerateAppResourceResponse response = |
| 7852 | + * agentServiceClient.generateAppResourceAsync(parent).get(); |
| 7853 | + * } |
| 7854 | + * }</pre> |
| 7855 | + * |
| 7856 | + * @param parent Required. The resource name of the app to generate the resource for. |
| 7857 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 7858 | + */ |
| 7859 | + public final OperationFuture<GenerateAppResourceResponse, GenerateAppResourceOperationMetadata> |
| 7860 | + generateAppResourceAsync(AppName parent) { |
| 7861 | + GenerateAppResourceRequest request = |
| 7862 | + GenerateAppResourceRequest.newBuilder() |
| 7863 | + .setParent(parent == null ? null : parent.toString()) |
| 7864 | + .build(); |
| 7865 | + return generateAppResourceAsync(request); |
| 7866 | + } |
| 7867 | + |
| 7868 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 7869 | + /** |
| 7870 | + * Generates specific resources (e.g. agent) in the app using LLM assistant. |
| 7871 | + * |
| 7872 | + * <p>Sample code: |
| 7873 | + * |
| 7874 | + * <pre>{@code |
| 7875 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 7876 | + * // It will require modifications to work: |
| 7877 | + * // - It may require correct/in-range values for request initialization. |
| 7878 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 7879 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 7880 | + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { |
| 7881 | + * String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); |
| 7882 | + * GenerateAppResourceResponse response = |
| 7883 | + * agentServiceClient.generateAppResourceAsync(parent).get(); |
| 7884 | + * } |
| 7885 | + * }</pre> |
| 7886 | + * |
| 7887 | + * @param parent Required. The resource name of the app to generate the resource for. |
| 7888 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 7889 | + */ |
| 7890 | + public final OperationFuture<GenerateAppResourceResponse, GenerateAppResourceOperationMetadata> |
| 7891 | + generateAppResourceAsync(String parent) { |
| 7892 | + GenerateAppResourceRequest request = |
| 7893 | + GenerateAppResourceRequest.newBuilder().setParent(parent).build(); |
| 7894 | + return generateAppResourceAsync(request); |
| 7895 | + } |
| 7896 | + |
| 7897 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 7898 | + /** |
| 7899 | + * Generates specific resources (e.g. agent) in the app using LLM assistant. |
| 7900 | + * |
| 7901 | + * <p>Sample code: |
| 7902 | + * |
| 7903 | + * <pre>{@code |
| 7904 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 7905 | + * // It will require modifications to work: |
| 7906 | + * // - It may require correct/in-range values for request initialization. |
| 7907 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 7908 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 7909 | + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { |
| 7910 | + * GenerateAppResourceRequest request = |
| 7911 | + * GenerateAppResourceRequest.newBuilder() |
| 7912 | + * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) |
| 7913 | + * .addAllRefineInstructions( |
| 7914 | + * new ArrayList<GenerateAppResourceRequest.RefineInstructions>()) |
| 7915 | + * .setToolGenerationConfig( |
| 7916 | + * GenerateAppResourceRequest.ToolGenerationConfig.newBuilder().build()) |
| 7917 | + * .setAppGenerationConfig( |
| 7918 | + * GenerateAppResourceRequest.AppGenerationConfig.newBuilder().build()) |
| 7919 | + * .setEvaluationGenerationConfig( |
| 7920 | + * GenerateAppResourceRequest.EvaluationGenerationConfig.newBuilder().build()) |
| 7921 | + * .setEvaluationPersonasGenerationConfig( |
| 7922 | + * GenerateAppResourceRequest.EvaluationPersonasGenerationConfig.newBuilder() |
| 7923 | + * .build()) |
| 7924 | + * .setQualityReportGenerationConfig( |
| 7925 | + * GenerateAppResourceRequest.QualityReportGenerationConfig.newBuilder().build()) |
| 7926 | + * .setHillClimbingFixConfig( |
| 7927 | + * GenerateAppResourceRequest.HillClimbingFixConfig.newBuilder().build()) |
| 7928 | + * .build(); |
| 7929 | + * GenerateAppResourceResponse response = |
| 7930 | + * agentServiceClient.generateAppResourceAsync(request).get(); |
| 7931 | + * } |
| 7932 | + * }</pre> |
| 7933 | + * |
| 7934 | + * @param request The request object containing all of the parameters for the API call. |
| 7935 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 7936 | + */ |
| 7937 | + public final OperationFuture<GenerateAppResourceResponse, GenerateAppResourceOperationMetadata> |
| 7938 | + generateAppResourceAsync(GenerateAppResourceRequest request) { |
| 7939 | + return generateAppResourceOperationCallable().futureCall(request); |
| 7940 | + } |
| 7941 | + |
| 7942 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 7943 | + /** |
| 7944 | + * Generates specific resources (e.g. agent) in the app using LLM assistant. |
| 7945 | + * |
| 7946 | + * <p>Sample code: |
| 7947 | + * |
| 7948 | + * <pre>{@code |
| 7949 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 7950 | + * // It will require modifications to work: |
| 7951 | + * // - It may require correct/in-range values for request initialization. |
| 7952 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 7953 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 7954 | + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { |
| 7955 | + * GenerateAppResourceRequest request = |
| 7956 | + * GenerateAppResourceRequest.newBuilder() |
| 7957 | + * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) |
| 7958 | + * .addAllRefineInstructions( |
| 7959 | + * new ArrayList<GenerateAppResourceRequest.RefineInstructions>()) |
| 7960 | + * .setToolGenerationConfig( |
| 7961 | + * GenerateAppResourceRequest.ToolGenerationConfig.newBuilder().build()) |
| 7962 | + * .setAppGenerationConfig( |
| 7963 | + * GenerateAppResourceRequest.AppGenerationConfig.newBuilder().build()) |
| 7964 | + * .setEvaluationGenerationConfig( |
| 7965 | + * GenerateAppResourceRequest.EvaluationGenerationConfig.newBuilder().build()) |
| 7966 | + * .setEvaluationPersonasGenerationConfig( |
| 7967 | + * GenerateAppResourceRequest.EvaluationPersonasGenerationConfig.newBuilder() |
| 7968 | + * .build()) |
| 7969 | + * .setQualityReportGenerationConfig( |
| 7970 | + * GenerateAppResourceRequest.QualityReportGenerationConfig.newBuilder().build()) |
| 7971 | + * .setHillClimbingFixConfig( |
| 7972 | + * GenerateAppResourceRequest.HillClimbingFixConfig.newBuilder().build()) |
| 7973 | + * .build(); |
| 7974 | + * OperationFuture<GenerateAppResourceResponse, GenerateAppResourceOperationMetadata> future = |
| 7975 | + * agentServiceClient.generateAppResourceOperationCallable().futureCall(request); |
| 7976 | + * // Do something. |
| 7977 | + * GenerateAppResourceResponse response = future.get(); |
| 7978 | + * } |
| 7979 | + * }</pre> |
| 7980 | + */ |
| 7981 | + public final OperationCallable< |
| 7982 | + GenerateAppResourceRequest, |
| 7983 | + GenerateAppResourceResponse, |
| 7984 | + GenerateAppResourceOperationMetadata> |
| 7985 | + generateAppResourceOperationCallable() { |
| 7986 | + return stub.generateAppResourceOperationCallable(); |
| 7987 | + } |
| 7988 | + |
| 7989 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 7990 | + /** |
| 7991 | + * Generates specific resources (e.g. agent) in the app using LLM assistant. |
| 7992 | + * |
| 7993 | + * <p>Sample code: |
| 7994 | + * |
| 7995 | + * <pre>{@code |
| 7996 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 7997 | + * // It will require modifications to work: |
| 7998 | + * // - It may require correct/in-range values for request initialization. |
| 7999 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 8000 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 8001 | + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { |
| 8002 | + * GenerateAppResourceRequest request = |
| 8003 | + * GenerateAppResourceRequest.newBuilder() |
| 8004 | + * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) |
| 8005 | + * .addAllRefineInstructions( |
| 8006 | + * new ArrayList<GenerateAppResourceRequest.RefineInstructions>()) |
| 8007 | + * .setToolGenerationConfig( |
| 8008 | + * GenerateAppResourceRequest.ToolGenerationConfig.newBuilder().build()) |
| 8009 | + * .setAppGenerationConfig( |
| 8010 | + * GenerateAppResourceRequest.AppGenerationConfig.newBuilder().build()) |
| 8011 | + * .setEvaluationGenerationConfig( |
| 8012 | + * GenerateAppResourceRequest.EvaluationGenerationConfig.newBuilder().build()) |
| 8013 | + * .setEvaluationPersonasGenerationConfig( |
| 8014 | + * GenerateAppResourceRequest.EvaluationPersonasGenerationConfig.newBuilder() |
| 8015 | + * .build()) |
| 8016 | + * .setQualityReportGenerationConfig( |
| 8017 | + * GenerateAppResourceRequest.QualityReportGenerationConfig.newBuilder().build()) |
| 8018 | + * .setHillClimbingFixConfig( |
| 8019 | + * GenerateAppResourceRequest.HillClimbingFixConfig.newBuilder().build()) |
| 8020 | + * .build(); |
| 8021 | + * ApiFuture<Operation> future = |
| 8022 | + * agentServiceClient.generateAppResourceCallable().futureCall(request); |
| 8023 | + * // Do something. |
| 8024 | + * Operation response = future.get(); |
| 8025 | + * } |
| 8026 | + * }</pre> |
| 8027 | + */ |
| 8028 | + public final UnaryCallable<GenerateAppResourceRequest, Operation> generateAppResourceCallable() { |
| 8029 | + return stub.generateAppResourceCallable(); |
| 8030 | + } |
| 8031 | + |
7817 | 8032 | // AUTO-GENERATED DOCUMENTATION AND METHOD. |
7818 | 8033 | /** |
7819 | 8034 | * Lists the changelogs of the specified app. |
|
0 commit comments