| GitHub Repository | Product Reference |
Service Description: FindingsRefinementService provides an interface for filtering out findings that are unlikely to be real threats to prevent them from triggering alerts or notifications.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinementName name =
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name);
}
Note: close() needs to be called on the FindingsRefinementServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
GetFindingsRefinement |
Gets a single findings refinement. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListFindingsRefinements |
Lists a collection of findings refinements. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateFindingsRefinement |
Creates a new findings refinement. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateFindingsRefinement |
Updates a findings refinement. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetFindingsRefinementDeployment |
Gets a findings refinement deployment. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateFindingsRefinementDeployment |
Updates a findings refinement deployment. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAllFindingsRefinementDeployments |
Lists all findings refinement deployments. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ComputeFindingsRefinementActivity |
Returns findings refinement activity for a specific findings refinement. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ComputeAllFindingsRefinementActivities |
Returns findings refinement activity for all findings refinements. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of FindingsRefinementServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
FindingsRefinementServiceSettings findingsRefinementServiceSettings =
FindingsRefinementServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
FindingsRefinementServiceSettings findingsRefinementServiceSettings =
FindingsRefinementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
FindingsRefinementServiceSettings findingsRefinementServiceSettings =
FindingsRefinementServiceSettings.newHttpJsonBuilder().build();
FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create(findingsRefinementServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final FindingsRefinementServiceClient create()Constructs an instance of FindingsRefinementServiceClient with default settings.
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(FindingsRefinementServiceSettings settings)
public static final FindingsRefinementServiceClient create(FindingsRefinementServiceSettings settings)Constructs an instance of FindingsRefinementServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
FindingsRefinementServiceSettings |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(FindingsRefinementServiceStub stub)
public static final FindingsRefinementServiceClient create(FindingsRefinementServiceStub stub)Constructs an instance of FindingsRefinementServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(FindingsRefinementServiceSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
FindingsRefinementServiceStub |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient |
|
Constructors
FindingsRefinementServiceClient(FindingsRefinementServiceSettings settings)
protected FindingsRefinementServiceClient(FindingsRefinementServiceSettings settings)Constructs an instance of FindingsRefinementServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
FindingsRefinementServiceSettings |
FindingsRefinementServiceClient(FindingsRefinementServiceStub stub)
protected FindingsRefinementServiceClient(FindingsRefinementServiceStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
FindingsRefinementServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
close()
public final void close()computeAllFindingsRefinementActivities(@Nullable InstanceName instance)
public final ComputeAllFindingsRefinementActivitiesResponse computeAllFindingsRefinementActivities(@Nullable InstanceName instance)Returns findings refinement activity for all findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
ComputeAllFindingsRefinementActivitiesResponse response =
findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance);
}
| Parameter | |
|---|---|
| Name | Description |
instance |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.InstanceNameRequired. The ID of the Instance to retrieve counts for. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
ComputeAllFindingsRefinementActivitiesResponse |
|
computeAllFindingsRefinementActivities(ComputeAllFindingsRefinementActivitiesRequest request)
public final ComputeAllFindingsRefinementActivitiesResponse computeAllFindingsRefinementActivities(ComputeAllFindingsRefinementActivitiesRequest request)Returns findings refinement activity for all findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ComputeAllFindingsRefinementActivitiesRequest request =
ComputeAllFindingsRefinementActivitiesRequest.newBuilder()
.setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setInterval(Interval.newBuilder().build())
.build();
ComputeAllFindingsRefinementActivitiesResponse response =
findingsRefinementServiceClient.computeAllFindingsRefinementActivities(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
ComputeAllFindingsRefinementActivitiesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ComputeAllFindingsRefinementActivitiesResponse |
|
computeAllFindingsRefinementActivities(String instance)
public final ComputeAllFindingsRefinementActivitiesResponse computeAllFindingsRefinementActivities(String instance)Returns findings refinement activity for all findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
ComputeAllFindingsRefinementActivitiesResponse response =
findingsRefinementServiceClient.computeAllFindingsRefinementActivities(instance);
}
| Parameter | |
|---|---|
| Name | Description |
instance |
StringRequired. The ID of the Instance to retrieve counts for. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
ComputeAllFindingsRefinementActivitiesResponse |
|
computeAllFindingsRefinementActivitiesCallable()
public final UnaryCallable<ComputeAllFindingsRefinementActivitiesRequest,ComputeAllFindingsRefinementActivitiesResponse> computeAllFindingsRefinementActivitiesCallable()Returns findings refinement activity for all findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ComputeAllFindingsRefinementActivitiesRequest request =
ComputeAllFindingsRefinementActivitiesRequest.newBuilder()
.setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setInterval(Interval.newBuilder().build())
.build();
ApiFuture<ComputeAllFindingsRefinementActivitiesResponse> future =
findingsRefinementServiceClient
.computeAllFindingsRefinementActivitiesCallable()
.futureCall(request);
// Do something.
ComputeAllFindingsRefinementActivitiesResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ComputeAllFindingsRefinementActivitiesRequest,ComputeAllFindingsRefinementActivitiesResponse> |
|
computeFindingsRefinementActivity(@Nullable FindingsRefinementName name)
public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity(@Nullable FindingsRefinementName name)Returns findings refinement activity for a specific findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinementName name =
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
ComputeFindingsRefinementActivityResponse response =
findingsRefinementServiceClient.computeFindingsRefinementActivity(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.FindingsRefinementNameRequired. Full resource name for the findings refinement to fetch the activity for. Format: projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} |
| Returns | |
|---|---|
| Type | Description |
ComputeFindingsRefinementActivityResponse |
|
computeFindingsRefinementActivity(ComputeFindingsRefinementActivityRequest request)
public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity(ComputeFindingsRefinementActivityRequest request)Returns findings refinement activity for a specific findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ComputeFindingsRefinementActivityRequest request =
ComputeFindingsRefinementActivityRequest.newBuilder()
.setName(
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.setInterval(Interval.newBuilder().build())
.build();
ComputeFindingsRefinementActivityResponse response =
findingsRefinementServiceClient.computeFindingsRefinementActivity(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
ComputeFindingsRefinementActivityRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ComputeFindingsRefinementActivityResponse |
|
computeFindingsRefinementActivity(String name)
public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity(String name)Returns findings refinement activity for a specific findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String name =
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString();
ComputeFindingsRefinementActivityResponse response =
findingsRefinementServiceClient.computeFindingsRefinementActivity(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Full resource name for the findings refinement to fetch the activity for. Format: projects/{project}/locations/{region}/instances/{instance}/findingsRefinements/{findings_refinement} |
| Returns | |
|---|---|
| Type | Description |
ComputeFindingsRefinementActivityResponse |
|
computeFindingsRefinementActivityCallable()
public final UnaryCallable<ComputeFindingsRefinementActivityRequest,ComputeFindingsRefinementActivityResponse> computeFindingsRefinementActivityCallable()Returns findings refinement activity for a specific findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ComputeFindingsRefinementActivityRequest request =
ComputeFindingsRefinementActivityRequest.newBuilder()
.setName(
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.setInterval(Interval.newBuilder().build())
.build();
ApiFuture<ComputeFindingsRefinementActivityResponse> future =
findingsRefinementServiceClient
.computeFindingsRefinementActivityCallable()
.futureCall(request);
// Do something.
ComputeFindingsRefinementActivityResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ComputeFindingsRefinementActivityRequest,ComputeFindingsRefinementActivityResponse> |
|
createFindingsRefinement(@Nullable InstanceName parent, FindingsRefinement findingsRefinement)
public final FindingsRefinement createFindingsRefinement(@Nullable InstanceName parent, FindingsRefinement findingsRefinement)Creates a new findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build();
FindingsRefinement response =
findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.InstanceNameRequired. The parent resource where this findings refinement will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
findingsRefinement |
FindingsRefinementRequired. The findings refinement to create. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
createFindingsRefinement(CreateFindingsRefinementRequest request)
public final FindingsRefinement createFindingsRefinement(CreateFindingsRefinementRequest request)Creates a new findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
CreateFindingsRefinementRequest request =
CreateFindingsRefinementRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setFindingsRefinement(FindingsRefinement.newBuilder().build())
.build();
FindingsRefinement response =
findingsRefinementServiceClient.createFindingsRefinement(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateFindingsRefinementRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
createFindingsRefinement(String parent, FindingsRefinement findingsRefinement)
public final FindingsRefinement createFindingsRefinement(String parent, FindingsRefinement findingsRefinement)Creates a new findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build();
FindingsRefinement response =
findingsRefinementServiceClient.createFindingsRefinement(parent, findingsRefinement);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this findings refinement will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
findingsRefinement |
FindingsRefinementRequired. The findings refinement to create. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
createFindingsRefinementCallable()
public final UnaryCallable<CreateFindingsRefinementRequest,FindingsRefinement> createFindingsRefinementCallable()Creates a new findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
CreateFindingsRefinementRequest request =
CreateFindingsRefinementRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setFindingsRefinement(FindingsRefinement.newBuilder().build())
.build();
ApiFuture<FindingsRefinement> future =
findingsRefinementServiceClient.createFindingsRefinementCallable().futureCall(request);
// Do something.
FindingsRefinement response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateFindingsRefinementRequest,FindingsRefinement> |
|
getFindingsRefinement(@Nullable FindingsRefinementName name)
public final FindingsRefinement getFindingsRefinement(@Nullable FindingsRefinementName name)Gets a single findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinementName name =
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.FindingsRefinementNameRequired. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
getFindingsRefinement(GetFindingsRefinementRequest request)
public final FindingsRefinement getFindingsRefinement(GetFindingsRefinementRequest request)Gets a single findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
GetFindingsRefinementRequest request =
GetFindingsRefinementRequest.newBuilder()
.setName(
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.build();
FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetFindingsRefinementRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
getFindingsRefinement(String name)
public final FindingsRefinement getFindingsRefinement(String name)Gets a single findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String name =
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString();
FindingsRefinement response = findingsRefinementServiceClient.getFindingsRefinement(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
getFindingsRefinementCallable()
public final UnaryCallable<GetFindingsRefinementRequest,FindingsRefinement> getFindingsRefinementCallable()Gets a single findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
GetFindingsRefinementRequest request =
GetFindingsRefinementRequest.newBuilder()
.setName(
FindingsRefinementName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.build();
ApiFuture<FindingsRefinement> future =
findingsRefinementServiceClient.getFindingsRefinementCallable().futureCall(request);
// Do something.
FindingsRefinement response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetFindingsRefinementRequest,FindingsRefinement> |
|
getFindingsRefinementDeployment(@Nullable FindingsRefinementDeploymentName name)
public final FindingsRefinementDeployment getFindingsRefinementDeployment(@Nullable FindingsRefinementDeploymentName name)Gets a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinementDeploymentName name =
FindingsRefinementDeploymentName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]");
FindingsRefinementDeployment response =
findingsRefinementServiceClient.getFindingsRefinementDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.FindingsRefinementDeploymentNameRequired. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementDeployment |
|
getFindingsRefinementDeployment(GetFindingsRefinementDeploymentRequest request)
public final FindingsRefinementDeployment getFindingsRefinementDeployment(GetFindingsRefinementDeploymentRequest request)Gets a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
GetFindingsRefinementDeploymentRequest request =
GetFindingsRefinementDeploymentRequest.newBuilder()
.setName(
FindingsRefinementDeploymentName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.build();
FindingsRefinementDeployment response =
findingsRefinementServiceClient.getFindingsRefinementDeployment(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetFindingsRefinementDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementDeployment |
|
getFindingsRefinementDeployment(String name)
public final FindingsRefinementDeployment getFindingsRefinementDeployment(String name)Gets a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String name =
FindingsRefinementDeploymentName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString();
FindingsRefinementDeployment response =
findingsRefinementServiceClient.getFindingsRefinementDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the findings refinement to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementDeployment |
|
getFindingsRefinementDeploymentCallable()
public final UnaryCallable<GetFindingsRefinementDeploymentRequest,FindingsRefinementDeployment> getFindingsRefinementDeploymentCallable()Gets a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
GetFindingsRefinementDeploymentRequest request =
GetFindingsRefinementDeploymentRequest.newBuilder()
.setName(
FindingsRefinementDeploymentName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FINDINGS_REFINEMENT]")
.toString())
.build();
ApiFuture<FindingsRefinementDeployment> future =
findingsRefinementServiceClient
.getFindingsRefinementDeploymentCallable()
.futureCall(request);
// Do something.
FindingsRefinementDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetFindingsRefinementDeploymentRequest,FindingsRefinementDeployment> |
|
getSettings()
public final @Nullable FindingsRefinementServiceSettings getSettings()| Returns | |
|---|---|
| Type | Description |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.FindingsRefinementServiceSettings |
|
getStub()
public FindingsRefinementServiceStub getStub()| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listAllFindingsRefinementDeployments(@Nullable InstanceName instance)
public final FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse listAllFindingsRefinementDeployments(@Nullable InstanceName instance)Lists all findings refinement deployments.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
for (FindingsRefinementDeployment element :
findingsRefinementServiceClient
.listAllFindingsRefinementDeployments(instance)
.iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
instance |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.InstanceNameRequired. The name of the parent resource, which is the SecOps instance to list all findings refinement deployments over. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse |
|
listAllFindingsRefinementDeployments(ListAllFindingsRefinementDeploymentsRequest request)
public final FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse listAllFindingsRefinementDeployments(ListAllFindingsRefinementDeploymentsRequest request)Lists all findings refinement deployments.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListAllFindingsRefinementDeploymentsRequest request =
ListAllFindingsRefinementDeploymentsRequest.newBuilder()
.setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (FindingsRefinementDeployment element :
findingsRefinementServiceClient
.listAllFindingsRefinementDeployments(request)
.iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListAllFindingsRefinementDeploymentsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse |
|
listAllFindingsRefinementDeployments(String instance)
public final FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse listAllFindingsRefinementDeployments(String instance)Lists all findings refinement deployments.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
for (FindingsRefinementDeployment element :
findingsRefinementServiceClient
.listAllFindingsRefinementDeployments(instance)
.iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
instance |
StringRequired. The name of the parent resource, which is the SecOps instance to list all findings refinement deployments over. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse |
|
listAllFindingsRefinementDeploymentsCallable()
public final UnaryCallable<ListAllFindingsRefinementDeploymentsRequest,ListAllFindingsRefinementDeploymentsResponse> listAllFindingsRefinementDeploymentsCallable()Lists all findings refinement deployments.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListAllFindingsRefinementDeploymentsRequest request =
ListAllFindingsRefinementDeploymentsRequest.newBuilder()
.setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListAllFindingsRefinementDeploymentsResponse response =
findingsRefinementServiceClient
.listAllFindingsRefinementDeploymentsCallable()
.call(request);
for (FindingsRefinementDeployment element :
response.getAllFindingsRefinementDeploymentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAllFindingsRefinementDeploymentsRequest,ListAllFindingsRefinementDeploymentsResponse> |
|
listAllFindingsRefinementDeploymentsPagedCallable()
public final UnaryCallable<ListAllFindingsRefinementDeploymentsRequest,FindingsRefinementServiceClient.ListAllFindingsRefinementDeploymentsPagedResponse> listAllFindingsRefinementDeploymentsPagedCallable()Lists all findings refinement deployments.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListAllFindingsRefinementDeploymentsRequest request =
ListAllFindingsRefinementDeploymentsRequest.newBuilder()
.setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<FindingsRefinementDeployment> future =
findingsRefinementServiceClient
.listAllFindingsRefinementDeploymentsPagedCallable()
.futureCall(request);
// Do something.
for (FindingsRefinementDeployment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAllFindingsRefinementDeploymentsRequest,ListAllFindingsRefinementDeploymentsPagedResponse> |
|
listFindingsRefinements(@Nullable InstanceName parent)
public final FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse listFindingsRefinements(@Nullable InstanceName parent)Lists a collection of findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
for (FindingsRefinement element :
findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.chronicle.v1.InstanceNameRequired. The parent, which owns this collection of findings refinements. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse |
|
listFindingsRefinements(ListFindingsRefinementsRequest request)
public final FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse listFindingsRefinements(ListFindingsRefinementsRequest request)Lists a collection of findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListFindingsRefinementsRequest request =
ListFindingsRefinementsRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (FindingsRefinement element :
findingsRefinementServiceClient.listFindingsRefinements(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListFindingsRefinementsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse |
|
listFindingsRefinements(String parent)
public final FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse listFindingsRefinements(String parent)Lists a collection of findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
for (FindingsRefinement element :
findingsRefinementServiceClient.listFindingsRefinements(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of findings refinements. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse |
|
listFindingsRefinementsCallable()
public final UnaryCallable<ListFindingsRefinementsRequest,ListFindingsRefinementsResponse> listFindingsRefinementsCallable()Lists a collection of findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListFindingsRefinementsRequest request =
ListFindingsRefinementsRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListFindingsRefinementsResponse response =
findingsRefinementServiceClient.listFindingsRefinementsCallable().call(request);
for (FindingsRefinement element : response.getFindingsRefinementsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListFindingsRefinementsRequest,ListFindingsRefinementsResponse> |
|
listFindingsRefinementsPagedCallable()
public final UnaryCallable<ListFindingsRefinementsRequest,FindingsRefinementServiceClient.ListFindingsRefinementsPagedResponse> listFindingsRefinementsPagedCallable()Lists a collection of findings refinements.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
ListFindingsRefinementsRequest request =
ListFindingsRefinementsRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<FindingsRefinement> future =
findingsRefinementServiceClient
.listFindingsRefinementsPagedCallable()
.futureCall(request);
// Do something.
for (FindingsRefinement element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListFindingsRefinementsRequest,ListFindingsRefinementsPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateFindingsRefinement(FindingsRefinement findingsRefinement, FieldMask updateMask)
public final FindingsRefinement updateFindingsRefinement(FindingsRefinement findingsRefinement, FieldMask updateMask)Updates a findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinement findingsRefinement = FindingsRefinement.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
FindingsRefinement response =
findingsRefinementServiceClient.updateFindingsRefinement(findingsRefinement, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
findingsRefinement |
FindingsRefinementRequired. The findings refinement to update. The findings refinement's |
updateMask |
FieldMaskOptional. The list of fields to update. If |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
updateFindingsRefinement(UpdateFindingsRefinementRequest request)
public final FindingsRefinement updateFindingsRefinement(UpdateFindingsRefinementRequest request)Updates a findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
UpdateFindingsRefinementRequest request =
UpdateFindingsRefinementRequest.newBuilder()
.setFindingsRefinement(FindingsRefinement.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
FindingsRefinement response =
findingsRefinementServiceClient.updateFindingsRefinement(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateFindingsRefinementRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinement |
|
updateFindingsRefinementCallable()
public final UnaryCallable<UpdateFindingsRefinementRequest,FindingsRefinement> updateFindingsRefinementCallable()Updates a findings refinement.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
UpdateFindingsRefinementRequest request =
UpdateFindingsRefinementRequest.newBuilder()
.setFindingsRefinement(FindingsRefinement.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<FindingsRefinement> future =
findingsRefinementServiceClient.updateFindingsRefinementCallable().futureCall(request);
// Do something.
FindingsRefinement response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateFindingsRefinementRequest,FindingsRefinement> |
|
updateFindingsRefinementDeployment(FindingsRefinementDeployment findingsRefinementDeployment, FieldMask updateMask)
public final FindingsRefinementDeployment updateFindingsRefinementDeployment(FindingsRefinementDeployment findingsRefinementDeployment, FieldMask updateMask)Updates a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
FindingsRefinementDeployment findingsRefinementDeployment =
FindingsRefinementDeployment.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
FindingsRefinementDeployment response =
findingsRefinementServiceClient.updateFindingsRefinementDeployment(
findingsRefinementDeployment, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
findingsRefinementDeployment |
FindingsRefinementDeploymentRequired. The findings refinement deployment to update. The findings refinement deployment's |
updateMask |
FieldMaskRequired. The list of fields to update. If |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementDeployment |
|
updateFindingsRefinementDeployment(UpdateFindingsRefinementDeploymentRequest request)
public final FindingsRefinementDeployment updateFindingsRefinementDeployment(UpdateFindingsRefinementDeploymentRequest request)Updates a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
UpdateFindingsRefinementDeploymentRequest request =
UpdateFindingsRefinementDeploymentRequest.newBuilder()
.setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
FindingsRefinementDeployment response =
findingsRefinementServiceClient.updateFindingsRefinementDeployment(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateFindingsRefinementDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
FindingsRefinementDeployment |
|
updateFindingsRefinementDeploymentCallable()
public final UnaryCallable<UpdateFindingsRefinementDeploymentRequest,FindingsRefinementDeployment> updateFindingsRefinementDeploymentCallable()Updates a findings refinement deployment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (FindingsRefinementServiceClient findingsRefinementServiceClient =
FindingsRefinementServiceClient.create()) {
UpdateFindingsRefinementDeploymentRequest request =
UpdateFindingsRefinementDeploymentRequest.newBuilder()
.setFindingsRefinementDeployment(FindingsRefinementDeployment.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<FindingsRefinementDeployment> future =
findingsRefinementServiceClient
.updateFindingsRefinementDeploymentCallable()
.futureCall(request);
// Do something.
FindingsRefinementDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateFindingsRefinementDeploymentRequest,FindingsRefinementDeployment> |
|