Search in sources :

Example 6 with UpdateViewRequest

use of com.google.logging.v2.UpdateViewRequest in project gapic-generator-java by googleapis.

the class SyncUpdateView method syncUpdateView.

public static void syncUpdateView() throws Exception {
    // It may require modifications to work in your environment.
    try (ConfigClient configClient = ConfigClient.create()) {
        UpdateViewRequest request = UpdateViewRequest.newBuilder().setName("name3373707").setView(LogView.newBuilder().build()).setUpdateMask(FieldMask.newBuilder().build()).build();
        LogView response = configClient.updateView(request);
    }
}
Also used : ConfigClient(com.google.cloud.logging.v2.ConfigClient) UpdateViewRequest(com.google.logging.v2.UpdateViewRequest) LogView(com.google.logging.v2.LogView)

Aggregations

UpdateViewRequest (com.google.logging.v2.UpdateViewRequest)6 LogView (com.google.logging.v2.LogView)4 Test (org.junit.Test)4 InvalidArgumentException (com.google.api.gax.rpc.InvalidArgumentException)2 ConfigClient (com.google.cloud.logging.v2.ConfigClient)2 AbstractMessage (com.google.protobuf.AbstractMessage)2 StatusRuntimeException (io.grpc.StatusRuntimeException)2