diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java deleted file mode 100644 index 0d3a0a2a0..000000000 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.logging.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for configuring logs-based metrics.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/logging/v2/logging_metrics.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MetricsServiceV2Grpc { - - private MetricsServiceV2Grpc() {} - - public static final java.lang.String SERVICE_NAME = "google.logging.v2.MetricsServiceV2"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogMetricsRequest, com.google.logging.v2.ListLogMetricsResponse> - getListLogMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLogMetrics", - requestType = com.google.logging.v2.ListLogMetricsRequest.class, - responseType = com.google.logging.v2.ListLogMetricsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogMetricsRequest, com.google.logging.v2.ListLogMetricsResponse> - getListLogMetricsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogMetricsRequest, - com.google.logging.v2.ListLogMetricsResponse> - getListLogMetricsMethod; - if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { - MetricsServiceV2Grpc.getListLogMetricsMethod = - getListLogMetricsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogMetricsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new MetricsServiceV2MethodDescriptorSupplier("ListLogMetrics")) - .build(); - } - } - } - return getListLogMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> - getGetLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLogMetric", - requestType = com.google.logging.v2.GetLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> - getGetLogMetricMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> - getGetLogMetricMethod; - if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { - MetricsServiceV2Grpc.getGetLogMetricMethod = - getGetLogMetricMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor( - new MetricsServiceV2MethodDescriptorSupplier("GetLogMetric")) - .build(); - } - } - } - return getGetLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> - getCreateLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateLogMetric", - requestType = com.google.logging.v2.CreateLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> - getCreateLogMetricMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> - getCreateLogMetricMethod; - if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { - MetricsServiceV2Grpc.getCreateLogMetricMethod = - getCreateLogMetricMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor( - new MetricsServiceV2MethodDescriptorSupplier("CreateLogMetric")) - .build(); - } - } - } - return getCreateLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> - getUpdateLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateLogMetric", - requestType = com.google.logging.v2.UpdateLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> - getUpdateLogMetricMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> - getUpdateLogMetricMethod; - if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { - MetricsServiceV2Grpc.getUpdateLogMetricMethod = - getUpdateLogMetricMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor( - new MetricsServiceV2MethodDescriptorSupplier("UpdateLogMetric")) - .build(); - } - } - } - return getUpdateLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> - getDeleteLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteLogMetric", - requestType = com.google.logging.v2.DeleteLogMetricRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> - getDeleteLogMetricMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> - getDeleteLogMetricMethod; - if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { - MetricsServiceV2Grpc.getDeleteLogMetricMethod = - getDeleteLogMetricMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new MetricsServiceV2MethodDescriptorSupplier("DeleteLogMetric")) - .build(); - } - } - } - return getDeleteLogMetricMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static MetricsServiceV2Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2Stub(channel, callOptions); - } - }; - return MetricsServiceV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MetricsServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2BlockingStub(channel, callOptions); - } - }; - return MetricsServiceV2BlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static MetricsServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2FutureStub(channel, callOptions); - } - }; - return MetricsServiceV2FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists logs-based metrics.
-     * 
- */ - default void listLogMetrics( - com.google.logging.v2.ListLogMetricsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLogMetricsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a logs-based metric.
-     * 
- */ - default void getLogMetric( - com.google.logging.v2.GetLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLogMetricMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a logs-based metric.
-     * 
- */ - default void createLogMetric( - com.google.logging.v2.CreateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateLogMetricMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - default void updateLogMetric( - com.google.logging.v2.UpdateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateLogMetricMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a logs-based metric.
-     * 
- */ - default void deleteLogMetric( - com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteLogMetricMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service MetricsServiceV2. - * - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public abstract static class MetricsServiceV2ImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return MetricsServiceV2Grpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2. - * - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2Stub - extends io.grpc.stub.AbstractAsyncStub { - private MetricsServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Lists logs-based metrics.
-     * 
- */ - public void listLogMetrics( - com.google.logging.v2.ListLogMetricsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a logs-based metric.
-     * 
- */ - public void getLogMetric( - com.google.logging.v2.GetLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a logs-based metric.
-     * 
- */ - public void createLogMetric( - com.google.logging.v2.CreateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public void updateLogMetric( - com.google.logging.v2.UpdateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a logs-based metric.
-     * 
- */ - public void deleteLogMetric( - com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service MetricsServiceV2. - * - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MetricsServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists logs-based metrics.
-     * 
- */ - public com.google.logging.v2.ListLogMetricsResponse listLogMetrics( - com.google.logging.v2.ListLogMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLogMetricsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric getLogMetric( - com.google.logging.v2.GetLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLogMetricMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric createLogMetric( - com.google.logging.v2.CreateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateLogMetricMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric updateLogMetric( - com.google.logging.v2.UpdateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateLogMetricMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a logs-based metric.
-     * 
- */ - public com.google.protobuf.Empty deleteLogMetric( - com.google.logging.v2.DeleteLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteLogMetricMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricsServiceV2. - * - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2FutureStub - extends io.grpc.stub.AbstractFutureStub { - private MetricsServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists logs-based metrics.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListLogMetricsResponse> - listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLogMetric(com.google.logging.v2.GetLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createLogMetric(com.google.logging.v2.CreateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOG_METRICS = 0; - private static final int METHODID_GET_LOG_METRIC = 1; - private static final int METHODID_CREATE_LOG_METRIC = 2; - private static final int METHODID_UPDATE_LOG_METRIC = 3; - private static final int METHODID_DELETE_LOG_METRIC = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_LOG_METRICS: - serviceImpl.listLogMetrics( - (com.google.logging.v2.ListLogMetricsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOG_METRIC: - serviceImpl.getLogMetric( - (com.google.logging.v2.GetLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_LOG_METRIC: - serviceImpl.createLogMetric( - (com.google.logging.v2.CreateLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_LOG_METRIC: - serviceImpl.updateLogMetric( - (com.google.logging.v2.UpdateLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_LOG_METRIC: - serviceImpl.deleteLogMetric( - (com.google.logging.v2.DeleteLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLogMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogMetricsRequest, - com.google.logging.v2.ListLogMetricsResponse>( - service, METHODID_LIST_LOG_METRICS))) - .addMethod( - getGetLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric>( - service, METHODID_GET_LOG_METRIC))) - .addMethod( - getCreateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric>( - service, METHODID_CREATE_LOG_METRIC))) - .addMethod( - getUpdateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric>( - service, METHODID_UPDATE_LOG_METRIC))) - .addMethod( - getDeleteLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_LOG_METRIC))) - .build(); - } - - private abstract static class MetricsServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MetricsServiceV2BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MetricsServiceV2"); - } - } - - private static final class MetricsServiceV2FileDescriptorSupplier - extends MetricsServiceV2BaseDescriptorSupplier { - MetricsServiceV2FileDescriptorSupplier() {} - } - - private static final class MetricsServiceV2MethodDescriptorSupplier - extends MetricsServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - MetricsServiceV2MethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MetricsServiceV2Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MetricsServiceV2FileDescriptorSupplier()) - .addMethod(getListLogMetricsMethod()) - .addMethod(getGetLogMetricMethod()) - .addMethod(getCreateLogMetricMethod()) - .addMethod(getUpdateLogMetricMethod()) - .addMethod(getDeleteLogMetricMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java new file mode 100644 index 000000000..55229d6f4 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -0,0 +1,5514 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; +import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.logging.v2.BillingAccountLocationName; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.BucketMetadata; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.FolderLocationName; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.LinkName; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.logging.v2.LogView; +import com.google.logging.v2.OrganizationLocationName; +import com.google.logging.v2.OrganizationName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.Settings; +import com.google.logging.v2.SettingsName; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for configuring sinks used to route log entries. + * + *

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: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+ *   GetBucketRequest request =
+ *       GetBucketRequest.newBuilder()
+ *           .setName(
+ *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+ *                   .toString())
+ *           .build();
+ *   LogBucket response = configClient.getBucket(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ConfigClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

ListBuckets

Lists log buckets.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listBuckets(ListBucketsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listBuckets(BillingAccountLocationName parent) + *

  • listBuckets(FolderLocationName parent) + *

  • listBuckets(LocationName parent) + *

  • listBuckets(OrganizationLocationName parent) + *

  • listBuckets(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listBucketsPagedCallable() + *

  • listBucketsCallable() + *

+ *

GetBucket

Gets a log bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getBucket(GetBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getBucketCallable() + *

+ *

CreateBucketAsync

Creates a log bucket asynchronously that can be used to store log entries. + *

After a bucket has been created, the bucket's location cannot be changed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createBucketAsyncAsync(CreateBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createBucketAsyncOperationCallable() + *

  • createBucketAsyncCallable() + *

+ *

UpdateBucketAsync

Updates a log bucket asynchronously. + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. + *

After a bucket has been created, the bucket's location cannot be changed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateBucketAsyncAsync(UpdateBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateBucketAsyncOperationCallable() + *

  • updateBucketAsyncCallable() + *

+ *

CreateBucket

Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createBucket(CreateBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createBucketCallable() + *

+ *

UpdateBucket

Updates a log bucket. + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. + *

After a bucket has been created, the bucket's location cannot be changed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateBucket(UpdateBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateBucketCallable() + *

+ *

DeleteBucket

Deletes a log bucket. + *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteBucket(DeleteBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteBucketCallable() + *

+ *

UndeleteBucket

Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • undeleteBucket(UndeleteBucketRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • undeleteBucketCallable() + *

+ *

ListViews

Lists views on a log bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listViews(ListViewsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listViews(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listViewsPagedCallable() + *

  • listViewsCallable() + *

+ *

GetView

Gets a view on a log bucket..

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getView(GetViewRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getViewCallable() + *

+ *

CreateView

Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createView(CreateViewRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createViewCallable() + *

+ *

UpdateView

Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateView(UpdateViewRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateViewCallable() + *

+ *

DeleteView

Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteView(DeleteViewRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteViewCallable() + *

+ *

ListSinks

Lists sinks.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSinks(ListSinksRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSinks(BillingAccountName parent) + *

  • listSinks(FolderName parent) + *

  • listSinks(OrganizationName parent) + *

  • listSinks(ProjectName parent) + *

  • listSinks(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSinksPagedCallable() + *

  • listSinksCallable() + *

+ *

GetSink

Gets a sink.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSink(GetSinkRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSink(LogSinkName sinkName) + *

  • getSink(String sinkName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSinkCallable() + *

+ *

CreateSink

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createSink(CreateSinkRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createSink(BillingAccountName parent, LogSink sink) + *

  • createSink(FolderName parent, LogSink sink) + *

  • createSink(OrganizationName parent, LogSink sink) + *

  • createSink(ProjectName parent, LogSink sink) + *

  • createSink(String parent, LogSink sink) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createSinkCallable() + *

+ *

UpdateSink

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: `destination`, and `filter`. + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` field.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSink(UpdateSinkRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSink(LogSinkName sinkName, LogSink sink) + *

  • updateSink(String sinkName, LogSink sink) + *

  • updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) + *

  • updateSink(String sinkName, LogSink sink, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSinkCallable() + *

+ *

DeleteSink

Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also deleted.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteSink(DeleteSinkRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteSink(LogSinkName sinkName) + *

  • deleteSink(String sinkName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteSinkCallable() + *

+ *

CreateLink

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createLinkAsync(CreateLinkRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createLinkAsync(LogBucketName parent, Link link, String linkId) + *

  • createLinkAsync(String parent, Link link, String linkId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createLinkOperationCallable() + *

  • createLinkCallable() + *

+ *

DeleteLink

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteLinkAsync(DeleteLinkRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteLinkAsync(LinkName name) + *

  • deleteLinkAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteLinkOperationCallable() + *

  • deleteLinkCallable() + *

+ *

ListLinks

Lists links.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLinks(ListLinksRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listLinks(LogBucketName parent) + *

  • listLinks(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLinksPagedCallable() + *

  • listLinksCallable() + *

+ *

GetLink

Gets a link.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLink(GetLinkRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getLink(LinkName name) + *

  • getLink(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLinkCallable() + *

+ *

ListExclusions

Lists all the exclusions on the _Default sink in a parent resource.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listExclusions(ListExclusionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listExclusions(BillingAccountName parent) + *

  • listExclusions(FolderName parent) + *

  • listExclusions(OrganizationName parent) + *

  • listExclusions(ProjectName parent) + *

  • listExclusions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listExclusionsPagedCallable() + *

  • listExclusionsCallable() + *

+ *

GetExclusion

Gets the description of an exclusion in the _Default sink.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getExclusion(GetExclusionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getExclusion(LogExclusionName name) + *

  • getExclusion(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getExclusionCallable() + *

+ *

CreateExclusion

Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createExclusion(CreateExclusionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createExclusion(BillingAccountName parent, LogExclusion exclusion) + *

  • createExclusion(FolderName parent, LogExclusion exclusion) + *

  • createExclusion(OrganizationName parent, LogExclusion exclusion) + *

  • createExclusion(ProjectName parent, LogExclusion exclusion) + *

  • createExclusion(String parent, LogExclusion exclusion) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createExclusionCallable() + *

+ *

UpdateExclusion

Changes one or more properties of an existing exclusion in the _Default sink.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateExclusion(UpdateExclusionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateExclusion(LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) + *

  • updateExclusion(String name, LogExclusion exclusion, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateExclusionCallable() + *

+ *

DeleteExclusion

Deletes an exclusion in the _Default sink.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteExclusion(DeleteExclusionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteExclusion(LogExclusionName name) + *

  • deleteExclusion(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteExclusionCallable() + *

+ *

GetCmekSettings

Gets the Logging CMEK settings for the given resource. + *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. + *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getCmekSettings(GetCmekSettingsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getCmekSettingsCallable() + *

+ *

UpdateCmekSettings

Updates the Log Router CMEK settings for the given resource. + *

Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. + *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. + *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateCmekSettings(UpdateCmekSettingsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateCmekSettingsCallable() + *

+ *

GetSettings

Gets the Log Router settings for the given resource. + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. + *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSettings(GetSettingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSettings(SettingsName name) + *

  • getSettings(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSettingsCallable() + *

+ *

UpdateSettings

Updates the Log Router settings for the given resource. + *

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSettings(UpdateSettingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSettings(Settings settings, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSettingsCallable() + *

+ *

CopyLogEntries

Copies a set of log entries from a log bucket to a Cloud Storage bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • copyLogEntriesAsync(CopyLogEntriesRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • copyLogEntriesOperationCallable() + *

  • copyLogEntriesCallable() + *

+ *
+ * + *

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 ConfigSettings to create(). + * For example: + * + *

To customize credentials: + * + *

{@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
+ * ConfigSettings configSettings =
+ *     ConfigSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ConfigClient implements BackgroundResource { + private final ConfigSettings settings; + private final ConfigServiceV2Stub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of ConfigClient with default settings. */ + public static final ConfigClient create() throws IOException { + return create(ConfigSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConfigClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ConfigClient create(ConfigSettings settings) throws IOException { + return new ConfigClient(settings); + } + + /** + * Constructs an instance of ConfigClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ConfigSettings). + */ + public static final ConfigClient create(ConfigServiceV2Stub stub) { + return new ConfigClient(stub); + } + + /** + * Constructs an instance of ConfigClient, 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. + */ + protected ConfigClient(ConfigSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ConfigServiceV2StubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected ConfigClient(ConfigServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final ConfigSettings getSettings() { + return settings; + } + + public ConfigServiceV2Stub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   BillingAccountLocationName parent =
+   *       BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]");
+   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose buckets are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + *

Note: The locations portion of the resource must be specified, but supplying the + * character `-` in place of [LOCATION_ID] will return all buckets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName parent) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBuckets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose buckets are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + *

Note: The locations portion of the resource must be specified, but supplying the + * character `-` in place of [LOCATION_ID] will return all buckets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBuckets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose buckets are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + *

Note: The locations portion of the resource must be specified, but supplying the + * character `-` in place of [LOCATION_ID] will return all buckets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(LocationName parent) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBuckets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose buckets are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + *

Note: The locations portion of the resource must be specified, but supplying the + * character `-` in place of [LOCATION_ID] will return all buckets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(OrganizationLocationName parent) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBuckets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose buckets are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + *

Note: The locations portion of the resource must be specified, but supplying the + * character `-` in place of [LOCATION_ID] will return all buckets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(String parent) { + ListBucketsRequest request = ListBucketsRequest.newBuilder().setParent(parent).build(); + return listBuckets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListBucketsRequest request =
+   *       ListBucketsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (LogBucket element : configClient.listBuckets(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { + return listBucketsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListBucketsRequest request =
+   *       ListBucketsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = configClient.listBucketsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogBucket element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBucketsPagedCallable() { + return stub.listBucketsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log buckets. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListBucketsRequest request =
+   *       ListBucketsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListBucketsResponse response = configClient.listBucketsCallable().call(request);
+   *     for (LogBucket element : response.getBucketsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBucketsCallable() { + return stub.listBucketsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetBucketRequest request =
+   *       GetBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   LogBucket response = configClient.getBucket(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogBucket getBucket(GetBucketRequest request) { + return getBucketCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetBucketRequest request =
+   *       GetBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.getBucketCallable().futureCall(request);
+   *   // Do something.
+   *   LogBucket response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBucketCallable() { + return stub.getBucketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket asynchronously that can be used to store log entries. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateBucketRequest request =
+   *       CreateBucketRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBucketId("bucketId-1603305307")
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .build();
+   *   LogBucket response = configClient.createBucketAsyncAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBucketAsyncAsync( + CreateBucketRequest request) { + return createBucketAsyncOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket asynchronously that can be used to store log entries. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateBucketRequest request =
+   *       CreateBucketRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBucketId("bucketId-1603305307")
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.createBucketAsyncOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LogBucket response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBucketAsyncOperationCallable() { + return stub.createBucketAsyncOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket asynchronously that can be used to store log entries. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateBucketRequest request =
+   *       CreateBucketRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBucketId("bucketId-1603305307")
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.createBucketAsyncCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBucketAsyncCallable() { + return stub.createBucketAsyncCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a log bucket asynchronously. + * + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will + * be returned. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateBucketRequest request =
+   *       UpdateBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogBucket response = configClient.updateBucketAsyncAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBucketAsyncAsync( + UpdateBucketRequest request) { + return updateBucketAsyncOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a log bucket asynchronously. + * + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will + * be returned. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateBucketRequest request =
+   *       UpdateBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.updateBucketAsyncOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LogBucket response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBucketAsyncOperationCallable() { + return stub.updateBucketAsyncOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a log bucket asynchronously. + * + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will + * be returned. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateBucketRequest request =
+   *       UpdateBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateBucketAsyncCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBucketAsyncCallable() { + return stub.updateBucketAsyncCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket that can be used to store log entries. After a bucket has been created, + * the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateBucketRequest request =
+   *       CreateBucketRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBucketId("bucketId-1603305307")
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .build();
+   *   LogBucket response = configClient.createBucket(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogBucket createBucket(CreateBucketRequest request) { + return createBucketCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket that can be used to store log entries. After a bucket has been created, + * the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateBucketRequest request =
+   *       CreateBucketRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBucketId("bucketId-1603305307")
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.createBucketCallable().futureCall(request);
+   *   // Do something.
+   *   LogBucket response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBucketCallable() { + return stub.createBucketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a log bucket. + * + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will + * be returned. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateBucketRequest request =
+   *       UpdateBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogBucket response = configClient.updateBucket(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogBucket updateBucket(UpdateBucketRequest request) { + return updateBucketCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a log bucket. + * + *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will + * be returned. + * + *

After a bucket has been created, the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateBucketRequest request =
+   *       UpdateBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setBucket(LogBucket.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateBucketCallable().futureCall(request);
+   *   // Do something.
+   *   LogBucket response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBucketCallable() { + return stub.updateBucketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a log bucket. + * + *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the + * bucket will be purged and all log entries in the bucket will be permanently deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteBucketRequest request =
+   *       DeleteBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   configClient.deleteBucket(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBucket(DeleteBucketRequest request) { + deleteBucketCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a log bucket. + * + *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the + * bucket will be purged and all log entries in the bucket will be permanently deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteBucketRequest request =
+   *       DeleteBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.deleteBucketCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBucketCallable() { + return stub.deleteBucketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period + * of 7 days. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UndeleteBucketRequest request =
+   *       UndeleteBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   configClient.undeleteBucket(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void undeleteBucket(UndeleteBucketRequest request) { + undeleteBucketCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period + * of 7 days. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UndeleteBucketRequest request =
+   *       UndeleteBucketRequest.newBuilder()
+   *           .setName(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.undeleteBucketCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable undeleteBucketCallable() { + return stub.undeleteBucketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists views on a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (LogView element : configClient.listViews(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The bucket whose views are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListViewsPagedResponse listViews(String parent) { + ListViewsRequest request = ListViewsRequest.newBuilder().setParent(parent).build(); + return listViews(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists views on a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListViewsRequest request =
+   *       ListViewsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (LogView element : configClient.listViews(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListViewsPagedResponse listViews(ListViewsRequest request) { + return listViewsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists views on a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListViewsRequest request =
+   *       ListViewsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = configClient.listViewsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogView element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listViewsPagedCallable() { + return stub.listViewsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists views on a log bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListViewsRequest request =
+   *       ListViewsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListViewsResponse response = configClient.listViewsCallable().call(request);
+   *     for (LogView element : response.getViewsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listViewsCallable() { + return stub.listViewsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a view on a log bucket.. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetViewRequest request =
+   *       GetViewRequest.newBuilder()
+   *           .setName(
+   *               LogViewName.ofProjectLocationBucketViewName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
+   *                   .toString())
+   *           .build();
+   *   LogView response = configClient.getView(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogView getView(GetViewRequest request) { + return getViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a view on a log bucket.. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetViewRequest request =
+   *       GetViewRequest.newBuilder()
+   *           .setName(
+   *               LogViewName.ofProjectLocationBucketViewName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.getViewCallable().futureCall(request);
+   *   // Do something.
+   *   LogView response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getViewCallable() { + return stub.getViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateViewRequest request =
+   *       CreateViewRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setViewId("viewId-816632160")
+   *           .setView(LogView.newBuilder().build())
+   *           .build();
+   *   LogView response = configClient.createView(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogView createView(CreateViewRequest request) { + return createViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateViewRequest request =
+   *       CreateViewRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setViewId("viewId-816632160")
+   *           .setView(LogView.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.createViewCallable().futureCall(request);
+   *   // Do something.
+   *   LogView response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createViewCallable() { + return stub.createViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a view on a log bucket. This method replaces the following fields in the existing view + * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates + * that system is not in a state where it can update the view. If this occurs, please try again in + * a few minutes. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateViewRequest request =
+   *       UpdateViewRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setView(LogView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogView response = configClient.updateView(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogView updateView(UpdateViewRequest request) { + return updateViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a view on a log bucket. This method replaces the following fields in the existing view + * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates + * that system is not in a state where it can update the view. If this occurs, please try again in + * a few minutes. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateViewRequest request =
+   *       UpdateViewRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setView(LogView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateViewCallable().futureCall(request);
+   *   // Do something.
+   *   LogView response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateViewCallable() { + return stub.updateViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that + * system is not in a state where it can delete the view. If this occurs, please try again in a + * few minutes. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteViewRequest request =
+   *       DeleteViewRequest.newBuilder()
+   *           .setName(
+   *               LogViewName.ofProjectLocationBucketViewName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
+   *                   .toString())
+   *           .build();
+   *   configClient.deleteView(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteView(DeleteViewRequest request) { + deleteViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that + * system is not in a state where it can delete the view. If this occurs, please try again in a + * few minutes. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteViewRequest request =
+   *       DeleteViewRequest.newBuilder()
+   *           .setName(
+   *               LogViewName.ofProjectLocationBucketViewName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.deleteViewCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteViewCallable() { + return stub.deleteViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
+   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose sinks are to be listed: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(BillingAccountName parent) { + ListSinksRequest request = + ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   FolderName parent = FolderName.of("[FOLDER]");
+   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose sinks are to be listed: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(FolderName parent) { + ListSinksRequest request = + ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose sinks are to be listed: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(OrganizationName parent) { + ListSinksRequest request = + ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose sinks are to be listed: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(ProjectName parent) { + ListSinksRequest request = + ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose sinks are to be listed: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(String parent) { + ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent).build(); + return listSinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListSinksRequest request =
+   *       ListSinksRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (LogSink element : configClient.listSinks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSinksPagedResponse listSinks(ListSinksRequest request) { + return listSinksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListSinksRequest request =
+   *       ListSinksRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = configClient.listSinksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogSink element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSinksPagedCallable() { + return stub.listSinksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sinks. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListSinksRequest request =
+   *       ListSinksRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListSinksResponse response = configClient.listSinksCallable().call(request);
+   *     for (LogSink element : response.getSinksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSinksCallable() { + return stub.listSinksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
+   *   LogSink response = configClient.getSink(sinkName);
+   * }
+   * }
+ * + * @param sinkName Required. The resource name of the sink: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink getSink(LogSinkName sinkName) { + GetSinkRequest request = + GetSinkRequest.newBuilder() + .setSinkName(sinkName == null ? null : sinkName.toString()) + .build(); + return getSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
+   *   LogSink response = configClient.getSink(sinkName);
+   * }
+   * }
+ * + * @param sinkName Required. The resource name of the sink: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink getSink(String sinkName) { + GetSinkRequest request = GetSinkRequest.newBuilder().setSinkName(sinkName).build(); + return getSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSinkRequest request =
+   *       GetSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .build();
+   *   LogSink response = configClient.getSink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink getSink(GetSinkRequest request) { + return getSinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSinkRequest request =
+   *       GetSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.getSinkCallable().futureCall(request);
+   *   // Do something.
+   *   LogSink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSinkCallable() { + return stub.getSinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.createSink(parent, sink);
+   * }
+   * }
+ * + * @param parent Required. The resource in which to create the sink: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-project"` `"organizations/123456789"` + * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not + * already in use. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(BillingAccountName parent, LogSink sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSink(sink) + .build(); + return createSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   FolderName parent = FolderName.of("[FOLDER]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.createSink(parent, sink);
+   * }
+   * }
+ * + * @param parent Required. The resource in which to create the sink: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-project"` `"organizations/123456789"` + * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not + * already in use. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(FolderName parent, LogSink sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSink(sink) + .build(); + return createSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.createSink(parent, sink);
+   * }
+   * }
+ * + * @param parent Required. The resource in which to create the sink: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-project"` `"organizations/123456789"` + * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not + * already in use. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(OrganizationName parent, LogSink sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSink(sink) + .build(); + return createSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.createSink(parent, sink);
+   * }
+   * }
+ * + * @param parent Required. The resource in which to create the sink: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-project"` `"organizations/123456789"` + * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not + * already in use. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(ProjectName parent, LogSink sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSink(sink) + .build(); + return createSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.createSink(parent, sink);
+   * }
+   * }
+ * + * @param parent Required. The resource in which to create the sink: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-project"` `"organizations/123456789"` + * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not + * already in use. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(String parent, LogSink sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder().setParent(parent).setSink(sink).build(); + return createSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateSinkRequest request =
+   *       CreateSinkRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setSink(LogSink.newBuilder().build())
+   *           .setUniqueWriterIdentity(true)
+   *           .build();
+   *   LogSink response = configClient.createSink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink createSink(CreateSinkRequest request) { + return createSinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sink that exports specified log entries to a destination. The export of + * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not + * permitted to write to the destination. A sink can export log entries only from the resource + * owning the sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateSinkRequest request =
+   *       CreateSinkRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setSink(LogSink.newBuilder().build())
+   *           .setUniqueWriterIdentity(true)
+   *           .build();
+   *   ApiFuture future = configClient.createSinkCallable().futureCall(request);
+   *   // Do something.
+   *   LogSink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSinkCallable() { + return stub.createSinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.updateSink(sinkName, sink);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to update, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @param sink Required. The updated sink, whose name is the same identifier that appears as part + * of `sink_name`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName(sinkName == null ? null : sinkName.toString()) + .setSink(sink) + .build(); + return updateSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   LogSink response = configClient.updateSink(sinkName, sink);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to update, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @param sink Required. The updated sink, whose name is the same identifier that appears as part + * of `sink_name`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink updateSink(String sinkName, LogSink sink) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder().setSinkName(sinkName).setSink(sink).build(); + return updateSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LogSink response = configClient.updateSink(sinkName, sink, updateMask);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to update, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @param sink Required. The updated sink, whose name is the same identifier that appears as part + * of `sink_name`. + * @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update. + * A sink field will be overwritten if, and only if, it is in the update mask. `name` and + * output only fields cannot be updated. + *

An empty `updateMask` is temporarily treated as using the following mask for backwards + * compatibility purposes: + *

`destination,filter,includeChildren` + *

At some point in the future, behavior will be removed and specifying an empty + * `updateMask` will be an error. + *

For a detailed `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + *

For example: `updateMask=filter` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName(sinkName == null ? null : sinkName.toString()) + .setSink(sink) + .setUpdateMask(updateMask) + .build(); + return updateSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
+   *   LogSink sink = LogSink.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LogSink response = configClient.updateSink(sinkName, sink, updateMask);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to update, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @param sink Required. The updated sink, whose name is the same identifier that appears as part + * of `sink_name`. + * @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update. + * A sink field will be overwritten if, and only if, it is in the update mask. `name` and + * output only fields cannot be updated. + *

An empty `updateMask` is temporarily treated as using the following mask for backwards + * compatibility purposes: + *

`destination,filter,includeChildren` + *

At some point in the future, behavior will be removed and specifying an empty + * `updateMask` will be an error. + *

For a detailed `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + *

For example: `updateMask=filter` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateMask) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName(sinkName) + .setSink(sink) + .setUpdateMask(updateMask) + .build(); + return updateSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSinkRequest request =
+   *       UpdateSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .setSink(LogSink.newBuilder().build())
+   *           .setUniqueWriterIdentity(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogSink response = configClient.updateSink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogSink updateSink(UpdateSinkRequest request) { + return updateSinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` + * field. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSinkRequest request =
+   *       UpdateSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .setSink(LogSink.newBuilder().build())
+   *           .setUniqueWriterIdentity(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateSinkCallable().futureCall(request);
+   *   // Do something.
+   *   LogSink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSinkCallable() { + return stub.updateSinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also + * deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
+   *   configClient.deleteSink(sinkName);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to delete, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSink(LogSinkName sinkName) { + DeleteSinkRequest request = + DeleteSinkRequest.newBuilder() + .setSinkName(sinkName == null ? null : sinkName.toString()) + .build(); + deleteSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also + * deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
+   *   configClient.deleteSink(sinkName);
+   * }
+   * }
+ * + * @param sinkName Required. The full resource name of the sink to delete, including the parent + * resource and the sink identifier: + *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" + *

For example: + *

`"projects/my-project/sinks/my-sink"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSink(String sinkName) { + DeleteSinkRequest request = DeleteSinkRequest.newBuilder().setSinkName(sinkName).build(); + deleteSink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also + * deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteSinkRequest request =
+   *       DeleteSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .build();
+   *   configClient.deleteSink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSink(DeleteSinkRequest request) { + deleteSinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also + * deleted. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteSinkRequest request =
+   *       DeleteSinkRequest.newBuilder()
+   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.deleteSinkCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSinkCallable() { + return stub.deleteSinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to + * read the logs stored in the log bucket. A log bucket may currently only contain one link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogBucketName parent =
+   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]");
+   *   Link link = Link.newBuilder().build();
+   *   String linkId = "linkId-1102667083";
+   *   Link response = configClient.createLinkAsync(parent, link, linkId).get();
+   * }
+   * }
+ * + * @param parent Required. The full resource name of the bucket to create a link for. + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * @param link Required. The new link. + * @param linkId Required. The ID to use for the link. The link_id can have up to 100 characters. + * A valid link_id must only have alphanumeric characters and underscores within it. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createLinkAsync( + LogBucketName parent, Link link, String linkId) { + CreateLinkRequest request = + CreateLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setLink(link) + .setLinkId(linkId) + .build(); + return createLinkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to + * read the logs stored in the log bucket. A log bucket may currently only contain one link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent =
+   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *           .toString();
+   *   Link link = Link.newBuilder().build();
+   *   String linkId = "linkId-1102667083";
+   *   Link response = configClient.createLinkAsync(parent, link, linkId).get();
+   * }
+   * }
+ * + * @param parent Required. The full resource name of the bucket to create a link for. + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + * @param link Required. The new link. + * @param linkId Required. The ID to use for the link. The link_id can have up to 100 characters. + * A valid link_id must only have alphanumeric characters and underscores within it. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createLinkAsync( + String parent, Link link, String linkId) { + CreateLinkRequest request = + CreateLinkRequest.newBuilder().setParent(parent).setLink(link).setLinkId(linkId).build(); + return createLinkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to + * read the logs stored in the log bucket. A log bucket may currently only contain one link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateLinkRequest request =
+   *       CreateLinkRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setLink(Link.newBuilder().build())
+   *           .setLinkId("linkId-1102667083")
+   *           .build();
+   *   Link response = configClient.createLinkAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createLinkAsync(CreateLinkRequest request) { + return createLinkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to + * read the logs stored in the log bucket. A log bucket may currently only contain one link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateLinkRequest request =
+   *       CreateLinkRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setLink(Link.newBuilder().build())
+   *           .setLinkId("linkId-1102667083")
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.createLinkOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Link response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createLinkOperationCallable() { + return stub.createLinkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to + * read the logs stored in the log bucket. A log bucket may currently only contain one link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateLinkRequest request =
+   *       CreateLinkRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setLink(Link.newBuilder().build())
+   *           .setLinkId("linkId-1102667083")
+   *           .build();
+   *   ApiFuture future = configClient.createLinkCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createLinkCallable() { + return stub.createLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a link. This will also delete the corresponding BigQuery linked dataset. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LinkName name =
+   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
+   *   configClient.deleteLinkAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the link to delete. + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteLinkAsync(LinkName name) { + DeleteLinkRequest request = + DeleteLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteLinkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a link. This will also delete the corresponding BigQuery linked dataset. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name =
+   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *           .toString();
+   *   configClient.deleteLinkAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the link to delete. + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteLinkAsync(String name) { + DeleteLinkRequest request = DeleteLinkRequest.newBuilder().setName(name).build(); + return deleteLinkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a link. This will also delete the corresponding BigQuery linked dataset. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteLinkRequest request =
+   *       DeleteLinkRequest.newBuilder()
+   *           .setName(
+   *               LinkName.ofProjectLocationBucketLinkName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *                   .toString())
+   *           .build();
+   *   configClient.deleteLinkAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteLinkAsync(DeleteLinkRequest request) { + return deleteLinkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a link. This will also delete the corresponding BigQuery linked dataset. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteLinkRequest request =
+   *       DeleteLinkRequest.newBuilder()
+   *           .setName(
+   *               LinkName.ofProjectLocationBucketLinkName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.deleteLinkOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteLinkOperationCallable() { + return stub.deleteLinkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a link. This will also delete the corresponding BigQuery linked dataset. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteLinkRequest request =
+   *       DeleteLinkRequest.newBuilder()
+   *           .setName(
+   *               LinkName.ofProjectLocationBucketLinkName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.deleteLinkCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteLinkCallable() { + return stub.deleteLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists links. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogBucketName parent =
+   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]");
+   *   for (Link element : configClient.listLinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose links are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLinksPagedResponse listLinks(LogBucketName parent) { + ListLinksRequest request = + ListLinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists links. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent =
+   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *           .toString();
+   *   for (Link element : configClient.listLinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose links are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLinksPagedResponse listLinks(String parent) { + ListLinksRequest request = ListLinksRequest.newBuilder().setParent(parent).build(); + return listLinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists links. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLinksRequest request =
+   *       ListLinksRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Link element : configClient.listLinks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLinksPagedResponse listLinks(ListLinksRequest request) { + return listLinksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists links. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLinksRequest request =
+   *       ListLinksRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = configClient.listLinksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Link element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLinksPagedCallable() { + return stub.listLinksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists links. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLinksRequest request =
+   *       ListLinksRequest.newBuilder()
+   *           .setParent(
+   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+   *                   .toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListLinksResponse response = configClient.listLinksCallable().call(request);
+   *     for (Link element : response.getLinksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLinksCallable() { + return stub.listLinksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LinkName name =
+   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
+   *   Link response = configClient.getLink(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the link: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Link getLink(LinkName name) { + GetLinkRequest request = + GetLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name =
+   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *           .toString();
+   *   Link response = configClient.getLink(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the link: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Link getLink(String name) { + GetLinkRequest request = GetLinkRequest.newBuilder().setName(name).build(); + return getLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetLinkRequest request =
+   *       GetLinkRequest.newBuilder()
+   *           .setName(
+   *               LinkName.ofProjectLocationBucketLinkName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *                   .toString())
+   *           .build();
+   *   Link response = configClient.getLink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Link getLink(GetLinkRequest request) { + return getLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a link. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetLinkRequest request =
+   *       GetLinkRequest.newBuilder()
+   *           .setName(
+   *               LinkName.ofProjectLocationBucketLinkName(
+   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.getLinkCallable().futureCall(request);
+   *   // Do something.
+   *   Link response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLinkCallable() { + return stub.getLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
+   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose exclusions are to be listed. + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(BillingAccountName parent) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExclusions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   FolderName parent = FolderName.of("[FOLDER]");
+   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose exclusions are to be listed. + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(FolderName parent) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExclusions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose exclusions are to be listed. + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExclusions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose exclusions are to be listed. + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(ProjectName parent) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExclusions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource whose exclusions are to be listed. + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(String parent) { + ListExclusionsRequest request = ListExclusionsRequest.newBuilder().setParent(parent).build(); + return listExclusions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListExclusionsRequest request =
+   *       ListExclusionsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (LogExclusion element : configClient.listExclusions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest request) { + return listExclusionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListExclusionsRequest request =
+   *       ListExclusionsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       configClient.listExclusionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogExclusion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExclusionsPagedCallable() { + return stub.listExclusionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ListExclusionsRequest request =
+   *       ListExclusionsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListExclusionsResponse response = configClient.listExclusionsCallable().call(request);
+   *     for (LogExclusion element : response.getExclusionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExclusionsCallable() { + return stub.listExclusionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the description of an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
+   *   LogExclusion response = configClient.getExclusion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of an existing exclusion: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion getExclusion(LogExclusionName name) { + GetExclusionRequest request = + GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the description of an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
+   *   LogExclusion response = configClient.getExclusion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of an existing exclusion: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion getExclusion(String name) { + GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name).build(); + return getExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the description of an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetExclusionRequest request =
+   *       GetExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .build();
+   *   LogExclusion response = configClient.getExclusion(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion getExclusion(GetExclusionRequest request) { + return getExclusionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the description of an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetExclusionRequest request =
+   *       GetExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.getExclusionCallable().futureCall(request);
+   *   // Do something.
+   *   LogExclusion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getExclusionCallable() { + return stub.getExclusionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the exclusion: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` + * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that + * is not already used in the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(BillingAccountName parent, LogExclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExclusion(exclusion) + .build(); + return createExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   FolderName parent = FolderName.of("[FOLDER]");
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the exclusion: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` + * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that + * is not already used in the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(FolderName parent, LogExclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExclusion(exclusion) + .build(); + return createExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the exclusion: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` + * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that + * is not already used in the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(OrganizationName parent, LogExclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExclusion(exclusion) + .build(); + return createExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the exclusion: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` + * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that + * is not already used in the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExclusion(exclusion) + .build(); + return createExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the exclusion: + *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + *

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` + * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that + * is not already used in the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(String parent, LogExclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder().setParent(parent).setExclusion(exclusion).build(); + return createExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateExclusionRequest request =
+   *       CreateExclusionRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setExclusion(LogExclusion.newBuilder().build())
+   *           .build();
+   *   LogExclusion response = configClient.createExclusion(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion createExclusion(CreateExclusionRequest request) { + return createExclusionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CreateExclusionRequest request =
+   *       CreateExclusionRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setExclusion(LogExclusion.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.createExclusionCallable().futureCall(request);
+   *   // Do something.
+   *   LogExclusion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createExclusionCallable() { + return stub.createExclusionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Changes one or more properties of an existing exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask);
+   * }
+   * }
+ * + * @param name Required. The resource name of the exclusion to update: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @param exclusion Required. New values for the existing exclusion. Only the fields specified in + * `update_mask` are relevant. + * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New + * values for the fields are taken from the corresponding fields in the + * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not + * mentioned in `update_mask` are not changed and are ignored in the request. + *

For example, to change the filter and description of an exclusion, specify an + * `update_mask` of `"filter,description"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion updateExclusion( + LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { + UpdateExclusionRequest request = + UpdateExclusionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setExclusion(exclusion) + .setUpdateMask(updateMask) + .build(); + return updateExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Changes one or more properties of an existing exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
+   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask);
+   * }
+   * }
+ * + * @param name Required. The resource name of the exclusion to update: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @param exclusion Required. New values for the existing exclusion. Only the fields specified in + * `update_mask` are relevant. + * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New + * values for the fields are taken from the corresponding fields in the + * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not + * mentioned in `update_mask` are not changed and are ignored in the request. + *

For example, to change the filter and description of an exclusion, specify an + * `update_mask` of `"filter,description"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion updateExclusion( + String name, LogExclusion exclusion, FieldMask updateMask) { + UpdateExclusionRequest request = + UpdateExclusionRequest.newBuilder() + .setName(name) + .setExclusion(exclusion) + .setUpdateMask(updateMask) + .build(); + return updateExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Changes one or more properties of an existing exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateExclusionRequest request =
+   *       UpdateExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .setExclusion(LogExclusion.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogExclusion response = configClient.updateExclusion(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogExclusion updateExclusion(UpdateExclusionRequest request) { + return updateExclusionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Changes one or more properties of an existing exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateExclusionRequest request =
+   *       UpdateExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .setExclusion(LogExclusion.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateExclusionCallable().futureCall(request);
+   *   // Do something.
+   *   LogExclusion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateExclusionCallable() { + return stub.updateExclusionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
+   *   configClient.deleteExclusion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of an existing exclusion to delete: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExclusion(LogExclusionName name) { + DeleteExclusionRequest request = + DeleteExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
+   *   configClient.deleteExclusion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of an existing exclusion to delete: + *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExclusion(String name) { + DeleteExclusionRequest request = DeleteExclusionRequest.newBuilder().setName(name).build(); + deleteExclusion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteExclusionRequest request =
+   *       DeleteExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .build();
+   *   configClient.deleteExclusion(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExclusion(DeleteExclusionRequest request) { + deleteExclusionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an exclusion in the _Default sink. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   DeleteExclusionRequest request =
+   *       DeleteExclusionRequest.newBuilder()
+   *           .setName(
+   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.deleteExclusionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteExclusionCallable() { + return stub.deleteExclusionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Logging CMEK settings for the given resource. + * + *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, + * organizations and billing accounts. Once configured for an organization, it applies to all + * projects and folders in the Google Cloud organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetCmekSettingsRequest request =
+   *       GetCmekSettingsRequest.newBuilder()
+   *           .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   CmekSettings response = configClient.getCmekSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) { + return getCmekSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Logging CMEK settings for the given resource. + * + *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, + * organizations and billing accounts. Once configured for an organization, it applies to all + * projects and folders in the Google Cloud organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetCmekSettingsRequest request =
+   *       GetCmekSettingsRequest.newBuilder()
+   *           .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.getCmekSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   CmekSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCmekSettingsCallable() { + return stub.getCmekSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router CMEK settings for the given resource. + * + *

Note: CMEK for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateCmekSettingsRequest request =
+   *       UpdateCmekSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setCmekSettings(CmekSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CmekSettings response = configClient.updateCmekSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request) { + return updateCmekSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router CMEK settings for the given resource. + * + *

Note: CMEK for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateCmekSettingsRequest request =
+   *       UpdateCmekSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setCmekSettings(CmekSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       configClient.updateCmekSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   CmekSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCmekSettingsCallable() { + return stub.updateCmekSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   SettingsName name = SettingsName.ofProjectName("[PROJECT]");
+   *   Settings response = configClient.getSettings(name);
+   * }
+   * }
+ * + * @param name Required. The resource for which to retrieve settings. + *

"projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings" + * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings" + *

For example: + *

`"organizations/12345/settings"` + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. + * Once configured for an organization, it applies to all projects and folders in the Google + * Cloud organization. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(SettingsName name) { + GetSettingsRequest request = + GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   String name = SettingsName.ofProjectName("[PROJECT]").toString();
+   *   Settings response = configClient.getSettings(name);
+   * }
+   * }
+ * + * @param name Required. The resource for which to retrieve settings. + *

"projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings" + * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings" + *

For example: + *

`"organizations/12345/settings"` + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. + * Once configured for an organization, it applies to all projects and folders in the Google + * Cloud organization. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(String name) { + GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name).build(); + return getSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSettingsRequest request =
+   *       GetSettingsRequest.newBuilder()
+   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   Settings response = configClient.getSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(GetSettingsRequest request) { + return getSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSettingsRequest request =
+   *       GetSettingsRequest.newBuilder()
+   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.getSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   Settings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSettingsCallable() { + return stub.getSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   Settings settings = Settings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Settings response = configClient.updateSettings(settings, updateMask);
+   * }
+   * }
+ * + * @param settings Required. The settings to update. + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more + * information. + * @param updateMask Optional. Field mask identifying which fields from `settings` should be + * updated. A field will be overwritten if and only if it is in the update mask. Output only + * fields cannot be updated. + *

See [FieldMask][google.protobuf.FieldMask] for more information. + *

For example: `"updateMask=kmsKeyName"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings updateSettings(Settings settings, FieldMask updateMask) { + UpdateSettingsRequest request = + UpdateSettingsRequest.newBuilder().setSettings(settings).setUpdateMask(updateMask).build(); + return updateSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSettingsRequest request =
+   *       UpdateSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSettings(Settings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Settings response = configClient.updateSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings updateSettings(UpdateSettingsRequest request) { + return updateSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSettingsRequest request =
+   *       UpdateSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSettings(Settings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   Settings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSettingsCallable() { + return stub.updateSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   CopyLogEntriesResponse response = configClient.copyLogEntriesAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyLogEntriesAsync( + CopyLogEntriesRequest request) { + return copyLogEntriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.copyLogEntriesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CopyLogEntriesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationCallable() { + return stub.copyLogEntriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   ApiFuture future = configClient.copyLogEntriesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable copyLogEntriesCallable() { + return stub.copyLogEntriesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListBucketsPagedResponse + extends AbstractPagedListResponse< + ListBucketsRequest, + ListBucketsResponse, + LogBucket, + ListBucketsPage, + ListBucketsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBucketsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBucketsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBucketsPagedResponse(ListBucketsPage page) { + super(page, ListBucketsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBucketsPage + extends AbstractPage { + + private ListBucketsPage( + PageContext context, + ListBucketsResponse response) { + super(context, response); + } + + private static ListBucketsPage createEmptyPage() { + return new ListBucketsPage(null, null); + } + + @Override + protected ListBucketsPage createPage( + PageContext context, + ListBucketsResponse response) { + return new ListBucketsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBucketsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBucketsRequest, + ListBucketsResponse, + LogBucket, + ListBucketsPage, + ListBucketsFixedSizeCollection> { + + private ListBucketsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBucketsFixedSizeCollection createEmptyCollection() { + return new ListBucketsFixedSizeCollection(null, 0); + } + + @Override + protected ListBucketsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBucketsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListViewsPagedResponse + extends AbstractPagedListResponse< + ListViewsRequest, + ListViewsResponse, + LogView, + ListViewsPage, + ListViewsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListViewsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListViewsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListViewsPagedResponse(ListViewsPage page) { + super(page, ListViewsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListViewsPage + extends AbstractPage { + + private ListViewsPage( + PageContext context, + ListViewsResponse response) { + super(context, response); + } + + private static ListViewsPage createEmptyPage() { + return new ListViewsPage(null, null); + } + + @Override + protected ListViewsPage createPage( + PageContext context, + ListViewsResponse response) { + return new ListViewsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListViewsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListViewsRequest, + ListViewsResponse, + LogView, + ListViewsPage, + ListViewsFixedSizeCollection> { + + private ListViewsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListViewsFixedSizeCollection createEmptyCollection() { + return new ListViewsFixedSizeCollection(null, 0); + } + + @Override + protected ListViewsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListViewsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSinksPagedResponse + extends AbstractPagedListResponse< + ListSinksRequest, + ListSinksResponse, + LogSink, + ListSinksPage, + ListSinksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSinksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSinksPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSinksPagedResponse(ListSinksPage page) { + super(page, ListSinksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSinksPage + extends AbstractPage { + + private ListSinksPage( + PageContext context, + ListSinksResponse response) { + super(context, response); + } + + private static ListSinksPage createEmptyPage() { + return new ListSinksPage(null, null); + } + + @Override + protected ListSinksPage createPage( + PageContext context, + ListSinksResponse response) { + return new ListSinksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSinksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSinksRequest, + ListSinksResponse, + LogSink, + ListSinksPage, + ListSinksFixedSizeCollection> { + + private ListSinksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSinksFixedSizeCollection createEmptyCollection() { + return new ListSinksFixedSizeCollection(null, 0); + } + + @Override + protected ListSinksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSinksFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLinksPagedResponse + extends AbstractPagedListResponse< + ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLinksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListLinksPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListLinksPagedResponse(ListLinksPage page) { + super(page, ListLinksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLinksPage + extends AbstractPage { + + private ListLinksPage( + PageContext context, + ListLinksResponse response) { + super(context, response); + } + + private static ListLinksPage createEmptyPage() { + return new ListLinksPage(null, null); + } + + @Override + protected ListLinksPage createPage( + PageContext context, + ListLinksResponse response) { + return new ListLinksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLinksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { + + private ListLinksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLinksFixedSizeCollection createEmptyCollection() { + return new ListLinksFixedSizeCollection(null, 0); + } + + @Override + protected ListLinksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLinksFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExclusionsPagedResponse + extends AbstractPagedListResponse< + ListExclusionsRequest, + ListExclusionsResponse, + LogExclusion, + ListExclusionsPage, + ListExclusionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExclusionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExclusionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExclusionsPagedResponse(ListExclusionsPage page) { + super(page, ListExclusionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExclusionsPage + extends AbstractPage< + ListExclusionsRequest, ListExclusionsResponse, LogExclusion, ListExclusionsPage> { + + private ListExclusionsPage( + PageContext context, + ListExclusionsResponse response) { + super(context, response); + } + + private static ListExclusionsPage createEmptyPage() { + return new ListExclusionsPage(null, null); + } + + @Override + protected ListExclusionsPage createPage( + PageContext context, + ListExclusionsResponse response) { + return new ListExclusionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExclusionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExclusionsRequest, + ListExclusionsResponse, + LogExclusion, + ListExclusionsPage, + ListExclusionsFixedSizeCollection> { + + private ListExclusionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExclusionsFixedSizeCollection createEmptyCollection() { + return new ListExclusionsFixedSizeCollection(null, 0); + } + + @Override + protected ListExclusionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExclusionsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java new file mode 100644 index 000000000..0d782fcb0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -0,0 +1,628 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; +import com.google.logging.v2.BucketMetadata; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConfigClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getBucket to 30 seconds: + * + *

{@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
+ * ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
+ * configSettingsBuilder
+ *     .getBucketSettings()
+ *     .setRetrySettings(
+ *         configSettingsBuilder
+ *             .getBucketSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConfigSettings configSettings = configSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConfigSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listBuckets. */ + public PagedCallSettings + listBucketsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listBucketsSettings(); + } + + /** Returns the object with the settings used for calls to getBucket. */ + public UnaryCallSettings getBucketSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getBucketSettings(); + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public UnaryCallSettings createBucketAsyncSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncSettings(); + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public OperationCallSettings + createBucketAsyncOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings updateBucketAsyncSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncSettings(); + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public OperationCallSettings + updateBucketAsyncOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncOperationSettings(); + } + + /** Returns the object with the settings used for calls to createBucket. */ + public UnaryCallSettings createBucketSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketSettings(); + } + + /** Returns the object with the settings used for calls to updateBucket. */ + public UnaryCallSettings updateBucketSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketSettings(); + } + + /** Returns the object with the settings used for calls to deleteBucket. */ + public UnaryCallSettings deleteBucketSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteBucketSettings(); + } + + /** Returns the object with the settings used for calls to undeleteBucket. */ + public UnaryCallSettings undeleteBucketSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).undeleteBucketSettings(); + } + + /** Returns the object with the settings used for calls to listViews. */ + public PagedCallSettings + listViewsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listViewsSettings(); + } + + /** Returns the object with the settings used for calls to getView. */ + public UnaryCallSettings getViewSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getViewSettings(); + } + + /** Returns the object with the settings used for calls to createView. */ + public UnaryCallSettings createViewSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createViewSettings(); + } + + /** Returns the object with the settings used for calls to updateView. */ + public UnaryCallSettings updateViewSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateViewSettings(); + } + + /** Returns the object with the settings used for calls to deleteView. */ + public UnaryCallSettings deleteViewSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteViewSettings(); + } + + /** Returns the object with the settings used for calls to listSinks. */ + public PagedCallSettings + listSinksSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listSinksSettings(); + } + + /** Returns the object with the settings used for calls to getSink. */ + public UnaryCallSettings getSinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getSinkSettings(); + } + + /** Returns the object with the settings used for calls to createSink. */ + public UnaryCallSettings createSinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createSinkSettings(); + } + + /** Returns the object with the settings used for calls to updateSink. */ + public UnaryCallSettings updateSinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateSinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteSink. */ + public UnaryCallSettings deleteSinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteSinkSettings(); + } + + /** Returns the object with the settings used for calls to createLink. */ + public UnaryCallSettings createLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkSettings(); + } + + /** Returns the object with the settings used for calls to createLink. */ + public OperationCallSettings + createLinkOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public UnaryCallSettings deleteLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public OperationCallSettings + deleteLinkOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLinks. */ + public PagedCallSettings + listLinksSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listLinksSettings(); + } + + /** Returns the object with the settings used for calls to getLink. */ + public UnaryCallSettings getLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getLinkSettings(); + } + + /** Returns the object with the settings used for calls to listExclusions. */ + public PagedCallSettings< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listExclusionsSettings(); + } + + /** Returns the object with the settings used for calls to getExclusion. */ + public UnaryCallSettings getExclusionSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getExclusionSettings(); + } + + /** Returns the object with the settings used for calls to createExclusion. */ + public UnaryCallSettings createExclusionSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createExclusionSettings(); + } + + /** Returns the object with the settings used for calls to updateExclusion. */ + public UnaryCallSettings updateExclusionSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateExclusionSettings(); + } + + /** Returns the object with the settings used for calls to deleteExclusion. */ + public UnaryCallSettings deleteExclusionSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteExclusionSettings(); + } + + /** Returns the object with the settings used for calls to getCmekSettings. */ + public UnaryCallSettings getCmekSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getCmekSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings updateCmekSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateCmekSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getSettings. */ + public UnaryCallSettings getSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateSettings. */ + public UnaryCallSettings updateSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateSettingsSettings(); + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public UnaryCallSettings copyLogEntriesSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesSettings(); + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesOperationSettings(); + } + + public static final ConfigSettings create(ConfigServiceV2StubSettings stub) throws IOException { + return new ConfigSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ConfigServiceV2StubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ConfigServiceV2StubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ConfigServiceV2StubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ConfigServiceV2StubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ConfigServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ConfigServiceV2StubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConfigServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConfigSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ConfigSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ConfigServiceV2StubSettings.newBuilder(clientContext)); + } + + protected Builder(ConfigSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ConfigServiceV2StubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ConfigServiceV2StubSettings.newBuilder()); + } + + public ConfigServiceV2StubSettings.Builder getStubSettingsBuilder() { + return ((ConfigServiceV2StubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listBuckets. */ + public PagedCallSettings.Builder< + ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> + listBucketsSettings() { + return getStubSettingsBuilder().listBucketsSettings(); + } + + /** Returns the builder for the settings used for calls to getBucket. */ + public UnaryCallSettings.Builder getBucketSettings() { + return getStubSettingsBuilder().getBucketSettings(); + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public UnaryCallSettings.Builder createBucketAsyncSettings() { + return getStubSettingsBuilder().createBucketAsyncSettings(); + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public OperationCallSettings.Builder + createBucketAsyncOperationSettings() { + return getStubSettingsBuilder().createBucketAsyncOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings.Builder updateBucketAsyncSettings() { + return getStubSettingsBuilder().updateBucketAsyncSettings(); + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public OperationCallSettings.Builder + updateBucketAsyncOperationSettings() { + return getStubSettingsBuilder().updateBucketAsyncOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createBucket. */ + public UnaryCallSettings.Builder createBucketSettings() { + return getStubSettingsBuilder().createBucketSettings(); + } + + /** Returns the builder for the settings used for calls to updateBucket. */ + public UnaryCallSettings.Builder updateBucketSettings() { + return getStubSettingsBuilder().updateBucketSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBucket. */ + public UnaryCallSettings.Builder deleteBucketSettings() { + return getStubSettingsBuilder().deleteBucketSettings(); + } + + /** Returns the builder for the settings used for calls to undeleteBucket. */ + public UnaryCallSettings.Builder undeleteBucketSettings() { + return getStubSettingsBuilder().undeleteBucketSettings(); + } + + /** Returns the builder for the settings used for calls to listViews. */ + public PagedCallSettings.Builder + listViewsSettings() { + return getStubSettingsBuilder().listViewsSettings(); + } + + /** Returns the builder for the settings used for calls to getView. */ + public UnaryCallSettings.Builder getViewSettings() { + return getStubSettingsBuilder().getViewSettings(); + } + + /** Returns the builder for the settings used for calls to createView. */ + public UnaryCallSettings.Builder createViewSettings() { + return getStubSettingsBuilder().createViewSettings(); + } + + /** Returns the builder for the settings used for calls to updateView. */ + public UnaryCallSettings.Builder updateViewSettings() { + return getStubSettingsBuilder().updateViewSettings(); + } + + /** Returns the builder for the settings used for calls to deleteView. */ + public UnaryCallSettings.Builder deleteViewSettings() { + return getStubSettingsBuilder().deleteViewSettings(); + } + + /** Returns the builder for the settings used for calls to listSinks. */ + public PagedCallSettings.Builder + listSinksSettings() { + return getStubSettingsBuilder().listSinksSettings(); + } + + /** Returns the builder for the settings used for calls to getSink. */ + public UnaryCallSettings.Builder getSinkSettings() { + return getStubSettingsBuilder().getSinkSettings(); + } + + /** Returns the builder for the settings used for calls to createSink. */ + public UnaryCallSettings.Builder createSinkSettings() { + return getStubSettingsBuilder().createSinkSettings(); + } + + /** Returns the builder for the settings used for calls to updateSink. */ + public UnaryCallSettings.Builder updateSinkSettings() { + return getStubSettingsBuilder().updateSinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSink. */ + public UnaryCallSettings.Builder deleteSinkSettings() { + return getStubSettingsBuilder().deleteSinkSettings(); + } + + /** Returns the builder for the settings used for calls to createLink. */ + public UnaryCallSettings.Builder createLinkSettings() { + return getStubSettingsBuilder().createLinkSettings(); + } + + /** Returns the builder for the settings used for calls to createLink. */ + public OperationCallSettings.Builder + createLinkOperationSettings() { + return getStubSettingsBuilder().createLinkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public UnaryCallSettings.Builder deleteLinkSettings() { + return getStubSettingsBuilder().deleteLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public OperationCallSettings.Builder + deleteLinkOperationSettings() { + return getStubSettingsBuilder().deleteLinkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLinks. */ + public PagedCallSettings.Builder + listLinksSettings() { + return getStubSettingsBuilder().listLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getLink. */ + public UnaryCallSettings.Builder getLinkSettings() { + return getStubSettingsBuilder().getLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listExclusions. */ + public PagedCallSettings.Builder< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings() { + return getStubSettingsBuilder().listExclusionsSettings(); + } + + /** Returns the builder for the settings used for calls to getExclusion. */ + public UnaryCallSettings.Builder getExclusionSettings() { + return getStubSettingsBuilder().getExclusionSettings(); + } + + /** Returns the builder for the settings used for calls to createExclusion. */ + public UnaryCallSettings.Builder + createExclusionSettings() { + return getStubSettingsBuilder().createExclusionSettings(); + } + + /** Returns the builder for the settings used for calls to updateExclusion. */ + public UnaryCallSettings.Builder + updateExclusionSettings() { + return getStubSettingsBuilder().updateExclusionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExclusion. */ + public UnaryCallSettings.Builder deleteExclusionSettings() { + return getStubSettingsBuilder().deleteExclusionSettings(); + } + + /** Returns the builder for the settings used for calls to getCmekSettings. */ + public UnaryCallSettings.Builder + getCmekSettingsSettings() { + return getStubSettingsBuilder().getCmekSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings.Builder + updateCmekSettingsSettings() { + return getStubSettingsBuilder().updateCmekSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getSettings. */ + public UnaryCallSettings.Builder getSettingsSettings() { + return getStubSettingsBuilder().getSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateSettings. */ + public UnaryCallSettings.Builder updateSettingsSettings() { + return getStubSettingsBuilder().updateSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public UnaryCallSettings.Builder copyLogEntriesSettings() { + return getStubSettingsBuilder().copyLogEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return getStubSettingsBuilder().copyLogEntriesOperationSettings(); + } + + @Override + public ConfigSettings build() throws IOException { + return new ConfigSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java new file mode 100644 index 000000000..4306bcec6 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.MonitoredResource; +import com.google.api.MonitoredResourceDescriptor; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.logging.v2.stub.LoggingServiceV2Stub; +import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.OrganizationName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for ingesting and querying logs. + * + *

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: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+ *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
+ *   loggingClient.deleteLog(logName);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the LoggingClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

DeleteLog

Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteLog(DeleteLogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteLog(LogName logName) + *

  • deleteLog(String logName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteLogCallable() + *

+ *

WriteLogEntries

Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • writeLogEntries(WriteLogEntriesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • writeLogEntries(LogName logName, MonitoredResource resource, Map<String, String> labels, List<LogEntry> entries) + *

  • writeLogEntries(String logName, MonitoredResource resource, Map<String, String> labels, List<LogEntry> entries) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • writeLogEntriesCallable() + *

+ *

ListLogEntries

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLogEntries(ListLogEntriesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listLogEntries(List<String> resourceNames, String filter, String orderBy) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLogEntriesPagedCallable() + *

  • listLogEntriesCallable() + *

+ *

ListMonitoredResourceDescriptors

Lists the descriptors for monitored resource types used by Logging.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listMonitoredResourceDescriptorsPagedCallable() + *

  • listMonitoredResourceDescriptorsCallable() + *

+ *

ListLogs

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLogs(ListLogsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listLogs(BillingAccountName parent) + *

  • listLogs(FolderName parent) + *

  • listLogs(OrganizationName parent) + *

  • listLogs(ProjectName parent) + *

  • listLogs(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLogsPagedCallable() + *

  • listLogsCallable() + *

+ *

TailLogEntries

Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • tailLogEntriesCallable() + *

+ *
+ * + *

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 LoggingSettings to create(). + * For example: + * + *

To customize credentials: + * + *

{@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
+ * LoggingSettings loggingSettings =
+ *     LoggingSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class LoggingClient implements BackgroundResource { + private final LoggingSettings settings; + private final LoggingServiceV2Stub stub; + + /** Constructs an instance of LoggingClient with default settings. */ + public static final LoggingClient create() throws IOException { + return create(LoggingSettings.newBuilder().build()); + } + + /** + * Constructs an instance of LoggingClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final LoggingClient create(LoggingSettings settings) throws IOException { + return new LoggingClient(settings); + } + + /** + * Constructs an instance of LoggingClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(LoggingSettings). + */ + public static final LoggingClient create(LoggingServiceV2Stub stub) { + return new LoggingClient(stub); + } + + /** + * Constructs an instance of LoggingClient, 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. + */ + protected LoggingClient(LoggingSettings settings) throws IOException { + this.settings = settings; + this.stub = ((LoggingServiceV2StubSettings) settings.getStubSettings()).createStub(); + } + + protected LoggingClient(LoggingServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + } + + public final LoggingSettings getSettings() { + return settings; + } + + public LoggingServiceV2Stub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
+   *   loggingClient.deleteLog(logName);
+   * }
+   * }
+ * + * @param logName Required. The resource name of the log to delete: + *
    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
+ *

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, + * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLog(LogName logName) { + DeleteLogRequest request = + DeleteLogRequest.newBuilder() + .setLogName(logName == null ? null : logName.toString()) + .build(); + deleteLog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
+   *   loggingClient.deleteLog(logName);
+   * }
+   * }
+ * + * @param logName Required. The resource name of the log to delete: + *
    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
+ *

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, + * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLog(String logName) { + DeleteLogRequest request = DeleteLogRequest.newBuilder().setLogName(logName).build(); + deleteLog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   DeleteLogRequest request =
+   *       DeleteLogRequest.newBuilder()
+   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
+   *           .build();
+   *   loggingClient.deleteLog(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLog(DeleteLogRequest request) { + deleteLogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   DeleteLogRequest request =
+   *       DeleteLogRequest.newBuilder()
+   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
+   *           .build();
+   *   ApiFuture future = loggingClient.deleteLogCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteLogCallable() { + return stub.deleteLogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes log entries to Logging. This API method is the only way to send log entries to Logging. + * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging + * libraries configured to use Logging. A single request may contain log entries for a maximum of + * 1000 different resources (projects, organizations, billing accounts or folders) + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
+   *   MonitoredResource resource = MonitoredResource.newBuilder().build();
+   *   Map labels = new HashMap<>();
+   *   List entries = new ArrayList<>();
+   *   WriteLogEntriesResponse response =
+   *       loggingClient.writeLogEntries(logName, resource, labels, entries);
+   * }
+   * }
+ * + * @param logName Optional. A default log resource name that is assigned to all log entries in + * `entries` that do not specify a value for `log_name`: + *
    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
+ *

`[LOG_ID]` must be URL-encoded. For example: + *

"projects/my-project-id/logs/syslog" + * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" + *

The permission `logging.logEntries.create` is needed on each project, organization, + * billing account, or folder that is receiving new log entries, whether the resource is + * specified in `logName` or in an individual log entry. + * @param resource Optional. A default monitored resource object that is assigned to all log + * entries in `entries` that do not specify a value for `resource`. Example: + *

{ "type": "gce_instance", "labels": { "zone": "us-central1-a", "instance_id": + * "00000000000000000000" }} + *

See [LogEntry][google.logging.v2.LogEntry]. + * @param labels Optional. Default labels that are added to the `labels` field of all log entries + * in `entries`. If a log entry already has a label with the same key as a label in this + * parameter, then the log entry's label is not changed. See + * [LogEntry][google.logging.v2.LogEntry]. + * @param entries Required. The log entries to send to Logging. The order of log entries in this + * list does not matter. Values supplied in this method's `log_name`, `resource`, and `labels` + * fields are copied into those log entries in this list that do not include values for their + * corresponding fields. For more information, see the [LogEntry][google.logging.v2.LogEntry] + * type. + *

If the `timestamp` or `insert_id` fields are missing in log entries, then this method + * supplies the current time or a unique identifier, respectively. The supplied values are + * chosen so that, among the log entries that did not supply their own values, the entries + * earlier in the list will sort before the entries later in the list. See the `entries.list` + * method. + *

Log entries with timestamps that are more than the [logs retention + * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the + * future will not be available when calling `entries.list`. However, those log entries can + * still be [exported with + * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). + *

To improve throughput and to avoid exceeding the [quota + * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should + * try to include several log entries in this list, rather than calling this method for each + * individual log entry. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteLogEntriesResponse writeLogEntries( + LogName logName, + MonitoredResource resource, + Map labels, + List entries) { + WriteLogEntriesRequest request = + WriteLogEntriesRequest.newBuilder() + .setLogName(logName == null ? null : logName.toString()) + .setResource(resource) + .putAllLabels(labels) + .addAllEntries(entries) + .build(); + return writeLogEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes log entries to Logging. This API method is the only way to send log entries to Logging. + * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging + * libraries configured to use Logging. A single request may contain log entries for a maximum of + * 1000 different resources (projects, organizations, billing accounts or folders) + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
+   *   MonitoredResource resource = MonitoredResource.newBuilder().build();
+   *   Map labels = new HashMap<>();
+   *   List entries = new ArrayList<>();
+   *   WriteLogEntriesResponse response =
+   *       loggingClient.writeLogEntries(logName, resource, labels, entries);
+   * }
+   * }
+ * + * @param logName Optional. A default log resource name that is assigned to all log entries in + * `entries` that do not specify a value for `log_name`: + *
    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
+ *

`[LOG_ID]` must be URL-encoded. For example: + *

"projects/my-project-id/logs/syslog" + * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" + *

The permission `logging.logEntries.create` is needed on each project, organization, + * billing account, or folder that is receiving new log entries, whether the resource is + * specified in `logName` or in an individual log entry. + * @param resource Optional. A default monitored resource object that is assigned to all log + * entries in `entries` that do not specify a value for `resource`. Example: + *

{ "type": "gce_instance", "labels": { "zone": "us-central1-a", "instance_id": + * "00000000000000000000" }} + *

See [LogEntry][google.logging.v2.LogEntry]. + * @param labels Optional. Default labels that are added to the `labels` field of all log entries + * in `entries`. If a log entry already has a label with the same key as a label in this + * parameter, then the log entry's label is not changed. See + * [LogEntry][google.logging.v2.LogEntry]. + * @param entries Required. The log entries to send to Logging. The order of log entries in this + * list does not matter. Values supplied in this method's `log_name`, `resource`, and `labels` + * fields are copied into those log entries in this list that do not include values for their + * corresponding fields. For more information, see the [LogEntry][google.logging.v2.LogEntry] + * type. + *

If the `timestamp` or `insert_id` fields are missing in log entries, then this method + * supplies the current time or a unique identifier, respectively. The supplied values are + * chosen so that, among the log entries that did not supply their own values, the entries + * earlier in the list will sort before the entries later in the list. See the `entries.list` + * method. + *

Log entries with timestamps that are more than the [logs retention + * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the + * future will not be available when calling `entries.list`. However, those log entries can + * still be [exported with + * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). + *

To improve throughput and to avoid exceeding the [quota + * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should + * try to include several log entries in this list, rather than calling this method for each + * individual log entry. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteLogEntriesResponse writeLogEntries( + String logName, + MonitoredResource resource, + Map labels, + List entries) { + WriteLogEntriesRequest request = + WriteLogEntriesRequest.newBuilder() + .setLogName(logName) + .setResource(resource) + .putAllLabels(labels) + .addAllEntries(entries) + .build(); + return writeLogEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes log entries to Logging. This API method is the only way to send log entries to Logging. + * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging + * libraries configured to use Logging. A single request may contain log entries for a maximum of + * 1000 different resources (projects, organizations, billing accounts or folders) + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   WriteLogEntriesRequest request =
+   *       WriteLogEntriesRequest.newBuilder()
+   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
+   *           .setResource(MonitoredResource.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .addAllEntries(new ArrayList())
+   *           .setPartialSuccess(true)
+   *           .setDryRun(true)
+   *           .build();
+   *   WriteLogEntriesResponse response = loggingClient.writeLogEntries(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest request) { + return writeLogEntriesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes log entries to Logging. This API method is the only way to send log entries to Logging. + * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging + * libraries configured to use Logging. A single request may contain log entries for a maximum of + * 1000 different resources (projects, organizations, billing accounts or folders) + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   WriteLogEntriesRequest request =
+   *       WriteLogEntriesRequest.newBuilder()
+   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
+   *           .setResource(MonitoredResource.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .addAllEntries(new ArrayList())
+   *           .setPartialSuccess(true)
+   *           .setDryRun(true)
+   *           .build();
+   *   ApiFuture future =
+   *       loggingClient.writeLogEntriesCallable().futureCall(request);
+   *   // Do something.
+   *   WriteLogEntriesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + writeLogEntriesCallable() { + return stub.writeLogEntriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](https://cloud.google.com/logging/docs/export). + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   List resourceNames = new ArrayList<>();
+   *   String filter = "filter-1274492040";
+   *   String orderBy = "orderBy-1207110587";
+   *   for (LogEntry element :
+   *       loggingClient.listLogEntries(resourceNames, filter, orderBy).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param resourceNames Required. Names of one or more parent resources from which to retrieve log + * entries: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ *

May alternatively be one or more views: + *

* + * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * + * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + * * + * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + *

Projects listed in the `project_ids` field are added to this list. A maximum of 100 + * resources may be specified in a single request. + * @param filter Optional. Only log entries that match the filter are returned. An empty filter + * matches all log entries in the resources listed in `resource_names`. Referencing a parent + * resource that is not listed in `resource_names` will cause the filter to return no results. + * The maximum length of a filter is 20,000 characters. + * @param orderBy Optional. How the results should be sorted. Presently, the only permitted values + * are `"timestamp asc"` (default) and `"timestamp desc"`. The first option returns entries in + * order of increasing values of `LogEntry.timestamp` (oldest first), and the second option + * returns entries in order of decreasing timestamps (newest first). Entries with equal + * timestamps are returned in order of their `insert_id` values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogEntriesPagedResponse listLogEntries( + List resourceNames, String filter, String orderBy) { + ListLogEntriesRequest request = + ListLogEntriesRequest.newBuilder() + .addAllResourceNames(resourceNames) + .setFilter(filter) + .setOrderBy(orderBy) + .build(); + return listLogEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](https://cloud.google.com/logging/docs/export). + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogEntriesRequest request =
+   *       ListLogEntriesRequest.newBuilder()
+   *           .addAllResourceNames(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (LogEntry element : loggingClient.listLogEntries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest request) { + return listLogEntriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](https://cloud.google.com/logging/docs/export). + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogEntriesRequest request =
+   *       ListLogEntriesRequest.newBuilder()
+   *           .addAllResourceNames(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = loggingClient.listLogEntriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogEntry element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogEntriesPagedCallable() { + return stub.listLogEntriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](https://cloud.google.com/logging/docs/export). + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogEntriesRequest request =
+   *       ListLogEntriesRequest.newBuilder()
+   *           .addAllResourceNames(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLogEntriesResponse response = loggingClient.listLogEntriesCallable().call(request);
+   *     for (LogEntry element : response.getEntriesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogEntriesCallable() { + return stub.listLogEntriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the descriptors for monitored resource types used by Logging. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListMonitoredResourceDescriptorsRequest request =
+   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MonitoredResourceDescriptor element :
+   *       loggingClient.listMonitoredResourceDescriptors(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( + ListMonitoredResourceDescriptorsRequest request) { + return listMonitoredResourceDescriptorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the descriptors for monitored resource types used by Logging. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListMonitoredResourceDescriptorsRequest request =
+   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       loggingClient.listMonitoredResourceDescriptorsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MonitoredResourceDescriptor element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsPagedCallable() { + return stub.listMonitoredResourceDescriptorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the descriptors for monitored resource types used by Logging. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListMonitoredResourceDescriptorsRequest request =
+   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMonitoredResourceDescriptorsResponse response =
+   *         loggingClient.listMonitoredResourceDescriptorsCallable().call(request);
+   *     for (MonitoredResourceDescriptor element : response.getResourceDescriptorsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsCallable() { + return stub.listMonitoredResourceDescriptorsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
+   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name to list logs for: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(BillingAccountName parent) { + ListLogsRequest request = + ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   FolderName parent = FolderName.of("[FOLDER]");
+   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name to list logs for: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(FolderName parent) { + ListLogsRequest request = + ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name to list logs for: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(OrganizationName parent) { + ListLogsRequest request = + ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name to list logs for: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(ProjectName parent) { + ListLogsRequest request = + ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name to list logs for: + *
    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(String parent) { + ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent).build(); + return listLogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .addAllResourceNames(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : loggingClient.listLogs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogsPagedResponse listLogs(ListLogsRequest request) { + return listLogsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .addAllResourceNames(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = loggingClient.listLogsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLogsPagedCallable() { + return stub.listLogsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have + * entries are listed. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .addAllResourceNames(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLogsResponse response = loggingClient.listLogsCallable().call(request);
+   *     for (String element : response.getLogNamesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLogsCallable() { + return stub.listLogsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Streaming read of log entries as they are ingested. Until the stream is terminated, it will + * continue reading logs. + * + *

Sample code: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+   *   BidiStream bidiStream =
+   *       loggingClient.tailLogEntriesCallable().call();
+   *   TailLogEntriesRequest request =
+   *       TailLogEntriesRequest.newBuilder()
+   *           .addAllResourceNames(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setBufferWindow(Duration.newBuilder().build())
+   *           .build();
+   *   bidiStream.send(request);
+   *   for (TailLogEntriesResponse response : bidiStream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final BidiStreamingCallable + tailLogEntriesCallable() { + return stub.tailLogEntriesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLogEntriesPagedResponse + extends AbstractPagedListResponse< + ListLogEntriesRequest, + ListLogEntriesResponse, + LogEntry, + ListLogEntriesPage, + ListLogEntriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLogEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLogEntriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLogEntriesPagedResponse(ListLogEntriesPage page) { + super(page, ListLogEntriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLogEntriesPage + extends AbstractPage< + ListLogEntriesRequest, ListLogEntriesResponse, LogEntry, ListLogEntriesPage> { + + private ListLogEntriesPage( + PageContext context, + ListLogEntriesResponse response) { + super(context, response); + } + + private static ListLogEntriesPage createEmptyPage() { + return new ListLogEntriesPage(null, null); + } + + @Override + protected ListLogEntriesPage createPage( + PageContext context, + ListLogEntriesResponse response) { + return new ListLogEntriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLogEntriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLogEntriesRequest, + ListLogEntriesResponse, + LogEntry, + ListLogEntriesPage, + ListLogEntriesFixedSizeCollection> { + + private ListLogEntriesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLogEntriesFixedSizeCollection createEmptyCollection() { + return new ListLogEntriesFixedSizeCollection(null, 0); + } + + @Override + protected ListLogEntriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLogEntriesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMonitoredResourceDescriptorsPagedResponse + extends AbstractPagedListResponse< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor, + ListMonitoredResourceDescriptorsPage, + ListMonitoredResourceDescriptorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMonitoredResourceDescriptorsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMonitoredResourceDescriptorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMonitoredResourceDescriptorsPagedResponse( + ListMonitoredResourceDescriptorsPage page) { + super(page, ListMonitoredResourceDescriptorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMonitoredResourceDescriptorsPage + extends AbstractPage< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor, + ListMonitoredResourceDescriptorsPage> { + + private ListMonitoredResourceDescriptorsPage( + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + ListMonitoredResourceDescriptorsResponse response) { + super(context, response); + } + + private static ListMonitoredResourceDescriptorsPage createEmptyPage() { + return new ListMonitoredResourceDescriptorsPage(null, null); + } + + @Override + protected ListMonitoredResourceDescriptorsPage createPage( + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + ListMonitoredResourceDescriptorsResponse response) { + return new ListMonitoredResourceDescriptorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMonitoredResourceDescriptorsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor, + ListMonitoredResourceDescriptorsPage, + ListMonitoredResourceDescriptorsFixedSizeCollection> { + + private ListMonitoredResourceDescriptorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMonitoredResourceDescriptorsFixedSizeCollection createEmptyCollection() { + return new ListMonitoredResourceDescriptorsFixedSizeCollection(null, 0); + } + + @Override + protected ListMonitoredResourceDescriptorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMonitoredResourceDescriptorsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLogsPagedResponse + extends AbstractPagedListResponse< + ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLogsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListLogsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListLogsPagedResponse(ListLogsPage page) { + super(page, ListLogsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLogsPage + extends AbstractPage { + + private ListLogsPage( + PageContext context, ListLogsResponse response) { + super(context, response); + } + + private static ListLogsPage createEmptyPage() { + return new ListLogsPage(null, null); + } + + @Override + protected ListLogsPage createPage( + PageContext context, ListLogsResponse response) { + return new ListLogsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLogsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { + + private ListLogsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLogsFixedSizeCollection createEmptyCollection() { + return new ListLogsFixedSizeCollection(null, 0); + } + + @Override + protected ListLogsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLogsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java new file mode 100644 index 000000000..b50cf2240 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java @@ -0,0 +1,271 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LoggingClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of deleteLog to 30 seconds: + * + *

{@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
+ * LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder();
+ * loggingSettingsBuilder
+ *     .deleteLogSettings()
+ *     .setRetrySettings(
+ *         loggingSettingsBuilder
+ *             .deleteLogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * LoggingSettings loggingSettings = loggingSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class LoggingSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to deleteLog. */ + public UnaryCallSettings deleteLogSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()).deleteLogSettings(); + } + + /** Returns the object with the settings used for calls to writeLogEntries. */ + public BatchingCallSettings + writeLogEntriesSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()).writeLogEntriesSettings(); + } + + /** Returns the object with the settings used for calls to listLogEntries. */ + public PagedCallSettings< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()).listLogEntriesSettings(); + } + + /** Returns the object with the settings used for calls to listMonitoredResourceDescriptors. */ + public PagedCallSettings< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()) + .listMonitoredResourceDescriptorsSettings(); + } + + /** Returns the object with the settings used for calls to listLogs. */ + public PagedCallSettings + listLogsSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()).listLogsSettings(); + } + + /** Returns the object with the settings used for calls to tailLogEntries. */ + public StreamingCallSettings + tailLogEntriesSettings() { + return ((LoggingServiceV2StubSettings) getStubSettings()).tailLogEntriesSettings(); + } + + public static final LoggingSettings create(LoggingServiceV2StubSettings stub) throws IOException { + return new LoggingSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return LoggingServiceV2StubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return LoggingServiceV2StubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return LoggingServiceV2StubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return LoggingServiceV2StubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return LoggingServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return LoggingServiceV2StubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LoggingServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LoggingSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for LoggingSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(LoggingServiceV2StubSettings.newBuilder(clientContext)); + } + + protected Builder(LoggingSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(LoggingServiceV2StubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(LoggingServiceV2StubSettings.newBuilder()); + } + + public LoggingServiceV2StubSettings.Builder getStubSettingsBuilder() { + return ((LoggingServiceV2StubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to deleteLog. */ + public UnaryCallSettings.Builder deleteLogSettings() { + return getStubSettingsBuilder().deleteLogSettings(); + } + + /** Returns the builder for the settings used for calls to writeLogEntries. */ + public BatchingCallSettings.Builder + writeLogEntriesSettings() { + return getStubSettingsBuilder().writeLogEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to listLogEntries. */ + public PagedCallSettings.Builder< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings() { + return getStubSettingsBuilder().listLogEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to listMonitoredResourceDescriptors. */ + public PagedCallSettings.Builder< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings() { + return getStubSettingsBuilder().listMonitoredResourceDescriptorsSettings(); + } + + /** Returns the builder for the settings used for calls to listLogs. */ + public PagedCallSettings.Builder + listLogsSettings() { + return getStubSettingsBuilder().listLogsSettings(); + } + + /** Returns the builder for the settings used for calls to tailLogEntries. */ + public StreamingCallSettings.Builder + tailLogEntriesSettings() { + return getStubSettingsBuilder().tailLogEntriesSettings(); + } + + @Override + public LoggingSettings build() throws IOException { + return new LoggingSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java new file mode 100644 index 000000000..44601734b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.logging.v2.stub.MetricsServiceV2Stub; +import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for configuring logs-based metrics. + * + *

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: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+ *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
+ *   LogMetric response = metricsClient.getLogMetric(metricName);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the MetricsClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

ListLogMetrics

Lists logs-based metrics.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLogMetrics(ListLogMetricsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listLogMetrics(ProjectName parent) + *

  • listLogMetrics(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLogMetricsPagedCallable() + *

  • listLogMetricsCallable() + *

+ *

GetLogMetric

Gets a logs-based metric.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLogMetric(GetLogMetricRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getLogMetric(LogMetricName metricName) + *

  • getLogMetric(String metricName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLogMetricCallable() + *

+ *

CreateLogMetric

Creates a logs-based metric.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createLogMetric(CreateLogMetricRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createLogMetric(ProjectName parent, LogMetric metric) + *

  • createLogMetric(String parent, LogMetric metric) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createLogMetricCallable() + *

+ *

UpdateLogMetric

Creates or updates a logs-based metric.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateLogMetric(UpdateLogMetricRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateLogMetric(LogMetricName metricName, LogMetric metric) + *

  • updateLogMetric(String metricName, LogMetric metric) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateLogMetricCallable() + *

+ *

DeleteLogMetric

Deletes a logs-based metric.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteLogMetric(DeleteLogMetricRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteLogMetric(LogMetricName metricName) + *

  • deleteLogMetric(String metricName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteLogMetricCallable() + *

+ *
+ * + *

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 MetricsSettings to create(). + * For example: + * + *

To customize credentials: + * + *

{@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
+ * MetricsSettings metricsSettings =
+ *     MetricsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MetricsClient implements BackgroundResource { + private final MetricsSettings settings; + private final MetricsServiceV2Stub stub; + + /** Constructs an instance of MetricsClient with default settings. */ + public static final MetricsClient create() throws IOException { + return create(MetricsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MetricsClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MetricsClient create(MetricsSettings settings) throws IOException { + return new MetricsClient(settings); + } + + /** + * Constructs an instance of MetricsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(MetricsSettings). + */ + public static final MetricsClient create(MetricsServiceV2Stub stub) { + return new MetricsClient(stub); + } + + /** + * Constructs an instance of MetricsClient, 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. + */ + protected MetricsClient(MetricsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MetricsServiceV2StubSettings) settings.getStubSettings()).createStub(); + } + + protected MetricsClient(MetricsServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + } + + public final MetricsSettings getSettings() { + return settings; + } + + public MetricsServiceV2Stub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project containing the metrics: + *

"projects/[PROJECT_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) { + ListLogMetricsRequest request = + ListLogMetricsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLogMetrics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project containing the metrics: + *

"projects/[PROJECT_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogMetricsPagedResponse listLogMetrics(String parent) { + ListLogMetricsRequest request = ListLogMetricsRequest.newBuilder().setParent(parent).build(); + return listLogMetrics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   ListLogMetricsRequest request =
+   *       ListLogMetricsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (LogMetric element : metricsClient.listLogMetrics(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest request) { + return listLogMetricsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   ListLogMetricsRequest request =
+   *       ListLogMetricsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = metricsClient.listLogMetricsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogMetric element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogMetricsPagedCallable() { + return stub.listLogMetricsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   ListLogMetricsRequest request =
+   *       ListLogMetricsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListLogMetricsResponse response = metricsClient.listLogMetricsCallable().call(request);
+   *     for (LogMetric element : response.getMetricsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogMetricsCallable() { + return stub.listLogMetricsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
+   *   LogMetric response = metricsClient.getLogMetric(metricName);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the desired metric: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric getLogMetric(LogMetricName metricName) { + GetLogMetricRequest request = + GetLogMetricRequest.newBuilder() + .setMetricName(metricName == null ? null : metricName.toString()) + .build(); + return getLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
+   *   LogMetric response = metricsClient.getLogMetric(metricName);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the desired metric: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric getLogMetric(String metricName) { + GetLogMetricRequest request = + GetLogMetricRequest.newBuilder().setMetricName(metricName).build(); + return getLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   GetLogMetricRequest request =
+   *       GetLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .build();
+   *   LogMetric response = metricsClient.getLogMetric(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric getLogMetric(GetLogMetricRequest request) { + return getLogMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   GetLogMetricRequest request =
+   *       GetLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .build();
+   *   ApiFuture future = metricsClient.getLogMetricCallable().futureCall(request);
+   *   // Do something.
+   *   LogMetric response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLogMetricCallable() { + return stub.getLogMetricCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   LogMetric metric = LogMetric.newBuilder().build();
+   *   LogMetric response = metricsClient.createLogMetric(parent, metric);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the project in which to create the metric: + *

"projects/[PROJECT_ID]" + *

The new metric must be provided in the request. + * @param metric Required. The new logs-based metric, which must not have an identifier that + * already exists. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) { + CreateLogMetricRequest request = + CreateLogMetricRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMetric(metric) + .build(); + return createLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   LogMetric metric = LogMetric.newBuilder().build();
+   *   LogMetric response = metricsClient.createLogMetric(parent, metric);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the project in which to create the metric: + *

"projects/[PROJECT_ID]" + *

The new metric must be provided in the request. + * @param metric Required. The new logs-based metric, which must not have an identifier that + * already exists. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric createLogMetric(String parent, LogMetric metric) { + CreateLogMetricRequest request = + CreateLogMetricRequest.newBuilder().setParent(parent).setMetric(metric).build(); + return createLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   CreateLogMetricRequest request =
+   *       CreateLogMetricRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setMetric(LogMetric.newBuilder().build())
+   *           .build();
+   *   LogMetric response = metricsClient.createLogMetric(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric createLogMetric(CreateLogMetricRequest request) { + return createLogMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   CreateLogMetricRequest request =
+   *       CreateLogMetricRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setMetric(LogMetric.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metricsClient.createLogMetricCallable().futureCall(request);
+   *   // Do something.
+   *   LogMetric response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createLogMetricCallable() { + return stub.createLogMetricCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates or updates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
+   *   LogMetric metric = LogMetric.newBuilder().build();
+   *   LogMetric response = metricsClient.updateLogMetric(metricName, metric);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the metric to update: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + *

The updated metric must be provided in the request and it's `name` field must be the + * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is + * created. + * @param metric Required. The updated metric. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metric) { + UpdateLogMetricRequest request = + UpdateLogMetricRequest.newBuilder() + .setMetricName(metricName == null ? null : metricName.toString()) + .setMetric(metric) + .build(); + return updateLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates or updates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
+   *   LogMetric metric = LogMetric.newBuilder().build();
+   *   LogMetric response = metricsClient.updateLogMetric(metricName, metric);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the metric to update: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + *

The updated metric must be provided in the request and it's `name` field must be the + * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is + * created. + * @param metric Required. The updated metric. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric updateLogMetric(String metricName, LogMetric metric) { + UpdateLogMetricRequest request = + UpdateLogMetricRequest.newBuilder().setMetricName(metricName).setMetric(metric).build(); + return updateLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates or updates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   UpdateLogMetricRequest request =
+   *       UpdateLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .setMetric(LogMetric.newBuilder().build())
+   *           .build();
+   *   LogMetric response = metricsClient.updateLogMetric(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogMetric updateLogMetric(UpdateLogMetricRequest request) { + return updateLogMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates or updates a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   UpdateLogMetricRequest request =
+   *       UpdateLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .setMetric(LogMetric.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metricsClient.updateLogMetricCallable().futureCall(request);
+   *   // Do something.
+   *   LogMetric response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateLogMetricCallable() { + return stub.updateLogMetricCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
+   *   metricsClient.deleteLogMetric(metricName);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the metric to delete: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLogMetric(LogMetricName metricName) { + DeleteLogMetricRequest request = + DeleteLogMetricRequest.newBuilder() + .setMetricName(metricName == null ? null : metricName.toString()) + .build(); + deleteLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
+   *   metricsClient.deleteLogMetric(metricName);
+   * }
+   * }
+ * + * @param metricName Required. The resource name of the metric to delete: + *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLogMetric(String metricName) { + DeleteLogMetricRequest request = + DeleteLogMetricRequest.newBuilder().setMetricName(metricName).build(); + deleteLogMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   DeleteLogMetricRequest request =
+   *       DeleteLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .build();
+   *   metricsClient.deleteLogMetric(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLogMetric(DeleteLogMetricRequest request) { + deleteLogMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logs-based metric. + * + *

Sample code: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+   *   DeleteLogMetricRequest request =
+   *       DeleteLogMetricRequest.newBuilder()
+   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
+   *           .build();
+   *   ApiFuture future = metricsClient.deleteLogMetricCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteLogMetricCallable() { + return stub.deleteLogMetricCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLogMetricsPagedResponse + extends AbstractPagedListResponse< + ListLogMetricsRequest, + ListLogMetricsResponse, + LogMetric, + ListLogMetricsPage, + ListLogMetricsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLogMetricsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLogMetricsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLogMetricsPagedResponse(ListLogMetricsPage page) { + super(page, ListLogMetricsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLogMetricsPage + extends AbstractPage< + ListLogMetricsRequest, ListLogMetricsResponse, LogMetric, ListLogMetricsPage> { + + private ListLogMetricsPage( + PageContext context, + ListLogMetricsResponse response) { + super(context, response); + } + + private static ListLogMetricsPage createEmptyPage() { + return new ListLogMetricsPage(null, null); + } + + @Override + protected ListLogMetricsPage createPage( + PageContext context, + ListLogMetricsResponse response) { + return new ListLogMetricsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLogMetricsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLogMetricsRequest, + ListLogMetricsResponse, + LogMetric, + ListLogMetricsPage, + ListLogMetricsFixedSizeCollection> { + + private ListLogMetricsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLogMetricsFixedSizeCollection createEmptyCollection() { + return new ListLogMetricsFixedSizeCollection(null, 0); + } + + @Override + protected ListLogMetricsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLogMetricsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java new file mode 100644 index 000000000..025d7bc7b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java @@ -0,0 +1,238 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetricsClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getLogMetric to 30 seconds: + * + *

{@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
+ * MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder();
+ * metricsSettingsBuilder
+ *     .getLogMetricSettings()
+ *     .setRetrySettings(
+ *         metricsSettingsBuilder
+ *             .getLogMetricSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * MetricsSettings metricsSettings = metricsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class MetricsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listLogMetrics. */ + public PagedCallSettings< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings() { + return ((MetricsServiceV2StubSettings) getStubSettings()).listLogMetricsSettings(); + } + + /** Returns the object with the settings used for calls to getLogMetric. */ + public UnaryCallSettings getLogMetricSettings() { + return ((MetricsServiceV2StubSettings) getStubSettings()).getLogMetricSettings(); + } + + /** Returns the object with the settings used for calls to createLogMetric. */ + public UnaryCallSettings createLogMetricSettings() { + return ((MetricsServiceV2StubSettings) getStubSettings()).createLogMetricSettings(); + } + + /** Returns the object with the settings used for calls to updateLogMetric. */ + public UnaryCallSettings updateLogMetricSettings() { + return ((MetricsServiceV2StubSettings) getStubSettings()).updateLogMetricSettings(); + } + + /** Returns the object with the settings used for calls to deleteLogMetric. */ + public UnaryCallSettings deleteLogMetricSettings() { + return ((MetricsServiceV2StubSettings) getStubSettings()).deleteLogMetricSettings(); + } + + public static final MetricsSettings create(MetricsServiceV2StubSettings stub) throws IOException { + return new MetricsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MetricsServiceV2StubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MetricsServiceV2StubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MetricsServiceV2StubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MetricsServiceV2StubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MetricsServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MetricsServiceV2StubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MetricsServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetricsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MetricsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MetricsServiceV2StubSettings.newBuilder(clientContext)); + } + + protected Builder(MetricsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MetricsServiceV2StubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MetricsServiceV2StubSettings.newBuilder()); + } + + public MetricsServiceV2StubSettings.Builder getStubSettingsBuilder() { + return ((MetricsServiceV2StubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listLogMetrics. */ + public PagedCallSettings.Builder< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings() { + return getStubSettingsBuilder().listLogMetricsSettings(); + } + + /** Returns the builder for the settings used for calls to getLogMetric. */ + public UnaryCallSettings.Builder getLogMetricSettings() { + return getStubSettingsBuilder().getLogMetricSettings(); + } + + /** Returns the builder for the settings used for calls to createLogMetric. */ + public UnaryCallSettings.Builder createLogMetricSettings() { + return getStubSettingsBuilder().createLogMetricSettings(); + } + + /** Returns the builder for the settings used for calls to updateLogMetric. */ + public UnaryCallSettings.Builder updateLogMetricSettings() { + return getStubSettingsBuilder().updateLogMetricSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLogMetric. */ + public UnaryCallSettings.Builder deleteLogMetricSettings() { + return getStubSettingsBuilder().deleteLogMetricSettings(); + } + + @Override + public MetricsSettings build() throws IOException { + return new MetricsSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json new file mode 100644 index 000000000..e29e092e0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json @@ -0,0 +1,165 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.logging.v2", + "libraryPackage": "com.google.cloud.logging.v2", + "services": { + "LoggingServiceV2": { + "clients": { + "grpc": { + "libraryClient": "LoggingClient", + "rpcs": { + "DeleteLog": { + "methods": ["deleteLog", "deleteLog", "deleteLog", "deleteLogCallable"] + }, + "ListLogEntries": { + "methods": ["listLogEntries", "listLogEntries", "listLogEntriesPagedCallable", "listLogEntriesCallable"] + }, + "ListLogs": { + "methods": ["listLogs", "listLogs", "listLogs", "listLogs", "listLogs", "listLogs", "listLogsPagedCallable", "listLogsCallable"] + }, + "ListMonitoredResourceDescriptors": { + "methods": ["listMonitoredResourceDescriptors", "listMonitoredResourceDescriptorsPagedCallable", "listMonitoredResourceDescriptorsCallable"] + }, + "TailLogEntries": { + "methods": ["tailLogEntriesCallable"] + }, + "WriteLogEntries": { + "methods": ["writeLogEntries", "writeLogEntries", "writeLogEntries", "writeLogEntriesCallable"] + } + } + } + } + }, + "ConfigServiceV2": { + "clients": { + "grpc": { + "libraryClient": "ConfigClient", + "rpcs": { + "CopyLogEntries": { + "methods": ["copyLogEntriesAsync", "copyLogEntriesOperationCallable", "copyLogEntriesCallable"] + }, + "CreateBucket": { + "methods": ["createBucket", "createBucketCallable"] + }, + "CreateBucketAsync": { + "methods": ["createBucketAsyncAsync", "createBucketAsyncOperationCallable", "createBucketAsyncCallable"] + }, + "CreateExclusion": { + "methods": ["createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusionCallable"] + }, + "CreateLink": { + "methods": ["createLinkAsync", "createLinkAsync", "createLinkAsync", "createLinkOperationCallable", "createLinkCallable"] + }, + "CreateSink": { + "methods": ["createSink", "createSink", "createSink", "createSink", "createSink", "createSink", "createSinkCallable"] + }, + "CreateView": { + "methods": ["createView", "createViewCallable"] + }, + "DeleteBucket": { + "methods": ["deleteBucket", "deleteBucketCallable"] + }, + "DeleteExclusion": { + "methods": ["deleteExclusion", "deleteExclusion", "deleteExclusion", "deleteExclusionCallable"] + }, + "DeleteLink": { + "methods": ["deleteLinkAsync", "deleteLinkAsync", "deleteLinkAsync", "deleteLinkOperationCallable", "deleteLinkCallable"] + }, + "DeleteSink": { + "methods": ["deleteSink", "deleteSink", "deleteSink", "deleteSinkCallable"] + }, + "DeleteView": { + "methods": ["deleteView", "deleteViewCallable"] + }, + "GetBucket": { + "methods": ["getBucket", "getBucketCallable"] + }, + "GetCmekSettings": { + "methods": ["getCmekSettings", "getCmekSettingsCallable"] + }, + "GetExclusion": { + "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] + }, + "GetLink": { + "methods": ["getLink", "getLink", "getLink", "getLinkCallable"] + }, + "GetSettings": { + "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"] + }, + "GetSink": { + "methods": ["getSink", "getSink", "getSink", "getSinkCallable"] + }, + "GetView": { + "methods": ["getView", "getViewCallable"] + }, + "ListBuckets": { + "methods": ["listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"] + }, + "ListExclusions": { + "methods": ["listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusionsPagedCallable", "listExclusionsCallable"] + }, + "ListLinks": { + "methods": ["listLinks", "listLinks", "listLinks", "listLinksPagedCallable", "listLinksCallable"] + }, + "ListSinks": { + "methods": ["listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinksPagedCallable", "listSinksCallable"] + }, + "ListViews": { + "methods": ["listViews", "listViews", "listViewsPagedCallable", "listViewsCallable"] + }, + "UndeleteBucket": { + "methods": ["undeleteBucket", "undeleteBucketCallable"] + }, + "UpdateBucket": { + "methods": ["updateBucket", "updateBucketCallable"] + }, + "UpdateBucketAsync": { + "methods": ["updateBucketAsyncAsync", "updateBucketAsyncOperationCallable", "updateBucketAsyncCallable"] + }, + "UpdateCmekSettings": { + "methods": ["updateCmekSettings", "updateCmekSettingsCallable"] + }, + "UpdateExclusion": { + "methods": ["updateExclusion", "updateExclusion", "updateExclusion", "updateExclusionCallable"] + }, + "UpdateSettings": { + "methods": ["updateSettings", "updateSettings", "updateSettingsCallable"] + }, + "UpdateSink": { + "methods": ["updateSink", "updateSink", "updateSink", "updateSink", "updateSink", "updateSinkCallable"] + }, + "UpdateView": { + "methods": ["updateView", "updateViewCallable"] + } + } + } + } + }, + "MetricsServiceV2": { + "clients": { + "grpc": { + "libraryClient": "MetricsClient", + "rpcs": { + "CreateLogMetric": { + "methods": ["createLogMetric", "createLogMetric", "createLogMetric", "createLogMetricCallable"] + }, + "DeleteLogMetric": { + "methods": ["deleteLogMetric", "deleteLogMetric", "deleteLogMetric", "deleteLogMetricCallable"] + }, + "GetLogMetric": { + "methods": ["getLogMetric", "getLogMetric", "getLogMetric", "getLogMetricCallable"] + }, + "ListLogMetrics": { + "methods": ["listLogMetrics", "listLogMetrics", "listLogMetrics", "listLogMetricsPagedCallable", "listLogMetricsCallable"] + }, + "UpdateLogMetric": { + "methods": ["updateLogMetric", "updateLogMetric", "updateLogMetric", "updateLogMetricCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java new file mode 100644 index 000000000..f473fa53e --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Logging API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= LoggingClient ======================= + * + *

Service Description: Service for ingesting and querying logs. + * + *

Sample for LoggingClient: + * + *

{@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 (LoggingClient loggingClient = LoggingClient.create()) {
+ *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
+ *   loggingClient.deleteLog(logName);
+ * }
+ * }
+ * + *

======================= ConfigClient ======================= + * + *

Service Description: Service for configuring sinks used to route log entries. + * + *

Sample for ConfigClient: + * + *

{@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 (ConfigClient configClient = ConfigClient.create()) {
+ *   GetBucketRequest request =
+ *       GetBucketRequest.newBuilder()
+ *           .setName(
+ *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
+ *                   .toString())
+ *           .build();
+ *   LogBucket response = configClient.getBucket(request);
+ * }
+ * }
+ * + *

======================= MetricsClient ======================= + * + *

Service Description: Service for configuring logs-based metrics. + * + *

Sample for MetricsClient: + * + *

{@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 (MetricsClient metricsClient = MetricsClient.create()) {
+ *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
+ *   LogMetric response = metricsClient.getLogMetric(metricName);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.logging.v2; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java new file mode 100644 index 000000000..5a7a372bc --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -0,0 +1,268 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.BucketMetadata; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConfigServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ConfigServiceV2Stub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable listBucketsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBucketsPagedCallable()"); + } + + public UnaryCallable listBucketsCallable() { + throw new UnsupportedOperationException("Not implemented: listBucketsCallable()"); + } + + public UnaryCallable getBucketCallable() { + throw new UnsupportedOperationException("Not implemented: getBucketCallable()"); + } + + public OperationCallable + createBucketAsyncOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createBucketAsyncOperationCallable()"); + } + + public UnaryCallable createBucketAsyncCallable() { + throw new UnsupportedOperationException("Not implemented: createBucketAsyncCallable()"); + } + + public OperationCallable + updateBucketAsyncOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateBucketAsyncOperationCallable()"); + } + + public UnaryCallable updateBucketAsyncCallable() { + throw new UnsupportedOperationException("Not implemented: updateBucketAsyncCallable()"); + } + + public UnaryCallable createBucketCallable() { + throw new UnsupportedOperationException("Not implemented: createBucketCallable()"); + } + + public UnaryCallable updateBucketCallable() { + throw new UnsupportedOperationException("Not implemented: updateBucketCallable()"); + } + + public UnaryCallable deleteBucketCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBucketCallable()"); + } + + public UnaryCallable undeleteBucketCallable() { + throw new UnsupportedOperationException("Not implemented: undeleteBucketCallable()"); + } + + public UnaryCallable listViewsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listViewsPagedCallable()"); + } + + public UnaryCallable listViewsCallable() { + throw new UnsupportedOperationException("Not implemented: listViewsCallable()"); + } + + public UnaryCallable getViewCallable() { + throw new UnsupportedOperationException("Not implemented: getViewCallable()"); + } + + public UnaryCallable createViewCallable() { + throw new UnsupportedOperationException("Not implemented: createViewCallable()"); + } + + public UnaryCallable updateViewCallable() { + throw new UnsupportedOperationException("Not implemented: updateViewCallable()"); + } + + public UnaryCallable deleteViewCallable() { + throw new UnsupportedOperationException("Not implemented: deleteViewCallable()"); + } + + public UnaryCallable listSinksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSinksPagedCallable()"); + } + + public UnaryCallable listSinksCallable() { + throw new UnsupportedOperationException("Not implemented: listSinksCallable()"); + } + + public UnaryCallable getSinkCallable() { + throw new UnsupportedOperationException("Not implemented: getSinkCallable()"); + } + + public UnaryCallable createSinkCallable() { + throw new UnsupportedOperationException("Not implemented: createSinkCallable()"); + } + + public UnaryCallable updateSinkCallable() { + throw new UnsupportedOperationException("Not implemented: updateSinkCallable()"); + } + + public UnaryCallable deleteSinkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSinkCallable()"); + } + + public OperationCallable createLinkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createLinkOperationCallable()"); + } + + public UnaryCallable createLinkCallable() { + throw new UnsupportedOperationException("Not implemented: createLinkCallable()"); + } + + public OperationCallable deleteLinkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLinkOperationCallable()"); + } + + public UnaryCallable deleteLinkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLinkCallable()"); + } + + public UnaryCallable listLinksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLinksPagedCallable()"); + } + + public UnaryCallable listLinksCallable() { + throw new UnsupportedOperationException("Not implemented: listLinksCallable()"); + } + + public UnaryCallable getLinkCallable() { + throw new UnsupportedOperationException("Not implemented: getLinkCallable()"); + } + + public UnaryCallable + listExclusionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExclusionsPagedCallable()"); + } + + public UnaryCallable listExclusionsCallable() { + throw new UnsupportedOperationException("Not implemented: listExclusionsCallable()"); + } + + public UnaryCallable getExclusionCallable() { + throw new UnsupportedOperationException("Not implemented: getExclusionCallable()"); + } + + public UnaryCallable createExclusionCallable() { + throw new UnsupportedOperationException("Not implemented: createExclusionCallable()"); + } + + public UnaryCallable updateExclusionCallable() { + throw new UnsupportedOperationException("Not implemented: updateExclusionCallable()"); + } + + public UnaryCallable deleteExclusionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExclusionCallable()"); + } + + public UnaryCallable getCmekSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getCmekSettingsCallable()"); + } + + public UnaryCallable updateCmekSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateCmekSettingsCallable()"); + } + + public UnaryCallable getSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getSettingsCallable()"); + } + + public UnaryCallable updateSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateSettingsCallable()"); + } + + public OperationCallable + copyLogEntriesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: copyLogEntriesOperationCallable()"); + } + + public UnaryCallable copyLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: copyLogEntriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java new file mode 100644 index 000000000..9e5618bc0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -0,0 +1,1594 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.logging.v2.BucketMetadata; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConfigServiceV2Stub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getBucket to 30 seconds: + * + *

{@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
+ * ConfigServiceV2StubSettings.Builder configSettingsBuilder =
+ *     ConfigServiceV2StubSettings.newBuilder();
+ * configSettingsBuilder
+ *     .getBucketSettings()
+ *     .setRetrySettings(
+ *         configSettingsBuilder
+ *             .getBucketSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConfigServiceV2StubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .add("https://www.googleapis.com/auth/logging.admin") + .add("https://www.googleapis.com/auth/logging.read") + .build(); + + private final PagedCallSettings + listBucketsSettings; + private final UnaryCallSettings getBucketSettings; + private final UnaryCallSettings createBucketAsyncSettings; + private final OperationCallSettings + createBucketAsyncOperationSettings; + private final UnaryCallSettings updateBucketAsyncSettings; + private final OperationCallSettings + updateBucketAsyncOperationSettings; + private final UnaryCallSettings createBucketSettings; + private final UnaryCallSettings updateBucketSettings; + private final UnaryCallSettings deleteBucketSettings; + private final UnaryCallSettings undeleteBucketSettings; + private final PagedCallSettings + listViewsSettings; + private final UnaryCallSettings getViewSettings; + private final UnaryCallSettings createViewSettings; + private final UnaryCallSettings updateViewSettings; + private final UnaryCallSettings deleteViewSettings; + private final PagedCallSettings + listSinksSettings; + private final UnaryCallSettings getSinkSettings; + private final UnaryCallSettings createSinkSettings; + private final UnaryCallSettings updateSinkSettings; + private final UnaryCallSettings deleteSinkSettings; + private final UnaryCallSettings createLinkSettings; + private final OperationCallSettings + createLinkOperationSettings; + private final UnaryCallSettings deleteLinkSettings; + private final OperationCallSettings + deleteLinkOperationSettings; + private final PagedCallSettings + listLinksSettings; + private final UnaryCallSettings getLinkSettings; + private final PagedCallSettings< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings; + private final UnaryCallSettings getExclusionSettings; + private final UnaryCallSettings createExclusionSettings; + private final UnaryCallSettings updateExclusionSettings; + private final UnaryCallSettings deleteExclusionSettings; + private final UnaryCallSettings getCmekSettingsSettings; + private final UnaryCallSettings + updateCmekSettingsSettings; + private final UnaryCallSettings getSettingsSettings; + private final UnaryCallSettings updateSettingsSettings; + private final UnaryCallSettings copyLogEntriesSettings; + private final OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings; + + private static final PagedListDescriptor + LIST_BUCKETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBucketsRequest injectToken(ListBucketsRequest payload, String token) { + return ListBucketsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBucketsRequest injectPageSize(ListBucketsRequest payload, int pageSize) { + return ListBucketsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBucketsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBucketsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBucketsResponse payload) { + return payload.getBucketsList() == null + ? ImmutableList.of() + : payload.getBucketsList(); + } + }; + + private static final PagedListDescriptor + LIST_VIEWS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListViewsRequest injectToken(ListViewsRequest payload, String token) { + return ListViewsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListViewsRequest injectPageSize(ListViewsRequest payload, int pageSize) { + return ListViewsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListViewsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListViewsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListViewsResponse payload) { + return payload.getViewsList() == null + ? ImmutableList.of() + : payload.getViewsList(); + } + }; + + private static final PagedListDescriptor + LIST_SINKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSinksRequest injectToken(ListSinksRequest payload, String token) { + return ListSinksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSinksRequest injectPageSize(ListSinksRequest payload, int pageSize) { + return ListSinksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSinksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSinksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSinksResponse payload) { + return payload.getSinksList() == null + ? ImmutableList.of() + : payload.getSinksList(); + } + }; + + private static final PagedListDescriptor + LIST_LINKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLinksRequest injectToken(ListLinksRequest payload, String token) { + return ListLinksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLinksRequest injectPageSize(ListLinksRequest payload, int pageSize) { + return ListLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLinksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLinksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLinksResponse payload) { + return payload.getLinksList() == null + ? ImmutableList.of() + : payload.getLinksList(); + } + }; + + private static final PagedListDescriptor< + ListExclusionsRequest, ListExclusionsResponse, LogExclusion> + LIST_EXCLUSIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExclusionsRequest injectToken(ListExclusionsRequest payload, String token) { + return ListExclusionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExclusionsRequest injectPageSize( + ListExclusionsRequest payload, int pageSize) { + return ListExclusionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExclusionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExclusionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExclusionsResponse payload) { + return payload.getExclusionsList() == null + ? ImmutableList.of() + : payload.getExclusionsList(); + } + }; + + private static final PagedListResponseFactory< + ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> + LIST_BUCKETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBucketsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BUCKETS_PAGE_STR_DESC, request, context); + return ListBucketsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListViewsRequest, ListViewsResponse, ListViewsPagedResponse> + LIST_VIEWS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListViewsRequest, ListViewsResponse, ListViewsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListViewsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_VIEWS_PAGE_STR_DESC, request, context); + return ListViewsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSinksRequest, ListSinksResponse, ListSinksPagedResponse> + LIST_SINKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSinksRequest, ListSinksResponse, ListSinksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSinksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SINKS_PAGE_STR_DESC, request, context); + return ListSinksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> + LIST_LINKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLinksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LINKS_PAGE_STR_DESC, request, context); + return ListLinksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + LIST_EXCLUSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExclusionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EXCLUSIONS_PAGE_STR_DESC, request, context); + return ListExclusionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listBuckets. */ + public PagedCallSettings + listBucketsSettings() { + return listBucketsSettings; + } + + /** Returns the object with the settings used for calls to getBucket. */ + public UnaryCallSettings getBucketSettings() { + return getBucketSettings; + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public UnaryCallSettings createBucketAsyncSettings() { + return createBucketAsyncSettings; + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public OperationCallSettings + createBucketAsyncOperationSettings() { + return createBucketAsyncOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings updateBucketAsyncSettings() { + return updateBucketAsyncSettings; + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public OperationCallSettings + updateBucketAsyncOperationSettings() { + return updateBucketAsyncOperationSettings; + } + + /** Returns the object with the settings used for calls to createBucket. */ + public UnaryCallSettings createBucketSettings() { + return createBucketSettings; + } + + /** Returns the object with the settings used for calls to updateBucket. */ + public UnaryCallSettings updateBucketSettings() { + return updateBucketSettings; + } + + /** Returns the object with the settings used for calls to deleteBucket. */ + public UnaryCallSettings deleteBucketSettings() { + return deleteBucketSettings; + } + + /** Returns the object with the settings used for calls to undeleteBucket. */ + public UnaryCallSettings undeleteBucketSettings() { + return undeleteBucketSettings; + } + + /** Returns the object with the settings used for calls to listViews. */ + public PagedCallSettings + listViewsSettings() { + return listViewsSettings; + } + + /** Returns the object with the settings used for calls to getView. */ + public UnaryCallSettings getViewSettings() { + return getViewSettings; + } + + /** Returns the object with the settings used for calls to createView. */ + public UnaryCallSettings createViewSettings() { + return createViewSettings; + } + + /** Returns the object with the settings used for calls to updateView. */ + public UnaryCallSettings updateViewSettings() { + return updateViewSettings; + } + + /** Returns the object with the settings used for calls to deleteView. */ + public UnaryCallSettings deleteViewSettings() { + return deleteViewSettings; + } + + /** Returns the object with the settings used for calls to listSinks. */ + public PagedCallSettings + listSinksSettings() { + return listSinksSettings; + } + + /** Returns the object with the settings used for calls to getSink. */ + public UnaryCallSettings getSinkSettings() { + return getSinkSettings; + } + + /** Returns the object with the settings used for calls to createSink. */ + public UnaryCallSettings createSinkSettings() { + return createSinkSettings; + } + + /** Returns the object with the settings used for calls to updateSink. */ + public UnaryCallSettings updateSinkSettings() { + return updateSinkSettings; + } + + /** Returns the object with the settings used for calls to deleteSink. */ + public UnaryCallSettings deleteSinkSettings() { + return deleteSinkSettings; + } + + /** Returns the object with the settings used for calls to createLink. */ + public UnaryCallSettings createLinkSettings() { + return createLinkSettings; + } + + /** Returns the object with the settings used for calls to createLink. */ + public OperationCallSettings + createLinkOperationSettings() { + return createLinkOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public UnaryCallSettings deleteLinkSettings() { + return deleteLinkSettings; + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public OperationCallSettings + deleteLinkOperationSettings() { + return deleteLinkOperationSettings; + } + + /** Returns the object with the settings used for calls to listLinks. */ + public PagedCallSettings + listLinksSettings() { + return listLinksSettings; + } + + /** Returns the object with the settings used for calls to getLink. */ + public UnaryCallSettings getLinkSettings() { + return getLinkSettings; + } + + /** Returns the object with the settings used for calls to listExclusions. */ + public PagedCallSettings< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings() { + return listExclusionsSettings; + } + + /** Returns the object with the settings used for calls to getExclusion. */ + public UnaryCallSettings getExclusionSettings() { + return getExclusionSettings; + } + + /** Returns the object with the settings used for calls to createExclusion. */ + public UnaryCallSettings createExclusionSettings() { + return createExclusionSettings; + } + + /** Returns the object with the settings used for calls to updateExclusion. */ + public UnaryCallSettings updateExclusionSettings() { + return updateExclusionSettings; + } + + /** Returns the object with the settings used for calls to deleteExclusion. */ + public UnaryCallSettings deleteExclusionSettings() { + return deleteExclusionSettings; + } + + /** Returns the object with the settings used for calls to getCmekSettings. */ + public UnaryCallSettings getCmekSettingsSettings() { + return getCmekSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings updateCmekSettingsSettings() { + return updateCmekSettingsSettings; + } + + /** Returns the object with the settings used for calls to getSettings. */ + public UnaryCallSettings getSettingsSettings() { + return getSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateSettings. */ + public UnaryCallSettings updateSettingsSettings() { + return updateSettingsSettings; + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public UnaryCallSettings copyLogEntriesSettings() { + return copyLogEntriesSettings; + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return copyLogEntriesOperationSettings; + } + + public ConfigServiceV2Stub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConfigServiceV2Stub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "logging"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "logging.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "logging.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConfigServiceV2StubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listBucketsSettings = settingsBuilder.listBucketsSettings().build(); + getBucketSettings = settingsBuilder.getBucketSettings().build(); + createBucketAsyncSettings = settingsBuilder.createBucketAsyncSettings().build(); + createBucketAsyncOperationSettings = + settingsBuilder.createBucketAsyncOperationSettings().build(); + updateBucketAsyncSettings = settingsBuilder.updateBucketAsyncSettings().build(); + updateBucketAsyncOperationSettings = + settingsBuilder.updateBucketAsyncOperationSettings().build(); + createBucketSettings = settingsBuilder.createBucketSettings().build(); + updateBucketSettings = settingsBuilder.updateBucketSettings().build(); + deleteBucketSettings = settingsBuilder.deleteBucketSettings().build(); + undeleteBucketSettings = settingsBuilder.undeleteBucketSettings().build(); + listViewsSettings = settingsBuilder.listViewsSettings().build(); + getViewSettings = settingsBuilder.getViewSettings().build(); + createViewSettings = settingsBuilder.createViewSettings().build(); + updateViewSettings = settingsBuilder.updateViewSettings().build(); + deleteViewSettings = settingsBuilder.deleteViewSettings().build(); + listSinksSettings = settingsBuilder.listSinksSettings().build(); + getSinkSettings = settingsBuilder.getSinkSettings().build(); + createSinkSettings = settingsBuilder.createSinkSettings().build(); + updateSinkSettings = settingsBuilder.updateSinkSettings().build(); + deleteSinkSettings = settingsBuilder.deleteSinkSettings().build(); + createLinkSettings = settingsBuilder.createLinkSettings().build(); + createLinkOperationSettings = settingsBuilder.createLinkOperationSettings().build(); + deleteLinkSettings = settingsBuilder.deleteLinkSettings().build(); + deleteLinkOperationSettings = settingsBuilder.deleteLinkOperationSettings().build(); + listLinksSettings = settingsBuilder.listLinksSettings().build(); + getLinkSettings = settingsBuilder.getLinkSettings().build(); + listExclusionsSettings = settingsBuilder.listExclusionsSettings().build(); + getExclusionSettings = settingsBuilder.getExclusionSettings().build(); + createExclusionSettings = settingsBuilder.createExclusionSettings().build(); + updateExclusionSettings = settingsBuilder.updateExclusionSettings().build(); + deleteExclusionSettings = settingsBuilder.deleteExclusionSettings().build(); + getCmekSettingsSettings = settingsBuilder.getCmekSettingsSettings().build(); + updateCmekSettingsSettings = settingsBuilder.updateCmekSettingsSettings().build(); + getSettingsSettings = settingsBuilder.getSettingsSettings().build(); + updateSettingsSettings = settingsBuilder.updateSettingsSettings().build(); + copyLogEntriesSettings = settingsBuilder.copyLogEntriesSettings().build(); + copyLogEntriesOperationSettings = settingsBuilder.copyLogEntriesOperationSettings().build(); + } + + /** Builder for ConfigServiceV2StubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> + listBucketsSettings; + private final UnaryCallSettings.Builder getBucketSettings; + private final UnaryCallSettings.Builder + createBucketAsyncSettings; + private final OperationCallSettings.Builder + createBucketAsyncOperationSettings; + private final UnaryCallSettings.Builder + updateBucketAsyncSettings; + private final OperationCallSettings.Builder + updateBucketAsyncOperationSettings; + private final UnaryCallSettings.Builder createBucketSettings; + private final UnaryCallSettings.Builder updateBucketSettings; + private final UnaryCallSettings.Builder deleteBucketSettings; + private final UnaryCallSettings.Builder undeleteBucketSettings; + private final PagedCallSettings.Builder< + ListViewsRequest, ListViewsResponse, ListViewsPagedResponse> + listViewsSettings; + private final UnaryCallSettings.Builder getViewSettings; + private final UnaryCallSettings.Builder createViewSettings; + private final UnaryCallSettings.Builder updateViewSettings; + private final UnaryCallSettings.Builder deleteViewSettings; + private final PagedCallSettings.Builder< + ListSinksRequest, ListSinksResponse, ListSinksPagedResponse> + listSinksSettings; + private final UnaryCallSettings.Builder getSinkSettings; + private final UnaryCallSettings.Builder createSinkSettings; + private final UnaryCallSettings.Builder updateSinkSettings; + private final UnaryCallSettings.Builder deleteSinkSettings; + private final UnaryCallSettings.Builder createLinkSettings; + private final OperationCallSettings.Builder + createLinkOperationSettings; + private final UnaryCallSettings.Builder deleteLinkSettings; + private final OperationCallSettings.Builder + deleteLinkOperationSettings; + private final PagedCallSettings.Builder< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> + listLinksSettings; + private final UnaryCallSettings.Builder getLinkSettings; + private final PagedCallSettings.Builder< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings; + private final UnaryCallSettings.Builder getExclusionSettings; + private final UnaryCallSettings.Builder + createExclusionSettings; + private final UnaryCallSettings.Builder + updateExclusionSettings; + private final UnaryCallSettings.Builder deleteExclusionSettings; + private final UnaryCallSettings.Builder + getCmekSettingsSettings; + private final UnaryCallSettings.Builder + updateCmekSettingsSettings; + private final UnaryCallSettings.Builder getSettingsSettings; + private final UnaryCallSettings.Builder updateSettingsSettings; + private final UnaryCallSettings.Builder + copyLogEntriesSettings; + private final OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(120000L)) + .build(); + definitions.put("no_retry_4_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listBucketsSettings = PagedCallSettings.newBuilder(LIST_BUCKETS_PAGE_STR_FACT); + getBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); + updateBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); + createBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listViewsSettings = PagedCallSettings.newBuilder(LIST_VIEWS_PAGE_STR_FACT); + getViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSinksSettings = PagedCallSettings.newBuilder(LIST_SINKS_PAGE_STR_FACT); + getSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLinkOperationSettings = OperationCallSettings.newBuilder(); + deleteLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteLinkOperationSettings = OperationCallSettings.newBuilder(); + listLinksSettings = PagedCallSettings.newBuilder(LIST_LINKS_PAGE_STR_FACT); + getLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExclusionsSettings = PagedCallSettings.newBuilder(LIST_EXCLUSIONS_PAGE_STR_FACT); + getExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBucketsSettings, + getBucketSettings, + createBucketAsyncSettings, + updateBucketAsyncSettings, + createBucketSettings, + updateBucketSettings, + deleteBucketSettings, + undeleteBucketSettings, + listViewsSettings, + getViewSettings, + createViewSettings, + updateViewSettings, + deleteViewSettings, + listSinksSettings, + getSinkSettings, + createSinkSettings, + updateSinkSettings, + deleteSinkSettings, + createLinkSettings, + deleteLinkSettings, + listLinksSettings, + getLinkSettings, + listExclusionsSettings, + getExclusionSettings, + createExclusionSettings, + updateExclusionSettings, + deleteExclusionSettings, + getCmekSettingsSettings, + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); + initDefaults(this); + } + + protected Builder(ConfigServiceV2StubSettings settings) { + super(settings); + + listBucketsSettings = settings.listBucketsSettings.toBuilder(); + getBucketSettings = settings.getBucketSettings.toBuilder(); + createBucketAsyncSettings = settings.createBucketAsyncSettings.toBuilder(); + createBucketAsyncOperationSettings = settings.createBucketAsyncOperationSettings.toBuilder(); + updateBucketAsyncSettings = settings.updateBucketAsyncSettings.toBuilder(); + updateBucketAsyncOperationSettings = settings.updateBucketAsyncOperationSettings.toBuilder(); + createBucketSettings = settings.createBucketSettings.toBuilder(); + updateBucketSettings = settings.updateBucketSettings.toBuilder(); + deleteBucketSettings = settings.deleteBucketSettings.toBuilder(); + undeleteBucketSettings = settings.undeleteBucketSettings.toBuilder(); + listViewsSettings = settings.listViewsSettings.toBuilder(); + getViewSettings = settings.getViewSettings.toBuilder(); + createViewSettings = settings.createViewSettings.toBuilder(); + updateViewSettings = settings.updateViewSettings.toBuilder(); + deleteViewSettings = settings.deleteViewSettings.toBuilder(); + listSinksSettings = settings.listSinksSettings.toBuilder(); + getSinkSettings = settings.getSinkSettings.toBuilder(); + createSinkSettings = settings.createSinkSettings.toBuilder(); + updateSinkSettings = settings.updateSinkSettings.toBuilder(); + deleteSinkSettings = settings.deleteSinkSettings.toBuilder(); + createLinkSettings = settings.createLinkSettings.toBuilder(); + createLinkOperationSettings = settings.createLinkOperationSettings.toBuilder(); + deleteLinkSettings = settings.deleteLinkSettings.toBuilder(); + deleteLinkOperationSettings = settings.deleteLinkOperationSettings.toBuilder(); + listLinksSettings = settings.listLinksSettings.toBuilder(); + getLinkSettings = settings.getLinkSettings.toBuilder(); + listExclusionsSettings = settings.listExclusionsSettings.toBuilder(); + getExclusionSettings = settings.getExclusionSettings.toBuilder(); + createExclusionSettings = settings.createExclusionSettings.toBuilder(); + updateExclusionSettings = settings.updateExclusionSettings.toBuilder(); + deleteExclusionSettings = settings.deleteExclusionSettings.toBuilder(); + getCmekSettingsSettings = settings.getCmekSettingsSettings.toBuilder(); + updateCmekSettingsSettings = settings.updateCmekSettingsSettings.toBuilder(); + getSettingsSettings = settings.getSettingsSettings.toBuilder(); + updateSettingsSettings = settings.updateSettingsSettings.toBuilder(); + copyLogEntriesSettings = settings.copyLogEntriesSettings.toBuilder(); + copyLogEntriesOperationSettings = settings.copyLogEntriesOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBucketsSettings, + getBucketSettings, + createBucketAsyncSettings, + updateBucketAsyncSettings, + createBucketSettings, + updateBucketSettings, + deleteBucketSettings, + undeleteBucketSettings, + listViewsSettings, + getViewSettings, + createViewSettings, + updateViewSettings, + deleteViewSettings, + listSinksSettings, + getSinkSettings, + createSinkSettings, + updateSinkSettings, + deleteSinkSettings, + createLinkSettings, + deleteLinkSettings, + listLinksSettings, + getLinkSettings, + listExclusionsSettings, + getExclusionSettings, + createExclusionSettings, + updateExclusionSettings, + deleteExclusionSettings, + getCmekSettingsSettings, + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listBucketsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBucketSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBucketAsyncSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBucketAsyncSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBucketSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBucketSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBucketSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .undeleteBucketSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listViewsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listSinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getSinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .createSinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateSinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .deleteSinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .createLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listExclusionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getExclusionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .createExclusionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateExclusionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteExclusionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getCmekSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCmekSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .copyLogEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBucketAsyncOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBucketAsyncOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createLinkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Link.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteLinkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .copyLogEntriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CopyLogEntriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CopyLogEntriesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listBuckets. */ + public PagedCallSettings.Builder< + ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> + listBucketsSettings() { + return listBucketsSettings; + } + + /** Returns the builder for the settings used for calls to getBucket. */ + public UnaryCallSettings.Builder getBucketSettings() { + return getBucketSettings; + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public UnaryCallSettings.Builder createBucketAsyncSettings() { + return createBucketAsyncSettings; + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public OperationCallSettings.Builder + createBucketAsyncOperationSettings() { + return createBucketAsyncOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings.Builder updateBucketAsyncSettings() { + return updateBucketAsyncSettings; + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public OperationCallSettings.Builder + updateBucketAsyncOperationSettings() { + return updateBucketAsyncOperationSettings; + } + + /** Returns the builder for the settings used for calls to createBucket. */ + public UnaryCallSettings.Builder createBucketSettings() { + return createBucketSettings; + } + + /** Returns the builder for the settings used for calls to updateBucket. */ + public UnaryCallSettings.Builder updateBucketSettings() { + return updateBucketSettings; + } + + /** Returns the builder for the settings used for calls to deleteBucket. */ + public UnaryCallSettings.Builder deleteBucketSettings() { + return deleteBucketSettings; + } + + /** Returns the builder for the settings used for calls to undeleteBucket. */ + public UnaryCallSettings.Builder undeleteBucketSettings() { + return undeleteBucketSettings; + } + + /** Returns the builder for the settings used for calls to listViews. */ + public PagedCallSettings.Builder + listViewsSettings() { + return listViewsSettings; + } + + /** Returns the builder for the settings used for calls to getView. */ + public UnaryCallSettings.Builder getViewSettings() { + return getViewSettings; + } + + /** Returns the builder for the settings used for calls to createView. */ + public UnaryCallSettings.Builder createViewSettings() { + return createViewSettings; + } + + /** Returns the builder for the settings used for calls to updateView. */ + public UnaryCallSettings.Builder updateViewSettings() { + return updateViewSettings; + } + + /** Returns the builder for the settings used for calls to deleteView. */ + public UnaryCallSettings.Builder deleteViewSettings() { + return deleteViewSettings; + } + + /** Returns the builder for the settings used for calls to listSinks. */ + public PagedCallSettings.Builder + listSinksSettings() { + return listSinksSettings; + } + + /** Returns the builder for the settings used for calls to getSink. */ + public UnaryCallSettings.Builder getSinkSettings() { + return getSinkSettings; + } + + /** Returns the builder for the settings used for calls to createSink. */ + public UnaryCallSettings.Builder createSinkSettings() { + return createSinkSettings; + } + + /** Returns the builder for the settings used for calls to updateSink. */ + public UnaryCallSettings.Builder updateSinkSettings() { + return updateSinkSettings; + } + + /** Returns the builder for the settings used for calls to deleteSink. */ + public UnaryCallSettings.Builder deleteSinkSettings() { + return deleteSinkSettings; + } + + /** Returns the builder for the settings used for calls to createLink. */ + public UnaryCallSettings.Builder createLinkSettings() { + return createLinkSettings; + } + + /** Returns the builder for the settings used for calls to createLink. */ + public OperationCallSettings.Builder + createLinkOperationSettings() { + return createLinkOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public UnaryCallSettings.Builder deleteLinkSettings() { + return deleteLinkSettings; + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public OperationCallSettings.Builder + deleteLinkOperationSettings() { + return deleteLinkOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLinks. */ + public PagedCallSettings.Builder + listLinksSettings() { + return listLinksSettings; + } + + /** Returns the builder for the settings used for calls to getLink. */ + public UnaryCallSettings.Builder getLinkSettings() { + return getLinkSettings; + } + + /** Returns the builder for the settings used for calls to listExclusions. */ + public PagedCallSettings.Builder< + ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> + listExclusionsSettings() { + return listExclusionsSettings; + } + + /** Returns the builder for the settings used for calls to getExclusion. */ + public UnaryCallSettings.Builder getExclusionSettings() { + return getExclusionSettings; + } + + /** Returns the builder for the settings used for calls to createExclusion. */ + public UnaryCallSettings.Builder + createExclusionSettings() { + return createExclusionSettings; + } + + /** Returns the builder for the settings used for calls to updateExclusion. */ + public UnaryCallSettings.Builder + updateExclusionSettings() { + return updateExclusionSettings; + } + + /** Returns the builder for the settings used for calls to deleteExclusion. */ + public UnaryCallSettings.Builder deleteExclusionSettings() { + return deleteExclusionSettings; + } + + /** Returns the builder for the settings used for calls to getCmekSettings. */ + public UnaryCallSettings.Builder + getCmekSettingsSettings() { + return getCmekSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings.Builder + updateCmekSettingsSettings() { + return updateCmekSettingsSettings; + } + + /** Returns the builder for the settings used for calls to getSettings. */ + public UnaryCallSettings.Builder getSettingsSettings() { + return getSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateSettings. */ + public UnaryCallSettings.Builder updateSettingsSettings() { + return updateSettingsSettings; + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public UnaryCallSettings.Builder copyLogEntriesSettings() { + return copyLogEntriesSettings; + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return copyLogEntriesOperationSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public ConfigServiceV2StubSettings build() throws IOException { + return new ConfigServiceV2StubSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java new file mode 100644 index 000000000..0a1a508b3 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ConfigServiceV2 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcConfigServiceV2CallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java new file mode 100644 index 000000000..6f667bc68 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -0,0 +1,1198 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.BucketMetadata; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ConfigServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { + private static final MethodDescriptor + listBucketsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListBuckets") + .setRequestMarshaller(ProtoUtils.marshaller(ListBucketsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBucketsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getBucketMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetBucket") + .setRequestMarshaller(ProtoUtils.marshaller(GetBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createBucketAsyncMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateBucketAsync") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBucketAsyncMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateBucketAsync") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createBucketMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateBucket") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBucketMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateBucket") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteBucketMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteBucket") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + undeleteBucketMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UndeleteBucket") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listViewsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListViews") + .setRequestMarshaller(ProtoUtils.marshaller(ListViewsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListViewsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetView") + .setRequestMarshaller(ProtoUtils.marshaller(GetViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateView") + .setRequestMarshaller(ProtoUtils.marshaller(CreateViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateView") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteView") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListSinks") + .setRequestMarshaller(ProtoUtils.marshaller(ListSinksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetSink") + .setRequestMarshaller(ProtoUtils.marshaller(GetSinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createSinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateSink") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateSinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateSink") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteSinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteSink") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateLink") + .setRequestMarshaller(ProtoUtils.marshaller(CreateLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteLink") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListLinks") + .setRequestMarshaller(ProtoUtils.marshaller(ListLinksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetLink") + .setRequestMarshaller(ProtoUtils.marshaller(GetLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Link.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExclusionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListExclusions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExclusionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExclusionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExclusionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetExclusion") + .setRequestMarshaller(ProtoUtils.marshaller(GetExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExclusionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateExclusion") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExclusionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateExclusion") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExclusionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteExclusion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCmekSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetCmekSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCmekSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateCmekSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetSettings") + .setRequestMarshaller(ProtoUtils.marshaller(GetSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + copyLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CopyLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(CopyLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable listBucketsCallable; + private final UnaryCallable + listBucketsPagedCallable; + private final UnaryCallable getBucketCallable; + private final UnaryCallable createBucketAsyncCallable; + private final OperationCallable + createBucketAsyncOperationCallable; + private final UnaryCallable updateBucketAsyncCallable; + private final OperationCallable + updateBucketAsyncOperationCallable; + private final UnaryCallable createBucketCallable; + private final UnaryCallable updateBucketCallable; + private final UnaryCallable deleteBucketCallable; + private final UnaryCallable undeleteBucketCallable; + private final UnaryCallable listViewsCallable; + private final UnaryCallable listViewsPagedCallable; + private final UnaryCallable getViewCallable; + private final UnaryCallable createViewCallable; + private final UnaryCallable updateViewCallable; + private final UnaryCallable deleteViewCallable; + private final UnaryCallable listSinksCallable; + private final UnaryCallable listSinksPagedCallable; + private final UnaryCallable getSinkCallable; + private final UnaryCallable createSinkCallable; + private final UnaryCallable updateSinkCallable; + private final UnaryCallable deleteSinkCallable; + private final UnaryCallable createLinkCallable; + private final OperationCallable + createLinkOperationCallable; + private final UnaryCallable deleteLinkCallable; + private final OperationCallable + deleteLinkOperationCallable; + private final UnaryCallable listLinksCallable; + private final UnaryCallable listLinksPagedCallable; + private final UnaryCallable getLinkCallable; + private final UnaryCallable listExclusionsCallable; + private final UnaryCallable + listExclusionsPagedCallable; + private final UnaryCallable getExclusionCallable; + private final UnaryCallable createExclusionCallable; + private final UnaryCallable updateExclusionCallable; + private final UnaryCallable deleteExclusionCallable; + private final UnaryCallable getCmekSettingsCallable; + private final UnaryCallable updateCmekSettingsCallable; + private final UnaryCallable getSettingsCallable; + private final UnaryCallable updateSettingsCallable; + private final UnaryCallable copyLogEntriesCallable; + private final OperationCallable< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConfigServiceV2Stub create(ConfigServiceV2StubSettings settings) + throws IOException { + return new GrpcConfigServiceV2Stub(settings, ClientContext.create(settings)); + } + + public static final GrpcConfigServiceV2Stub create(ClientContext clientContext) + throws IOException { + return new GrpcConfigServiceV2Stub( + ConfigServiceV2StubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConfigServiceV2Stub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConfigServiceV2Stub( + ConfigServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcConfigServiceV2Stub, 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. + */ + protected GrpcConfigServiceV2Stub( + ConfigServiceV2StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcConfigServiceV2CallableFactory()); + } + + /** + * Constructs an instance of GrpcConfigServiceV2Stub, 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. + */ + protected GrpcConfigServiceV2Stub( + ConfigServiceV2StubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listBucketsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBucketsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createBucketAsyncTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBucketAsyncMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateBucketAsyncTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBucketAsyncMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings undeleteBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeleteBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listViewsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listViewsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listSinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("sink_name", String.valueOf(request.getSinkName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("sink_name", String.valueOf(request.getSinkName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("sink_name", String.valueOf(request.getSinkName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExclusionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExclusionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCmekSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCmekSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings copyLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(copyLogEntriesMethodDescriptor) + .build(); + + this.listBucketsCallable = + callableFactory.createUnaryCallable( + listBucketsTransportSettings, settings.listBucketsSettings(), clientContext); + this.listBucketsPagedCallable = + callableFactory.createPagedCallable( + listBucketsTransportSettings, settings.listBucketsSettings(), clientContext); + this.getBucketCallable = + callableFactory.createUnaryCallable( + getBucketTransportSettings, settings.getBucketSettings(), clientContext); + this.createBucketAsyncCallable = + callableFactory.createUnaryCallable( + createBucketAsyncTransportSettings, + settings.createBucketAsyncSettings(), + clientContext); + this.createBucketAsyncOperationCallable = + callableFactory.createOperationCallable( + createBucketAsyncTransportSettings, + settings.createBucketAsyncOperationSettings(), + clientContext, + operationsStub); + this.updateBucketAsyncCallable = + callableFactory.createUnaryCallable( + updateBucketAsyncTransportSettings, + settings.updateBucketAsyncSettings(), + clientContext); + this.updateBucketAsyncOperationCallable = + callableFactory.createOperationCallable( + updateBucketAsyncTransportSettings, + settings.updateBucketAsyncOperationSettings(), + clientContext, + operationsStub); + this.createBucketCallable = + callableFactory.createUnaryCallable( + createBucketTransportSettings, settings.createBucketSettings(), clientContext); + this.updateBucketCallable = + callableFactory.createUnaryCallable( + updateBucketTransportSettings, settings.updateBucketSettings(), clientContext); + this.deleteBucketCallable = + callableFactory.createUnaryCallable( + deleteBucketTransportSettings, settings.deleteBucketSettings(), clientContext); + this.undeleteBucketCallable = + callableFactory.createUnaryCallable( + undeleteBucketTransportSettings, settings.undeleteBucketSettings(), clientContext); + this.listViewsCallable = + callableFactory.createUnaryCallable( + listViewsTransportSettings, settings.listViewsSettings(), clientContext); + this.listViewsPagedCallable = + callableFactory.createPagedCallable( + listViewsTransportSettings, settings.listViewsSettings(), clientContext); + this.getViewCallable = + callableFactory.createUnaryCallable( + getViewTransportSettings, settings.getViewSettings(), clientContext); + this.createViewCallable = + callableFactory.createUnaryCallable( + createViewTransportSettings, settings.createViewSettings(), clientContext); + this.updateViewCallable = + callableFactory.createUnaryCallable( + updateViewTransportSettings, settings.updateViewSettings(), clientContext); + this.deleteViewCallable = + callableFactory.createUnaryCallable( + deleteViewTransportSettings, settings.deleteViewSettings(), clientContext); + this.listSinksCallable = + callableFactory.createUnaryCallable( + listSinksTransportSettings, settings.listSinksSettings(), clientContext); + this.listSinksPagedCallable = + callableFactory.createPagedCallable( + listSinksTransportSettings, settings.listSinksSettings(), clientContext); + this.getSinkCallable = + callableFactory.createUnaryCallable( + getSinkTransportSettings, settings.getSinkSettings(), clientContext); + this.createSinkCallable = + callableFactory.createUnaryCallable( + createSinkTransportSettings, settings.createSinkSettings(), clientContext); + this.updateSinkCallable = + callableFactory.createUnaryCallable( + updateSinkTransportSettings, settings.updateSinkSettings(), clientContext); + this.deleteSinkCallable = + callableFactory.createUnaryCallable( + deleteSinkTransportSettings, settings.deleteSinkSettings(), clientContext); + this.createLinkCallable = + callableFactory.createUnaryCallable( + createLinkTransportSettings, settings.createLinkSettings(), clientContext); + this.createLinkOperationCallable = + callableFactory.createOperationCallable( + createLinkTransportSettings, + settings.createLinkOperationSettings(), + clientContext, + operationsStub); + this.deleteLinkCallable = + callableFactory.createUnaryCallable( + deleteLinkTransportSettings, settings.deleteLinkSettings(), clientContext); + this.deleteLinkOperationCallable = + callableFactory.createOperationCallable( + deleteLinkTransportSettings, + settings.deleteLinkOperationSettings(), + clientContext, + operationsStub); + this.listLinksCallable = + callableFactory.createUnaryCallable( + listLinksTransportSettings, settings.listLinksSettings(), clientContext); + this.listLinksPagedCallable = + callableFactory.createPagedCallable( + listLinksTransportSettings, settings.listLinksSettings(), clientContext); + this.getLinkCallable = + callableFactory.createUnaryCallable( + getLinkTransportSettings, settings.getLinkSettings(), clientContext); + this.listExclusionsCallable = + callableFactory.createUnaryCallable( + listExclusionsTransportSettings, settings.listExclusionsSettings(), clientContext); + this.listExclusionsPagedCallable = + callableFactory.createPagedCallable( + listExclusionsTransportSettings, settings.listExclusionsSettings(), clientContext); + this.getExclusionCallable = + callableFactory.createUnaryCallable( + getExclusionTransportSettings, settings.getExclusionSettings(), clientContext); + this.createExclusionCallable = + callableFactory.createUnaryCallable( + createExclusionTransportSettings, settings.createExclusionSettings(), clientContext); + this.updateExclusionCallable = + callableFactory.createUnaryCallable( + updateExclusionTransportSettings, settings.updateExclusionSettings(), clientContext); + this.deleteExclusionCallable = + callableFactory.createUnaryCallable( + deleteExclusionTransportSettings, settings.deleteExclusionSettings(), clientContext); + this.getCmekSettingsCallable = + callableFactory.createUnaryCallable( + getCmekSettingsTransportSettings, settings.getCmekSettingsSettings(), clientContext); + this.updateCmekSettingsCallable = + callableFactory.createUnaryCallable( + updateCmekSettingsTransportSettings, + settings.updateCmekSettingsSettings(), + clientContext); + this.getSettingsCallable = + callableFactory.createUnaryCallable( + getSettingsTransportSettings, settings.getSettingsSettings(), clientContext); + this.updateSettingsCallable = + callableFactory.createUnaryCallable( + updateSettingsTransportSettings, settings.updateSettingsSettings(), clientContext); + this.copyLogEntriesCallable = + callableFactory.createUnaryCallable( + copyLogEntriesTransportSettings, settings.copyLogEntriesSettings(), clientContext); + this.copyLogEntriesOperationCallable = + callableFactory.createOperationCallable( + copyLogEntriesTransportSettings, + settings.copyLogEntriesOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listBucketsCallable() { + return listBucketsCallable; + } + + @Override + public UnaryCallable listBucketsPagedCallable() { + return listBucketsPagedCallable; + } + + @Override + public UnaryCallable getBucketCallable() { + return getBucketCallable; + } + + @Override + public UnaryCallable createBucketAsyncCallable() { + return createBucketAsyncCallable; + } + + @Override + public OperationCallable + createBucketAsyncOperationCallable() { + return createBucketAsyncOperationCallable; + } + + @Override + public UnaryCallable updateBucketAsyncCallable() { + return updateBucketAsyncCallable; + } + + @Override + public OperationCallable + updateBucketAsyncOperationCallable() { + return updateBucketAsyncOperationCallable; + } + + @Override + public UnaryCallable createBucketCallable() { + return createBucketCallable; + } + + @Override + public UnaryCallable updateBucketCallable() { + return updateBucketCallable; + } + + @Override + public UnaryCallable deleteBucketCallable() { + return deleteBucketCallable; + } + + @Override + public UnaryCallable undeleteBucketCallable() { + return undeleteBucketCallable; + } + + @Override + public UnaryCallable listViewsCallable() { + return listViewsCallable; + } + + @Override + public UnaryCallable listViewsPagedCallable() { + return listViewsPagedCallable; + } + + @Override + public UnaryCallable getViewCallable() { + return getViewCallable; + } + + @Override + public UnaryCallable createViewCallable() { + return createViewCallable; + } + + @Override + public UnaryCallable updateViewCallable() { + return updateViewCallable; + } + + @Override + public UnaryCallable deleteViewCallable() { + return deleteViewCallable; + } + + @Override + public UnaryCallable listSinksCallable() { + return listSinksCallable; + } + + @Override + public UnaryCallable listSinksPagedCallable() { + return listSinksPagedCallable; + } + + @Override + public UnaryCallable getSinkCallable() { + return getSinkCallable; + } + + @Override + public UnaryCallable createSinkCallable() { + return createSinkCallable; + } + + @Override + public UnaryCallable updateSinkCallable() { + return updateSinkCallable; + } + + @Override + public UnaryCallable deleteSinkCallable() { + return deleteSinkCallable; + } + + @Override + public UnaryCallable createLinkCallable() { + return createLinkCallable; + } + + @Override + public OperationCallable createLinkOperationCallable() { + return createLinkOperationCallable; + } + + @Override + public UnaryCallable deleteLinkCallable() { + return deleteLinkCallable; + } + + @Override + public OperationCallable deleteLinkOperationCallable() { + return deleteLinkOperationCallable; + } + + @Override + public UnaryCallable listLinksCallable() { + return listLinksCallable; + } + + @Override + public UnaryCallable listLinksPagedCallable() { + return listLinksPagedCallable; + } + + @Override + public UnaryCallable getLinkCallable() { + return getLinkCallable; + } + + @Override + public UnaryCallable listExclusionsCallable() { + return listExclusionsCallable; + } + + @Override + public UnaryCallable + listExclusionsPagedCallable() { + return listExclusionsPagedCallable; + } + + @Override + public UnaryCallable getExclusionCallable() { + return getExclusionCallable; + } + + @Override + public UnaryCallable createExclusionCallable() { + return createExclusionCallable; + } + + @Override + public UnaryCallable updateExclusionCallable() { + return updateExclusionCallable; + } + + @Override + public UnaryCallable deleteExclusionCallable() { + return deleteExclusionCallable; + } + + @Override + public UnaryCallable getCmekSettingsCallable() { + return getCmekSettingsCallable; + } + + @Override + public UnaryCallable updateCmekSettingsCallable() { + return updateCmekSettingsCallable; + } + + @Override + public UnaryCallable getSettingsCallable() { + return getSettingsCallable; + } + + @Override + public UnaryCallable updateSettingsCallable() { + return updateSettingsCallable; + } + + @Override + public UnaryCallable copyLogEntriesCallable() { + return copyLogEntriesCallable; + } + + @Override + public OperationCallable + copyLogEntriesOperationCallable() { + return copyLogEntriesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java new file mode 100644 index 000000000..95d2afb33 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the LoggingServiceV2 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcLoggingServiceV2CallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java new file mode 100644 index 000000000..7ad2ec7c7 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java @@ -0,0 +1,357 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the LoggingServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcLoggingServiceV2Stub extends LoggingServiceV2Stub { + private static final MethodDescriptor deleteLogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.LoggingServiceV2/DeleteLog") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteLogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + writeLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.LoggingServiceV2/WriteLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(WriteLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(WriteLogEntriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.LoggingServiceV2/ListLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLogEntriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.LoggingServiceV2/ListLogs") + .setRequestMarshaller(ProtoUtils.marshaller(ListLogsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListLogsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + tailLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName("google.logging.v2.LoggingServiceV2/TailLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(TailLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TailLogEntriesResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable deleteLogCallable; + private final UnaryCallable + writeLogEntriesCallable; + private final UnaryCallable listLogEntriesCallable; + private final UnaryCallable + listLogEntriesPagedCallable; + private final UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsCallable; + private final UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsPagedCallable; + private final UnaryCallable listLogsCallable; + private final UnaryCallable listLogsPagedCallable; + private final BidiStreamingCallable + tailLogEntriesCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcLoggingServiceV2Stub create(LoggingServiceV2StubSettings settings) + throws IOException { + return new GrpcLoggingServiceV2Stub(settings, ClientContext.create(settings)); + } + + public static final GrpcLoggingServiceV2Stub create(ClientContext clientContext) + throws IOException { + return new GrpcLoggingServiceV2Stub( + LoggingServiceV2StubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcLoggingServiceV2Stub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcLoggingServiceV2Stub( + LoggingServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcLoggingServiceV2Stub, 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. + */ + protected GrpcLoggingServiceV2Stub( + LoggingServiceV2StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcLoggingServiceV2CallableFactory()); + } + + /** + * Constructs an instance of GrpcLoggingServiceV2Stub, 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. + */ + protected GrpcLoggingServiceV2Stub( + LoggingServiceV2StubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings deleteLogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("log_name", String.valueOf(request.getLogName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + writeLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(writeLogEntriesMethodDescriptor) + .build(); + GrpcCallSettings + listLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLogEntriesMethodDescriptor) + .build(); + GrpcCallSettings< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMonitoredResourceDescriptorsMethodDescriptor) + .build(); + GrpcCallSettings listLogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLogsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + tailLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(tailLogEntriesMethodDescriptor) + .build(); + + this.deleteLogCallable = + callableFactory.createUnaryCallable( + deleteLogTransportSettings, settings.deleteLogSettings(), clientContext); + this.writeLogEntriesCallable = + callableFactory.createBatchingCallable( + writeLogEntriesTransportSettings, settings.writeLogEntriesSettings(), clientContext); + this.listLogEntriesCallable = + callableFactory.createUnaryCallable( + listLogEntriesTransportSettings, settings.listLogEntriesSettings(), clientContext); + this.listLogEntriesPagedCallable = + callableFactory.createPagedCallable( + listLogEntriesTransportSettings, settings.listLogEntriesSettings(), clientContext); + this.listMonitoredResourceDescriptorsCallable = + callableFactory.createUnaryCallable( + listMonitoredResourceDescriptorsTransportSettings, + settings.listMonitoredResourceDescriptorsSettings(), + clientContext); + this.listMonitoredResourceDescriptorsPagedCallable = + callableFactory.createPagedCallable( + listMonitoredResourceDescriptorsTransportSettings, + settings.listMonitoredResourceDescriptorsSettings(), + clientContext); + this.listLogsCallable = + callableFactory.createUnaryCallable( + listLogsTransportSettings, settings.listLogsSettings(), clientContext); + this.listLogsPagedCallable = + callableFactory.createPagedCallable( + listLogsTransportSettings, settings.listLogsSettings(), clientContext); + this.tailLogEntriesCallable = + callableFactory.createBidiStreamingCallable( + tailLogEntriesTransportSettings, settings.tailLogEntriesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable deleteLogCallable() { + return deleteLogCallable; + } + + @Override + public UnaryCallable writeLogEntriesCallable() { + return writeLogEntriesCallable; + } + + @Override + public UnaryCallable listLogEntriesCallable() { + return listLogEntriesCallable; + } + + @Override + public UnaryCallable + listLogEntriesPagedCallable() { + return listLogEntriesPagedCallable; + } + + @Override + public UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsCallable() { + return listMonitoredResourceDescriptorsCallable; + } + + @Override + public UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsPagedCallable() { + return listMonitoredResourceDescriptorsPagedCallable; + } + + @Override + public UnaryCallable listLogsCallable() { + return listLogsCallable; + } + + @Override + public UnaryCallable listLogsPagedCallable() { + return listLogsPagedCallable; + } + + @Override + public BidiStreamingCallable + tailLogEntriesCallable() { + return tailLogEntriesCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java new file mode 100644 index 000000000..2759addac --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the MetricsServiceV2 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcMetricsServiceV2CallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java new file mode 100644 index 000000000..bd93e589d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java @@ -0,0 +1,299 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the MetricsServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcMetricsServiceV2Stub extends MetricsServiceV2Stub { + private static final MethodDescriptor + listLogMetricsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.MetricsServiceV2/ListLogMetrics") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLogMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLogMetricsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getLogMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.MetricsServiceV2/GetLogMetric") + .setRequestMarshaller(ProtoUtils.marshaller(GetLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createLogMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.MetricsServiceV2/CreateLogMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateLogMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.MetricsServiceV2/UpdateLogMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteLogMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.MetricsServiceV2/DeleteLogMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable listLogMetricsCallable; + private final UnaryCallable + listLogMetricsPagedCallable; + private final UnaryCallable getLogMetricCallable; + private final UnaryCallable createLogMetricCallable; + private final UnaryCallable updateLogMetricCallable; + private final UnaryCallable deleteLogMetricCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings) + throws IOException { + return new GrpcMetricsServiceV2Stub(settings, ClientContext.create(settings)); + } + + public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext) + throws IOException { + return new GrpcMetricsServiceV2Stub( + MetricsServiceV2StubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMetricsServiceV2Stub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMetricsServiceV2Stub( + MetricsServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMetricsServiceV2Stub, 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. + */ + protected GrpcMetricsServiceV2Stub( + MetricsServiceV2StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcMetricsServiceV2CallableFactory()); + } + + /** + * Constructs an instance of GrpcMetricsServiceV2Stub, 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. + */ + protected GrpcMetricsServiceV2Stub( + MetricsServiceV2StubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listLogMetricsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLogMetricsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("metric_name", String.valueOf(request.getMetricName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("metric_name", String.valueOf(request.getMetricName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("metric_name", String.valueOf(request.getMetricName())); + return builder.build(); + }) + .build(); + + this.listLogMetricsCallable = + callableFactory.createUnaryCallable( + listLogMetricsTransportSettings, settings.listLogMetricsSettings(), clientContext); + this.listLogMetricsPagedCallable = + callableFactory.createPagedCallable( + listLogMetricsTransportSettings, settings.listLogMetricsSettings(), clientContext); + this.getLogMetricCallable = + callableFactory.createUnaryCallable( + getLogMetricTransportSettings, settings.getLogMetricSettings(), clientContext); + this.createLogMetricCallable = + callableFactory.createUnaryCallable( + createLogMetricTransportSettings, settings.createLogMetricSettings(), clientContext); + this.updateLogMetricCallable = + callableFactory.createUnaryCallable( + updateLogMetricTransportSettings, settings.updateLogMetricSettings(), clientContext); + this.deleteLogMetricCallable = + callableFactory.createUnaryCallable( + deleteLogMetricTransportSettings, settings.deleteLogMetricSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listLogMetricsCallable() { + return listLogMetricsCallable; + } + + @Override + public UnaryCallable + listLogMetricsPagedCallable() { + return listLogMetricsPagedCallable; + } + + @Override + public UnaryCallable getLogMetricCallable() { + return getLogMetricCallable; + } + + @Override + public UnaryCallable createLogMetricCallable() { + return createLogMetricCallable; + } + + @Override + public UnaryCallable updateLogMetricCallable() { + return updateLogMetricCallable; + } + + @Override + public UnaryCallable deleteLogMetricCallable() { + return deleteLogMetricCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java new file mode 100644 index 000000000..2df08a840 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java @@ -0,0 +1,95 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the LoggingServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class LoggingServiceV2Stub implements BackgroundResource { + + public UnaryCallable deleteLogCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLogCallable()"); + } + + public UnaryCallable writeLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: writeLogEntriesCallable()"); + } + + public UnaryCallable + listLogEntriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLogEntriesPagedCallable()"); + } + + public UnaryCallable listLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: listLogEntriesCallable()"); + } + + public UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMonitoredResourceDescriptorsPagedCallable()"); + } + + public UnaryCallable< + ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptorsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMonitoredResourceDescriptorsCallable()"); + } + + public UnaryCallable listLogsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLogsPagedCallable()"); + } + + public UnaryCallable listLogsCallable() { + throw new UnsupportedOperationException("Not implemented: listLogsCallable()"); + } + + public BidiStreamingCallable + tailLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: tailLogEntriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java new file mode 100644 index 000000000..7f8e5453d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -0,0 +1,771 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; + +import com.google.api.MonitoredResourceDescriptor; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.batching.PartitionKey; +import com.google.api.gax.batching.RequestBuilder; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.BatchedRequestIssuer; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BatchingDescriptor; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.Collection; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LoggingServiceV2Stub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of deleteLog to 30 seconds: + * + *

{@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
+ * LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
+ *     LoggingServiceV2StubSettings.newBuilder();
+ * loggingSettingsBuilder
+ *     .deleteLogSettings()
+ *     .setRetrySettings(
+ *         loggingSettingsBuilder
+ *             .deleteLogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class LoggingServiceV2StubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .add("https://www.googleapis.com/auth/logging.admin") + .add("https://www.googleapis.com/auth/logging.read") + .add("https://www.googleapis.com/auth/logging.write") + .build(); + + private final UnaryCallSettings deleteLogSettings; + private final BatchingCallSettings + writeLogEntriesSettings; + private final PagedCallSettings< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings; + private final PagedCallSettings< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings; + private final PagedCallSettings + listLogsSettings; + private final StreamingCallSettings + tailLogEntriesSettings; + + private static final PagedListDescriptor + LIST_LOG_ENTRIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLogEntriesRequest injectToken(ListLogEntriesRequest payload, String token) { + return ListLogEntriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLogEntriesRequest injectPageSize( + ListLogEntriesRequest payload, int pageSize) { + return ListLogEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLogEntriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLogEntriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLogEntriesResponse payload) { + return payload.getEntriesList() == null + ? ImmutableList.of() + : payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMonitoredResourceDescriptorsRequest injectToken( + ListMonitoredResourceDescriptorsRequest payload, String token) { + return ListMonitoredResourceDescriptorsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMonitoredResourceDescriptorsRequest injectPageSize( + ListMonitoredResourceDescriptorsRequest payload, int pageSize) { + return ListMonitoredResourceDescriptorsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMonitoredResourceDescriptorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMonitoredResourceDescriptorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMonitoredResourceDescriptorsResponse payload) { + return payload.getResourceDescriptorsList() == null + ? ImmutableList.of() + : payload.getResourceDescriptorsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLogsRequest injectToken(ListLogsRequest payload, String token) { + return ListLogsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLogsRequest injectPageSize(ListLogsRequest payload, int pageSize) { + return ListLogsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLogsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLogsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLogsResponse payload) { + return payload.getLogNamesList() == null + ? ImmutableList.of() + : payload.getLogNamesList(); + } + }; + + private static final PagedListResponseFactory< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + LIST_LOG_ENTRIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLogEntriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOG_ENTRIES_PAGE_STR_DESC, request, context); + return ListLogEntriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse> + callable, + ListMonitoredResourceDescriptorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + pageContext = + PageContext.create( + callable, + LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_DESC, + request, + context); + return ListMonitoredResourceDescriptorsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLogsRequest, ListLogsResponse, ListLogsPagedResponse> + LIST_LOGS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLogsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOGS_PAGE_STR_DESC, request, context); + return ListLogsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final BatchingDescriptor + WRITE_LOG_ENTRIES_BATCHING_DESC = + new BatchingDescriptor() { + @Override + public PartitionKey getBatchPartitionKey(WriteLogEntriesRequest request) { + return new PartitionKey( + request.getLogName(), request.getResource(), request.getLabels()); + } + + @Override + public RequestBuilder getRequestBuilder() { + return new RequestBuilder() { + private WriteLogEntriesRequest.Builder builder; + + @Override + public void appendRequest(WriteLogEntriesRequest request) { + if (builder == null) { + builder = request.toBuilder(); + } else { + builder.addAllEntries(request.getEntriesList()); + } + } + + @Override + public WriteLogEntriesRequest build() { + return builder.build(); + } + }; + } + + @Override + public void splitResponse( + WriteLogEntriesResponse batchResponse, + Collection> batch) { + for (BatchedRequestIssuer responder : batch) { + WriteLogEntriesResponse response = WriteLogEntriesResponse.newBuilder().build(); + responder.setResponse(response); + } + } + + @Override + public void splitException( + Throwable throwable, + Collection> batch) { + for (BatchedRequestIssuer responder : batch) { + responder.setException(throwable); + } + } + + @Override + public long countElements(WriteLogEntriesRequest request) { + return request.getEntriesCount(); + } + + @Override + public long countBytes(WriteLogEntriesRequest request) { + return request.getSerializedSize(); + } + }; + + /** Returns the object with the settings used for calls to deleteLog. */ + public UnaryCallSettings deleteLogSettings() { + return deleteLogSettings; + } + + /** Returns the object with the settings used for calls to writeLogEntries. */ + public BatchingCallSettings + writeLogEntriesSettings() { + return writeLogEntriesSettings; + } + + /** Returns the object with the settings used for calls to listLogEntries. */ + public PagedCallSettings< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings() { + return listLogEntriesSettings; + } + + /** Returns the object with the settings used for calls to listMonitoredResourceDescriptors. */ + public PagedCallSettings< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings() { + return listMonitoredResourceDescriptorsSettings; + } + + /** Returns the object with the settings used for calls to listLogs. */ + public PagedCallSettings + listLogsSettings() { + return listLogsSettings; + } + + /** Returns the object with the settings used for calls to tailLogEntries. */ + public StreamingCallSettings + tailLogEntriesSettings() { + return tailLogEntriesSettings; + } + + public LoggingServiceV2Stub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcLoggingServiceV2Stub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "logging"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "logging.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "logging.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LoggingServiceV2StubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LoggingServiceV2StubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteLogSettings = settingsBuilder.deleteLogSettings().build(); + writeLogEntriesSettings = settingsBuilder.writeLogEntriesSettings().build(); + listLogEntriesSettings = settingsBuilder.listLogEntriesSettings().build(); + listMonitoredResourceDescriptorsSettings = + settingsBuilder.listMonitoredResourceDescriptorsSettings().build(); + listLogsSettings = settingsBuilder.listLogsSettings().build(); + tailLogEntriesSettings = settingsBuilder.tailLogEntriesSettings().build(); + } + + /** Builder for LoggingServiceV2StubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder deleteLogSettings; + private final BatchingCallSettings.Builder + writeLogEntriesSettings; + private final PagedCallSettings.Builder< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings; + private final PagedCallSettings.Builder< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings; + private final PagedCallSettings.Builder< + ListLogsRequest, ListLogsResponse, ListLogsPagedResponse> + listLogsSettings; + private final StreamingCallSettings.Builder + tailLogEntriesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(3600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(3600000L)) + .setTotalTimeout(Duration.ofMillis(3600000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteLogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + writeLogEntriesSettings = + BatchingCallSettings.newBuilder(WRITE_LOG_ENTRIES_BATCHING_DESC) + .setBatchingSettings(BatchingSettings.newBuilder().build()); + listLogEntriesSettings = PagedCallSettings.newBuilder(LIST_LOG_ENTRIES_PAGE_STR_FACT); + listMonitoredResourceDescriptorsSettings = + PagedCallSettings.newBuilder(LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_FACT); + listLogsSettings = PagedCallSettings.newBuilder(LIST_LOGS_PAGE_STR_FACT); + tailLogEntriesSettings = StreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteLogSettings, + writeLogEntriesSettings, + listLogEntriesSettings, + listMonitoredResourceDescriptorsSettings, + listLogsSettings); + initDefaults(this); + } + + protected Builder(LoggingServiceV2StubSettings settings) { + super(settings); + + deleteLogSettings = settings.deleteLogSettings.toBuilder(); + writeLogEntriesSettings = settings.writeLogEntriesSettings.toBuilder(); + listLogEntriesSettings = settings.listLogEntriesSettings.toBuilder(); + listMonitoredResourceDescriptorsSettings = + settings.listMonitoredResourceDescriptorsSettings.toBuilder(); + listLogsSettings = settings.listLogsSettings.toBuilder(); + tailLogEntriesSettings = settings.tailLogEntriesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteLogSettings, + writeLogEntriesSettings, + listLogEntriesSettings, + listMonitoredResourceDescriptorsSettings, + listLogsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteLogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .writeLogEntriesSettings() + .setBatchingSettings( + BatchingSettings.newBuilder() + .setElementCountThreshold(1000L) + .setRequestByteThreshold(1048576L) + .setDelayThreshold(Duration.ofMillis(50L)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(100000L) + .setMaxOutstandingRequestBytes(10485760L) + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .build()) + .build()); + + builder + .writeLogEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listLogEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listMonitoredResourceDescriptorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listLogsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to deleteLog. */ + public UnaryCallSettings.Builder deleteLogSettings() { + return deleteLogSettings; + } + + /** Returns the builder for the settings used for calls to writeLogEntries. */ + public BatchingCallSettings.Builder + writeLogEntriesSettings() { + return writeLogEntriesSettings; + } + + /** Returns the builder for the settings used for calls to listLogEntries. */ + public PagedCallSettings.Builder< + ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> + listLogEntriesSettings() { + return listLogEntriesSettings; + } + + /** Returns the builder for the settings used for calls to listMonitoredResourceDescriptors. */ + public PagedCallSettings.Builder< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + ListMonitoredResourceDescriptorsPagedResponse> + listMonitoredResourceDescriptorsSettings() { + return listMonitoredResourceDescriptorsSettings; + } + + /** Returns the builder for the settings used for calls to listLogs. */ + public PagedCallSettings.Builder + listLogsSettings() { + return listLogsSettings; + } + + /** Returns the builder for the settings used for calls to tailLogEntries. */ + public StreamingCallSettings.Builder + tailLogEntriesSettings() { + return tailLogEntriesSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public LoggingServiceV2StubSettings build() throws IOException { + return new LoggingServiceV2StubSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java new file mode 100644 index 000000000..8cec6cf38 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MetricsServiceV2 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MetricsServiceV2Stub implements BackgroundResource { + + public UnaryCallable + listLogMetricsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLogMetricsPagedCallable()"); + } + + public UnaryCallable listLogMetricsCallable() { + throw new UnsupportedOperationException("Not implemented: listLogMetricsCallable()"); + } + + public UnaryCallable getLogMetricCallable() { + throw new UnsupportedOperationException("Not implemented: getLogMetricCallable()"); + } + + public UnaryCallable createLogMetricCallable() { + throw new UnsupportedOperationException("Not implemented: createLogMetricCallable()"); + } + + public UnaryCallable updateLogMetricCallable() { + throw new UnsupportedOperationException("Not implemented: updateLogMetricCallable()"); + } + + public UnaryCallable deleteLogMetricCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLogMetricCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java new file mode 100644 index 000000000..8b1568809 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -0,0 +1,488 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2.stub; + +import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetricsServiceV2Stub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (logging.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getLogMetric to 30 seconds: + * + *

{@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
+ * MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
+ *     MetricsServiceV2StubSettings.newBuilder();
+ * metricsSettingsBuilder
+ *     .getLogMetricSettings()
+ *     .setRetrySettings(
+ *         metricsSettingsBuilder
+ *             .getLogMetricSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class MetricsServiceV2StubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .add("https://www.googleapis.com/auth/logging.admin") + .add("https://www.googleapis.com/auth/logging.read") + .add("https://www.googleapis.com/auth/logging.write") + .build(); + + private final PagedCallSettings< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings; + private final UnaryCallSettings getLogMetricSettings; + private final UnaryCallSettings createLogMetricSettings; + private final UnaryCallSettings updateLogMetricSettings; + private final UnaryCallSettings deleteLogMetricSettings; + + private static final PagedListDescriptor + LIST_LOG_METRICS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLogMetricsRequest injectToken(ListLogMetricsRequest payload, String token) { + return ListLogMetricsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLogMetricsRequest injectPageSize( + ListLogMetricsRequest payload, int pageSize) { + return ListLogMetricsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLogMetricsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLogMetricsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLogMetricsResponse payload) { + return payload.getMetricsList() == null + ? ImmutableList.of() + : payload.getMetricsList(); + } + }; + + private static final PagedListResponseFactory< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + LIST_LOG_METRICS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLogMetricsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOG_METRICS_PAGE_STR_DESC, request, context); + return ListLogMetricsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listLogMetrics. */ + public PagedCallSettings< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings() { + return listLogMetricsSettings; + } + + /** Returns the object with the settings used for calls to getLogMetric. */ + public UnaryCallSettings getLogMetricSettings() { + return getLogMetricSettings; + } + + /** Returns the object with the settings used for calls to createLogMetric. */ + public UnaryCallSettings createLogMetricSettings() { + return createLogMetricSettings; + } + + /** Returns the object with the settings used for calls to updateLogMetric. */ + public UnaryCallSettings updateLogMetricSettings() { + return updateLogMetricSettings; + } + + /** Returns the object with the settings used for calls to deleteLogMetric. */ + public UnaryCallSettings deleteLogMetricSettings() { + return deleteLogMetricSettings; + } + + public MetricsServiceV2Stub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMetricsServiceV2Stub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "logging"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "logging.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "logging.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MetricsServiceV2StubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetricsServiceV2StubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listLogMetricsSettings = settingsBuilder.listLogMetricsSettings().build(); + getLogMetricSettings = settingsBuilder.getLogMetricSettings().build(); + createLogMetricSettings = settingsBuilder.createLogMetricSettings().build(); + updateLogMetricSettings = settingsBuilder.updateLogMetricSettings().build(); + deleteLogMetricSettings = settingsBuilder.deleteLogMetricSettings().build(); + } + + /** Builder for MetricsServiceV2StubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings; + private final UnaryCallSettings.Builder getLogMetricSettings; + private final UnaryCallSettings.Builder + createLogMetricSettings; + private final UnaryCallSettings.Builder + updateLogMetricSettings; + private final UnaryCallSettings.Builder deleteLogMetricSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_5_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_5_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listLogMetricsSettings = PagedCallSettings.newBuilder(LIST_LOG_METRICS_PAGE_STR_FACT); + getLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listLogMetricsSettings, + getLogMetricSettings, + createLogMetricSettings, + updateLogMetricSettings, + deleteLogMetricSettings); + initDefaults(this); + } + + protected Builder(MetricsServiceV2StubSettings settings) { + super(settings); + + listLogMetricsSettings = settings.listLogMetricsSettings.toBuilder(); + getLogMetricSettings = settings.getLogMetricSettings.toBuilder(); + createLogMetricSettings = settings.createLogMetricSettings.toBuilder(); + updateLogMetricSettings = settings.updateLogMetricSettings.toBuilder(); + deleteLogMetricSettings = settings.deleteLogMetricSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listLogMetricsSettings, + getLogMetricSettings, + createLogMetricSettings, + updateLogMetricSettings, + deleteLogMetricSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listLogMetricsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + + builder + .getLogMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + + builder + .createLogMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateLogMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + + builder + .deleteLogMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listLogMetrics. */ + public PagedCallSettings.Builder< + ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> + listLogMetricsSettings() { + return listLogMetricsSettings; + } + + /** Returns the builder for the settings used for calls to getLogMetric. */ + public UnaryCallSettings.Builder getLogMetricSettings() { + return getLogMetricSettings; + } + + /** Returns the builder for the settings used for calls to createLogMetric. */ + public UnaryCallSettings.Builder createLogMetricSettings() { + return createLogMetricSettings; + } + + /** Returns the builder for the settings used for calls to updateLogMetric. */ + public UnaryCallSettings.Builder updateLogMetricSettings() { + return updateLogMetricSettings; + } + + /** Returns the builder for the settings used for calls to deleteLogMetric. */ + public UnaryCallSettings.Builder deleteLogMetricSettings() { + return deleteLogMetricSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public MetricsServiceV2StubSettings build() throws IOException { + return new MetricsServiceV2StubSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json b/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json new file mode 100644 index 000000000..061630fe2 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json @@ -0,0 +1,3116 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Explicit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Explicit$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Exponential", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Exponential$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Linear", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$BucketOptions$Linear$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$Exemplar", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$Exemplar$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$Range", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Distribution$Range$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LabelDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LabelDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LabelDescriptor$ValueType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Metric", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Metric$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor$MetricKind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MetricDescriptor$ValueType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MonitoredResourceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.type.HttpRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.type.HttpRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.type.LogSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BigQueryDataset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BigQueryDataset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BigQueryOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BigQueryOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BucketMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.BucketMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CmekSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CmekSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CopyLogEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateExclusionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateExclusionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateLogMetricRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateLogMetricRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateSinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateSinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.CreateViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteExclusionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteExclusionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLogMetricRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLogMetricRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteLogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteSinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteSinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.DeleteViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetCmekSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetCmekSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetExclusionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetExclusionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetLogMetricRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetLogMetricRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetSinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetSinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.GetViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.IndexConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.IndexConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.IndexType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.Link", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.Link$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LinkMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LinkMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListBucketsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListBucketsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListBucketsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListBucketsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListExclusionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListExclusionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListExclusionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListExclusionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLinksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLinksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLinksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLinksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogMetricsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogMetricsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogMetricsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogMetricsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListLogsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListSinksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListSinksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListSinksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListSinksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListViewsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListViewsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListViewsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.ListViewsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LocationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LocationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogBucket", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogBucket$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntryOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntryOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntrySourceLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogEntrySourceLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogExclusion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogExclusion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogMetric", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogMetric$ApiVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogMetric$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogSink", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogSink$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogSink$VersionFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogSplit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogSplit$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.LogView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.OperationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.Settings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.Settings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo$Reason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UndeleteBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UndeleteBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateCmekSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateCmekSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateExclusionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateExclusionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateLogMetricRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateLogMetricRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateSinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateSinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.UpdateViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesPartialErrors", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesPartialErrors$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.logging.v2.WriteLogEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java new file mode 100644 index 000000000..55ab13c6b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -0,0 +1,3269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.logging.v2.BigQueryDataset; +import com.google.logging.v2.BillingAccountLocationName; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CmekSettingsName; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.FolderLocationName; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.IndexConfig; +import com.google.logging.v2.LifecycleState; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkName; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.logging.v2.LogView; +import com.google.logging.v2.LogViewName; +import com.google.logging.v2.OrganizationLocationName; +import com.google.logging.v2.OrganizationName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.Settings; +import com.google.logging.v2.SettingsName; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConfigClientTest { + private static MockConfigServiceV2 mockConfigServiceV2; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConfigClient client; + + @BeforeClass + public static void startStaticServer() { + mockConfigServiceV2 = new MockConfigServiceV2(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockConfigServiceV2)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConfigSettings settings = + ConfigSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConfigClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listBucketsTest() throws Exception { + LogBucket responsesElement = LogBucket.newBuilder().build(); + ListBucketsResponse expectedResponse = + ListBucketsResponse.newBuilder() + .setNextPageToken("") + .addAllBuckets(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + BillingAccountLocationName parent = + BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]"); + + ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + BillingAccountLocationName parent = + BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]"); + client.listBuckets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketsTest2() throws Exception { + LogBucket responsesElement = LogBucket.newBuilder().build(); + ListBucketsResponse expectedResponse = + ListBucketsResponse.newBuilder() + .setNextPageToken("") + .addAllBuckets(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listBuckets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketsTest3() throws Exception { + LogBucket responsesElement = LogBucket.newBuilder().build(); + ListBucketsResponse expectedResponse = + ListBucketsResponse.newBuilder() + .setNextPageToken("") + .addAllBuckets(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBuckets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketsTest4() throws Exception { + LogBucket responsesElement = LogBucket.newBuilder().build(); + ListBucketsResponse expectedResponse = + ListBucketsResponse.newBuilder() + .setNextPageToken("") + .addAllBuckets(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketsExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listBuckets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketsTest5() throws Exception { + LogBucket responsesElement = LogBucket.newBuilder().build(); + ListBucketsResponse expectedResponse = + ListBucketsResponse.newBuilder() + .setNextPageToken("") + .addAllBuckets(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketsExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBuckets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBucketTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + + LogBucket actualResponse = client.getBucket(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBucketRequest actualRequest = ((GetBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBucketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + client.getBucket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBucketAsyncTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBucketAsyncTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.createBucketAsyncAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBucketRequest actualRequest = ((CreateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getBucketId(), actualRequest.getBucketId()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBucketAsyncExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + client.createBucketAsyncAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBucketAsyncTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBucketAsyncTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.updateBucketAsyncAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBucketRequest actualRequest = ((UpdateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBucketAsyncExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateBucketAsyncAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBucketTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.createBucket(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBucketRequest actualRequest = ((CreateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getBucketId(), actualRequest.getBucketId()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBucketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + client.createBucket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBucketTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.updateBucket(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBucketRequest actualRequest = ((UpdateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBucketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateBucket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBucketTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + + client.deleteBucket(request); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBucketRequest actualRequest = ((DeleteBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBucketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + client.deleteBucket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteBucketTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + UndeleteBucketRequest request = + UndeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + + client.undeleteBucket(request); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteBucketRequest actualRequest = ((UndeleteBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteBucketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UndeleteBucketRequest request = + UndeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + client.undeleteBucket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listViewsTest() throws Exception { + LogView responsesElement = LogView.newBuilder().build(); + ListViewsResponse expectedResponse = + ListViewsResponse.newBuilder() + .setNextPageToken("") + .addAllViews(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListViewsPagedResponse pagedListResponse = client.listViews(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getViewsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListViewsRequest actualRequest = ((ListViewsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listViewsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listViews(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getViewTest() throws Exception { + LogView expectedResponse = + LogView.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + GetViewRequest request = + GetViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + + LogView actualResponse = client.getView(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetViewRequest actualRequest = ((GetViewRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + GetViewRequest request = + GetViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + client.getView(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createViewTest() throws Exception { + LogView expectedResponse = + LogView.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + CreateViewRequest request = + CreateViewRequest.newBuilder() + .setParent("parent-995424086") + .setViewId("viewId-816632160") + .setView(LogView.newBuilder().build()) + .build(); + + LogView actualResponse = client.createView(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateViewRequest actualRequest = ((CreateViewRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getViewId(), actualRequest.getViewId()); + Assert.assertEquals(request.getView(), actualRequest.getView()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CreateViewRequest request = + CreateViewRequest.newBuilder() + .setParent("parent-995424086") + .setViewId("viewId-816632160") + .setView(LogView.newBuilder().build()) + .build(); + client.createView(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateViewTest() throws Exception { + LogView expectedResponse = + LogView.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + UpdateViewRequest request = + UpdateViewRequest.newBuilder() + .setName("name3373707") + .setView(LogView.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + LogView actualResponse = client.updateView(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateViewRequest actualRequest = ((UpdateViewRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getView(), actualRequest.getView()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UpdateViewRequest request = + UpdateViewRequest.newBuilder() + .setName("name3373707") + .setView(LogView.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateView(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteViewTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + DeleteViewRequest request = + DeleteViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + + client.deleteView(request); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteViewRequest actualRequest = ((DeleteViewRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + DeleteViewRequest request = + DeleteViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + client.deleteView(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSinksTest() throws Exception { + LogSink responsesElement = LogSink.newBuilder().build(); + ListSinksResponse expectedResponse = + ListSinksResponse.newBuilder() + .setNextPageToken("") + .addAllSinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + + ListSinksPagedResponse pagedListResponse = client.listSinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.listSinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSinksTest2() throws Exception { + LogSink responsesElement = LogSink.newBuilder().build(); + ListSinksResponse expectedResponse = + ListSinksResponse.newBuilder() + .setNextPageToken("") + .addAllSinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListSinksPagedResponse pagedListResponse = client.listSinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSinksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listSinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSinksTest3() throws Exception { + LogSink responsesElement = LogSink.newBuilder().build(); + ListSinksResponse expectedResponse = + ListSinksResponse.newBuilder() + .setNextPageToken("") + .addAllSinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListSinksPagedResponse pagedListResponse = client.listSinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSinksExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listSinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSinksTest4() throws Exception { + LogSink responsesElement = LogSink.newBuilder().build(); + ListSinksResponse expectedResponse = + ListSinksResponse.newBuilder() + .setNextPageToken("") + .addAllSinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListSinksPagedResponse pagedListResponse = client.listSinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSinksExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listSinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSinksTest5() throws Exception { + LogSink responsesElement = LogSink.newBuilder().build(); + ListSinksResponse expectedResponse = + ListSinksResponse.newBuilder() + .setNextPageToken("") + .addAllSinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSinksPagedResponse pagedListResponse = client.listSinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSinksExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSinkTest() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + + LogSink actualResponse = client.getSink(sinkName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSinkRequest actualRequest = ((GetSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + client.getSink(sinkName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSinkTest2() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String sinkName = "sinkName508775358"; + + LogSink actualResponse = client.getSink(sinkName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSinkRequest actualRequest = ((GetSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName, actualRequest.getSinkName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String sinkName = "sinkName508775358"; + client.getSink(sinkName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSinkTest() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.createSink(parent, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogSink sink = LogSink.newBuilder().build(); + client.createSink(parent, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSinkTest2() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.createSink(parent, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + LogSink sink = LogSink.newBuilder().build(); + client.createSink(parent, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSinkTest3() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.createSink(parent, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSinkExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogSink sink = LogSink.newBuilder().build(); + client.createSink(parent, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSinkTest4() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.createSink(parent, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSinkExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogSink sink = LogSink.newBuilder().build(); + client.createSink(parent, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSinkTest5() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.createSink(parent, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSinkExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + LogSink sink = LogSink.newBuilder().build(); + client.createSink(parent, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSinkTest() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.updateSink(sinkName, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + client.updateSink(sinkName, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSinkTest2() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String sinkName = "sinkName508775358"; + LogSink sink = LogSink.newBuilder().build(); + + LogSink actualResponse = client.updateSink(sinkName, sink); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName, actualRequest.getSinkName()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String sinkName = "sinkName508775358"; + LogSink sink = LogSink.newBuilder().build(); + client.updateSink(sinkName, sink); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSinkTest3() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LogSink actualResponse = client.updateSink(sinkName, sink, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSinkExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSink(sinkName, sink, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSinkTest4() throws Exception { + LogSink expectedResponse = + LogSink.newBuilder() + .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setDestination("destination-1429847026") + .setFilter("filter-1274492040") + .setDescription("description-1724546052") + .setDisabled(true) + .addAllExclusions(new ArrayList()) + .setWriterIdentity("writerIdentity925193809") + .setIncludeChildren(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String sinkName = "sinkName508775358"; + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LogSink actualResponse = client.updateSink(sinkName, sink, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName, actualRequest.getSinkName()); + Assert.assertEquals(sink, actualRequest.getSink()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSinkExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String sinkName = "sinkName508775358"; + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSink(sinkName, sink, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + + client.deleteSink(sinkName); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSinkRequest actualRequest = ((DeleteSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + client.deleteSink(sinkName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String sinkName = "sinkName508775358"; + + client.deleteSink(sinkName); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSinkRequest actualRequest = ((DeleteSinkRequest) actualRequests.get(0)); + + Assert.assertEquals(sinkName, actualRequest.getSinkName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String sinkName = "sinkName508775358"; + client.deleteSink(sinkName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLinkTest() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + + Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(link, actualRequest.getLink()); + Assert.assertEquals(linkId, actualRequest.getLinkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + client.createLinkAsync(parent, link, linkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createLinkTest2() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + String parent = "parent-995424086"; + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + + Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(link, actualRequest.getLink()); + Assert.assertEquals(linkId, actualRequest.getLinkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + client.createLinkAsync(parent, link, linkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + + client.deleteLinkAsync(name).get(); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + client.deleteLinkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteLinkAsync(name).get(); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.deleteLinkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLinksTest() throws Exception { + Link responsesElement = Link.newBuilder().build(); + ListLinksResponse expectedResponse = + ListLinksResponse.newBuilder() + .setNextPageToken("") + .addAllLinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + + ListLinksPagedResponse pagedListResponse = client.listLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + client.listLinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLinksTest2() throws Exception { + Link responsesElement = Link.newBuilder().build(); + ListLinksResponse expectedResponse = + ListLinksResponse.newBuilder() + .setNextPageToken("") + .addAllLinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLinksPagedResponse pagedListResponse = client.listLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLinksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLinkTest() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + + Link actualResponse = client.getLink(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + client.getLink(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLinkTest2() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + Link actualResponse = client.getLink(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.getLink(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExclusionsTest() throws Exception { + LogExclusion responsesElement = LogExclusion.newBuilder().build(); + ListExclusionsResponse expectedResponse = + ListExclusionsResponse.newBuilder() + .setNextPageToken("") + .addAllExclusions(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + + ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExclusionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.listExclusions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExclusionsTest2() throws Exception { + LogExclusion responsesElement = LogExclusion.newBuilder().build(); + ListExclusionsResponse expectedResponse = + ListExclusionsResponse.newBuilder() + .setNextPageToken("") + .addAllExclusions(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExclusionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listExclusions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExclusionsTest3() throws Exception { + LogExclusion responsesElement = LogExclusion.newBuilder().build(); + ListExclusionsResponse expectedResponse = + ListExclusionsResponse.newBuilder() + .setNextPageToken("") + .addAllExclusions(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExclusionsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listExclusions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExclusionsTest4() throws Exception { + LogExclusion responsesElement = LogExclusion.newBuilder().build(); + ListExclusionsResponse expectedResponse = + ListExclusionsResponse.newBuilder() + .setNextPageToken("") + .addAllExclusions(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExclusionsExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listExclusions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExclusionsTest5() throws Exception { + LogExclusion responsesElement = LogExclusion.newBuilder().build(); + ListExclusionsResponse expectedResponse = + ListExclusionsResponse.newBuilder() + .setNextPageToken("") + .addAllExclusions(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExclusionsExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExclusions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExclusionTest() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + + LogExclusion actualResponse = client.getExclusion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExclusionRequest actualRequest = ((GetExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExclusionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + client.getExclusion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExclusionTest2() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + LogExclusion actualResponse = client.getExclusion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExclusionRequest actualRequest = ((GetExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExclusionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.getExclusion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExclusionTest() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + + LogExclusion actualResponse = client.createExclusion(parent, exclusion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExclusionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + client.createExclusion(parent, exclusion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExclusionTest2() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + + LogExclusion actualResponse = client.createExclusion(parent, exclusion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExclusionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + client.createExclusion(parent, exclusion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExclusionTest3() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + + LogExclusion actualResponse = client.createExclusion(parent, exclusion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExclusionExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + client.createExclusion(parent, exclusion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExclusionTest4() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + + LogExclusion actualResponse = client.createExclusion(parent, exclusion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExclusionExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + client.createExclusion(parent, exclusion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExclusionTest5() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + LogExclusion exclusion = LogExclusion.newBuilder().build(); + + LogExclusion actualResponse = client.createExclusion(parent, exclusion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExclusionExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + LogExclusion exclusion = LogExclusion.newBuilder().build(); + client.createExclusion(parent, exclusion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExclusionTest() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LogExclusion actualResponse = client.updateExclusion(name, exclusion, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExclusionRequest actualRequest = ((UpdateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExclusionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExclusion(name, exclusion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExclusionTest2() throws Exception { + LogExclusion expectedResponse = + LogExclusion.newBuilder() + .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDisabled(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LogExclusion actualResponse = client.updateExclusion(name, exclusion, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExclusionRequest actualRequest = ((UpdateExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(exclusion, actualRequest.getExclusion()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExclusionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExclusion(name, exclusion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExclusionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + + client.deleteExclusion(name); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExclusionRequest actualRequest = ((DeleteExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExclusionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + client.deleteExclusion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExclusionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteExclusion(name); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExclusionRequest actualRequest = ((DeleteExclusionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExclusionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.deleteExclusion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCmekSettingsTest() throws Exception { + CmekSettings expectedResponse = + CmekSettings.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .setServiceAccountId("serviceAccountId1964232947") + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + GetCmekSettingsRequest request = + GetCmekSettingsRequest.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .build(); + + CmekSettings actualResponse = client.getCmekSettings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCmekSettingsRequest actualRequest = ((GetCmekSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCmekSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + GetCmekSettingsRequest request = + GetCmekSettingsRequest.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .build(); + client.getCmekSettings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCmekSettingsTest() throws Exception { + CmekSettings expectedResponse = + CmekSettings.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .setServiceAccountId("serviceAccountId1964232947") + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + UpdateCmekSettingsRequest request = + UpdateCmekSettingsRequest.newBuilder() + .setName("name3373707") + .setCmekSettings(CmekSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + CmekSettings actualResponse = client.updateCmekSettings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCmekSettingsRequest actualRequest = ((UpdateCmekSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCmekSettings(), actualRequest.getCmekSettings()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCmekSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UpdateCmekSettingsRequest request = + UpdateCmekSettingsRequest.newBuilder() + .setName("name3373707") + .setCmekSettings(CmekSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateCmekSettings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSettingsTest() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + SettingsName name = SettingsName.ofProjectName("[PROJECT]"); + + Settings actualResponse = client.getSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + SettingsName name = SettingsName.ofProjectName("[PROJECT]"); + client.getSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSettingsTest2() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + Settings actualResponse = client.getSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.getSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSettingsTest() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + Settings settings = Settings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Settings actualResponse = client.updateSettings(settings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSettingsRequest actualRequest = ((UpdateSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(settings, actualRequest.getSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + Settings settings = Settings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSettings(settings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void copyLogEntriesTest() throws Exception { + CopyLogEntriesResponse expectedResponse = + CopyLogEntriesResponse.newBuilder().setLogEntriesCopiedCount(-2134326978).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyLogEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + CopyLogEntriesRequest request = + CopyLogEntriesRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setDestination("destination-1429847026") + .build(); + + CopyLogEntriesResponse actualResponse = client.copyLogEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyLogEntriesRequest actualRequest = ((CopyLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getDestination(), actualRequest.getDestination()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CopyLogEntriesRequest request = + CopyLogEntriesRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setDestination("destination-1429847026") + .build(); + client.copyLogEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java new file mode 100644 index 000000000..02dc0e329 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; +import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; + +import com.google.api.MonitoredResource; +import com.google.api.MonitoredResourceDescriptor; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.OrganizationName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LoggingClientTest { + private static MockLoggingServiceV2 mockLoggingServiceV2; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private LoggingClient client; + + @BeforeClass + public static void startStaticServer() { + mockLoggingServiceV2 = new MockLoggingServiceV2(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockLoggingServiceV2)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + LoggingSettings settings = + LoggingSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LoggingClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void deleteLogTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + + client.deleteLog(logName); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogRequest actualRequest = ((DeleteLogRequest) actualRequests.get(0)); + + Assert.assertEquals(logName.toString(), actualRequest.getLogName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + client.deleteLog(logName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteLogTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + String logName = "logName341528559"; + + client.deleteLog(logName); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogRequest actualRequest = ((DeleteLogRequest) actualRequests.get(0)); + + Assert.assertEquals(logName, actualRequest.getLogName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + String logName = "logName341528559"; + client.deleteLog(logName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void writeLogEntriesTest() throws Exception { + WriteLogEntriesResponse expectedResponse = WriteLogEntriesResponse.newBuilder().build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + + WriteLogEntriesResponse actualResponse = + client.writeLogEntries(logName, resource, labels, entries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteLogEntriesRequest actualRequest = ((WriteLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(logName.toString(), actualRequest.getLogName()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(labels, actualRequest.getLabelsMap()); + Assert.assertEquals(entries, actualRequest.getEntriesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + client.writeLogEntries(logName, resource, labels, entries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void writeLogEntriesTest2() throws Exception { + WriteLogEntriesResponse expectedResponse = WriteLogEntriesResponse.newBuilder().build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + String logName = "logName341528559"; + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + + WriteLogEntriesResponse actualResponse = + client.writeLogEntries(logName, resource, labels, entries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteLogEntriesRequest actualRequest = ((WriteLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(logName, actualRequest.getLogName()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(labels, actualRequest.getLabelsMap()); + Assert.assertEquals(entries, actualRequest.getEntriesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeLogEntriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + String logName = "logName341528559"; + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + client.writeLogEntries(logName, resource, labels, entries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogEntriesTest() throws Exception { + LogEntry responsesElement = LogEntry.newBuilder().build(); + ListLogEntriesResponse expectedResponse = + ListLogEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + List resourceNames = new ArrayList<>(); + String filter = "filter-1274492040"; + String orderBy = "orderBy-1207110587"; + + ListLogEntriesPagedResponse pagedListResponse = + client.listLogEntries(resourceNames, filter, orderBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogEntriesRequest actualRequest = ((ListLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(resourceNames, actualRequest.getResourceNamesList()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertEquals(orderBy, actualRequest.getOrderBy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + List resourceNames = new ArrayList<>(); + String filter = "filter-1274492040"; + String orderBy = "orderBy-1207110587"; + client.listLogEntries(resourceNames, filter, orderBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMonitoredResourceDescriptorsTest() throws Exception { + MonitoredResourceDescriptor responsesElement = MonitoredResourceDescriptor.newBuilder().build(); + ListMonitoredResourceDescriptorsResponse expectedResponse = + ListMonitoredResourceDescriptorsResponse.newBuilder() + .setNextPageToken("") + .addAllResourceDescriptors(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + ListMonitoredResourceDescriptorsRequest request = + ListMonitoredResourceDescriptorsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListMonitoredResourceDescriptorsPagedResponse pagedListResponse = + client.listMonitoredResourceDescriptors(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceDescriptorsList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMonitoredResourceDescriptorsRequest actualRequest = + ((ListMonitoredResourceDescriptorsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMonitoredResourceDescriptorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + ListMonitoredResourceDescriptorsRequest request = + ListMonitoredResourceDescriptorsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listMonitoredResourceDescriptors(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListLogsResponse expectedResponse = + ListLogsResponse.newBuilder() + .setNextPageToken("") + .addAllLogNames(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + + ListLogsPagedResponse pagedListResponse = client.listLogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.listLogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListLogsResponse expectedResponse = + ListLogsResponse.newBuilder() + .setNextPageToken("") + .addAllLogNames(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListLogsPagedResponse pagedListResponse = client.listLogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listLogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogsTest3() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListLogsResponse expectedResponse = + ListLogsResponse.newBuilder() + .setNextPageToken("") + .addAllLogNames(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListLogsPagedResponse pagedListResponse = client.listLogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listLogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogsTest4() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListLogsResponse expectedResponse = + ListLogsResponse.newBuilder() + .setNextPageToken("") + .addAllLogNames(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListLogsPagedResponse pagedListResponse = client.listLogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogsExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listLogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogsTest5() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListLogsResponse expectedResponse = + ListLogsResponse.newBuilder() + .setNextPageToken("") + .addAllLogNames(Arrays.asList(responsesElement)) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLogsPagedResponse pagedListResponse = client.listLogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); + + List actualRequests = mockLoggingServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogsExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void tailLogEntriesTest() throws Exception { + TailLogEntriesResponse expectedResponse = + TailLogEntriesResponse.newBuilder() + .addAllEntries(new ArrayList()) + .addAllSuppressionInfo(new ArrayList()) + .build(); + mockLoggingServiceV2.addResponse(expectedResponse); + TailLogEntriesRequest request = + TailLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setBufferWindow(Duration.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.tailLogEntriesCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void tailLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLoggingServiceV2.addException(exception); + TailLogEntriesRequest request = + TailLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setBufferWindow(Duration.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.tailLogEntriesCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java new file mode 100644 index 000000000..410a03588 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -0,0 +1,550 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; + +import com.google.api.Distribution; +import com.google.api.MetricDescriptor; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MetricsClientTest { + private static MockMetricsServiceV2 mockMetricsServiceV2; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private MetricsClient client; + + @BeforeClass + public static void startStaticServer() { + mockMetricsServiceV2 = new MockMetricsServiceV2(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockMetricsServiceV2)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MetricsSettings settings = + MetricsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MetricsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listLogMetricsTest() throws Exception { + LogMetric responsesElement = LogMetric.newBuilder().build(); + ListLogMetricsResponse expectedResponse = + ListLogMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllMetrics(Arrays.asList(responsesElement)) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListLogMetricsPagedResponse pagedListResponse = client.listLogMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetricsList().get(0), resources.get(0)); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogMetricsRequest actualRequest = ((ListLogMetricsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogMetricsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listLogMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogMetricsTest2() throws Exception { + LogMetric responsesElement = LogMetric.newBuilder().build(); + ListLogMetricsResponse expectedResponse = + ListLogMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllMetrics(Arrays.asList(responsesElement)) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLogMetricsPagedResponse pagedListResponse = client.listLogMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetricsList().get(0), resources.get(0)); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogMetricsRequest actualRequest = ((ListLogMetricsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogMetricsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLogMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLogMetricTest() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + + LogMetric actualResponse = client.getLogMetric(metricName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLogMetricRequest actualRequest = ((GetLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLogMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + client.getLogMetric(metricName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLogMetricTest2() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + String metricName = "metricName-610759589"; + + LogMetric actualResponse = client.getLogMetric(metricName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLogMetricRequest actualRequest = ((GetLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName, actualRequest.getMetricName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLogMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + String metricName = "metricName-610759589"; + client.getLogMetric(metricName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLogMetricTest() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + LogMetric metric = LogMetric.newBuilder().build(); + + LogMetric actualResponse = client.createLogMetric(parent, metric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLogMetricRequest actualRequest = ((CreateLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(metric, actualRequest.getMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLogMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogMetric metric = LogMetric.newBuilder().build(); + client.createLogMetric(parent, metric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLogMetricTest2() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + LogMetric metric = LogMetric.newBuilder().build(); + + LogMetric actualResponse = client.createLogMetric(parent, metric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLogMetricRequest actualRequest = ((CreateLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(metric, actualRequest.getMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLogMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + LogMetric metric = LogMetric.newBuilder().build(); + client.createLogMetric(parent, metric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLogMetricTest() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + LogMetric metric = LogMetric.newBuilder().build(); + + LogMetric actualResponse = client.updateLogMetric(metricName, metric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLogMetricRequest actualRequest = ((UpdateLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); + Assert.assertEquals(metric, actualRequest.getMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLogMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + LogMetric metric = LogMetric.newBuilder().build(); + client.updateLogMetric(metricName, metric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLogMetricTest2() throws Exception { + LogMetric expectedResponse = + LogMetric.newBuilder() + .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") + .setDisabled(true) + .setMetricDescriptor(MetricDescriptor.newBuilder().build()) + .setValueExtractor("valueExtractor-1867420749") + .putAllLabelExtractors(new HashMap()) + .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + String metricName = "metricName-610759589"; + LogMetric metric = LogMetric.newBuilder().build(); + + LogMetric actualResponse = client.updateLogMetric(metricName, metric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLogMetricRequest actualRequest = ((UpdateLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName, actualRequest.getMetricName()); + Assert.assertEquals(metric, actualRequest.getMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLogMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + String metricName = "metricName-610759589"; + LogMetric metric = LogMetric.newBuilder().build(); + client.updateLogMetric(metricName, metric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteLogMetricTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + + client.deleteLogMetric(metricName); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogMetricRequest actualRequest = ((DeleteLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + client.deleteLogMetric(metricName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteLogMetricTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMetricsServiceV2.addResponse(expectedResponse); + + String metricName = "metricName-610759589"; + + client.deleteLogMetric(metricName); + + List actualRequests = mockMetricsServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogMetricRequest actualRequest = ((DeleteLogMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(metricName, actualRequest.getMetricName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetricsServiceV2.addException(exception); + + try { + String metricName = "metricName-610759589"; + client.deleteLogMetric(metricName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java new file mode 100644 index 000000000..325959baa --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConfigServiceV2 implements MockGrpcService { + private final MockConfigServiceV2Impl serviceImpl; + + public MockConfigServiceV2() { + serviceImpl = new MockConfigServiceV2Impl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java new file mode 100644 index 000000000..d214b0517 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -0,0 +1,762 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2ImplBase; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.GetCmekSettingsRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; +import com.google.logging.v2.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConfigServiceV2Impl extends ConfigServiceV2ImplBase { + private List requests; + private Queue responses; + + public MockConfigServiceV2Impl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listBuckets( + ListBucketsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBucketsResponse) { + requests.add(request); + responseObserver.onNext(((ListBucketsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBuckets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBucketsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBucket(GetBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogBucket) { + requests.add(request); + responseObserver.onNext(((LogBucket) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBucket, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogBucket.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBucketAsync( + CreateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBucketAsync, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBucketAsync( + UpdateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBucketAsync, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBucket( + CreateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogBucket) { + requests.add(request); + responseObserver.onNext(((LogBucket) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBucket, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogBucket.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBucket( + UpdateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogBucket) { + requests.add(request); + responseObserver.onNext(((LogBucket) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBucket, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogBucket.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBucket(DeleteBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBucket, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void undeleteBucket( + UndeleteBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UndeleteBucket, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listViews( + ListViewsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListViewsResponse) { + requests.add(request); + responseObserver.onNext(((ListViewsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListViews, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListViewsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getView(GetViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogView) { + requests.add(request); + responseObserver.onNext(((LogView) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogView.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createView(CreateViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogView) { + requests.add(request); + responseObserver.onNext(((LogView) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogView.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateView(UpdateViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogView) { + requests.add(request); + responseObserver.onNext(((LogView) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogView.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteView(DeleteViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSinks( + ListSinksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSinksResponse) { + requests.add(request); + responseObserver.onNext(((ListSinksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSinks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSinksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSink(GetSinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogSink) { + requests.add(request); + responseObserver.onNext(((LogSink) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogSink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSink(CreateSinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogSink) { + requests.add(request); + responseObserver.onNext(((LogSink) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogSink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSink(UpdateSinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogSink) { + requests.add(request); + responseObserver.onNext(((LogSink) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogSink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSink(DeleteSinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createLink(CreateLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLink(DeleteLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLinks( + ListLinksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLinksResponse) { + requests.add(request); + responseObserver.onNext(((ListLinksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLinks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLinksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLink(GetLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Link) { + requests.add(request); + responseObserver.onNext(((Link) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Link.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExclusions( + ListExclusionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExclusionsResponse) { + requests.add(request); + responseObserver.onNext(((ListExclusionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListExclusions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExclusionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExclusion( + GetExclusionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogExclusion) { + requests.add(request); + responseObserver.onNext(((LogExclusion) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetExclusion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogExclusion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExclusion( + CreateExclusionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogExclusion) { + requests.add(request); + responseObserver.onNext(((LogExclusion) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateExclusion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogExclusion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExclusion( + UpdateExclusionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogExclusion) { + requests.add(request); + responseObserver.onNext(((LogExclusion) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateExclusion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogExclusion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExclusion( + DeleteExclusionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteExclusion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCmekSettings( + GetCmekSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CmekSettings) { + requests.add(request); + responseObserver.onNext(((CmekSettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCmekSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CmekSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCmekSettings( + UpdateCmekSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CmekSettings) { + requests.add(request); + responseObserver.onNext(((CmekSettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCmekSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CmekSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSettings(GetSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Settings) { + requests.add(request); + responseObserver.onNext(((Settings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Settings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSettings( + UpdateSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Settings) { + requests.add(request); + responseObserver.onNext(((Settings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Settings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void copyLogEntries( + CopyLogEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CopyLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java new file mode 100644 index 000000000..027dae3a1 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLoggingServiceV2 implements MockGrpcService { + private final MockLoggingServiceV2Impl serviceImpl; + + public MockLoggingServiceV2() { + serviceImpl = new MockLoggingServiceV2Impl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java new file mode 100644 index 000000000..7efc702ba --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java @@ -0,0 +1,213 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.LoggingServiceV2Grpc.LoggingServiceV2ImplBase; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLoggingServiceV2Impl extends LoggingServiceV2ImplBase { + private List requests; + private Queue responses; + + public MockLoggingServiceV2Impl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void deleteLog(DeleteLogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteLog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void writeLogEntries( + WriteLogEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WriteLogEntriesResponse) { + requests.add(request); + responseObserver.onNext(((WriteLogEntriesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method WriteLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WriteLogEntriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLogEntries( + ListLogEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLogEntriesResponse) { + requests.add(request); + responseObserver.onNext(((ListLogEntriesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLogEntriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMonitoredResourceDescriptors( + ListMonitoredResourceDescriptorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMonitoredResourceDescriptorsResponse) { + requests.add(request); + responseObserver.onNext(((ListMonitoredResourceDescriptorsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMonitoredResourceDescriptors, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMonitoredResourceDescriptorsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLogs(ListLogsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLogsResponse) { + requests.add(request); + responseObserver.onNext(((ListLogsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLogs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLogsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public StreamObserver tailLogEntries( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(TailLogEntriesRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof TailLogEntriesResponse) { + responseObserver.onNext(((TailLogEntriesResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TailLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TailLogEntriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java new file mode 100644 index 000000000..f9ba04a31 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetricsServiceV2 implements MockGrpcService { + private final MockMetricsServiceV2Impl serviceImpl; + + public MockMetricsServiceV2() { + serviceImpl = new MockMetricsServiceV2Impl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java new file mode 100644 index 000000000..765831f7c --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java @@ -0,0 +1,173 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.MetricsServiceV2Grpc.MetricsServiceV2ImplBase; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetricsServiceV2Impl extends MetricsServiceV2ImplBase { + private List requests; + private Queue responses; + + public MockMetricsServiceV2Impl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLogMetrics( + ListLogMetricsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLogMetricsResponse) { + requests.add(request); + responseObserver.onNext(((ListLogMetricsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLogMetrics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLogMetricsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLogMetric( + GetLogMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogMetric) { + requests.add(request); + responseObserver.onNext(((LogMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLogMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createLogMetric( + CreateLogMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogMetric) { + requests.add(request); + responseObserver.onNext(((LogMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateLogMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLogMetric( + UpdateLogMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogMetric) { + requests.add(request); + responseObserver.onNext(((LogMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateLogMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLogMetric( + DeleteLogMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteLogMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java similarity index 52% rename from grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java rename to owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index afdf98a8d..2f08027e5 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for configuring sinks used to route log entries.
  * 
@@ -35,1357 +18,1043 @@ private ConfigServiceV2Grpc() {} public static final java.lang.String SERVICE_NAME = "google.logging.v2.ConfigServiceV2"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> - getListBucketsMethod; + private static volatile io.grpc.MethodDescriptor getListBucketsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBuckets", requestType = com.google.logging.v2.ListBucketsRequest.class, responseType = com.google.logging.v2.ListBucketsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> - getListBucketsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> - getListBucketsMethod; + public static io.grpc.MethodDescriptor getListBucketsMethod() { + io.grpc.MethodDescriptor getListBucketsMethod; if ((getListBucketsMethod = ConfigServiceV2Grpc.getListBucketsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListBucketsMethod = ConfigServiceV2Grpc.getListBucketsMethod) == null) { - ConfigServiceV2Grpc.getListBucketsMethod = - getListBucketsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListBucketsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListBucketsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("ListBuckets")) - .build(); + ConfigServiceV2Grpc.getListBucketsMethod = getListBucketsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListBucketsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListBucketsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListBuckets")) + .build(); } } } return getListBucketsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> - getGetBucketMethod; + private static volatile io.grpc.MethodDescriptor getGetBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBucket", requestType = com.google.logging.v2.GetBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> - getGetBucketMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> - getGetBucketMethod; + public static io.grpc.MethodDescriptor getGetBucketMethod() { + io.grpc.MethodDescriptor getGetBucketMethod; if ((getGetBucketMethod = ConfigServiceV2Grpc.getGetBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetBucketMethod = ConfigServiceV2Grpc.getGetBucketMethod) == null) { - ConfigServiceV2Grpc.getGetBucketMethod = - getGetBucketMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetBucket")) - .build(); + ConfigServiceV2Grpc.getGetBucketMethod = getGetBucketMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetBucket")) + .build(); } } } return getGetBucketMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor getCreateBucketAsyncMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBucketAsync", requestType = com.google.logging.v2.CreateBucketRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod; + public static io.grpc.MethodDescriptor getCreateBucketAsyncMethod() { + io.grpc.MethodDescriptor getCreateBucketAsyncMethod; if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { - ConfigServiceV2Grpc.getCreateBucketAsyncMethod = - getCreateBucketAsyncMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucketAsync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateBucketAsync")) - .build(); + ConfigServiceV2Grpc.getCreateBucketAsyncMethod = getCreateBucketAsyncMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateBucketAsync")) + .build(); } } } return getCreateBucketAsyncMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor getUpdateBucketAsyncMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBucketAsync", requestType = com.google.logging.v2.UpdateBucketRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod; + public static io.grpc.MethodDescriptor getUpdateBucketAsyncMethod() { + io.grpc.MethodDescriptor getUpdateBucketAsyncMethod; if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { - ConfigServiceV2Grpc.getUpdateBucketAsyncMethod = - getUpdateBucketAsyncMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucketAsync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateBucketAsync")) - .build(); + ConfigServiceV2Grpc.getUpdateBucketAsyncMethod = getUpdateBucketAsyncMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateBucketAsync")) + .build(); } } } return getUpdateBucketAsyncMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> - getCreateBucketMethod; + private static volatile io.grpc.MethodDescriptor getCreateBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBucket", requestType = com.google.logging.v2.CreateBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> - getCreateBucketMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> - getCreateBucketMethod; + public static io.grpc.MethodDescriptor getCreateBucketMethod() { + io.grpc.MethodDescriptor getCreateBucketMethod; if ((getCreateBucketMethod = ConfigServiceV2Grpc.getCreateBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateBucketMethod = ConfigServiceV2Grpc.getCreateBucketMethod) == null) { - ConfigServiceV2Grpc.getCreateBucketMethod = - getCreateBucketMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateBucket")) - .build(); + ConfigServiceV2Grpc.getCreateBucketMethod = getCreateBucketMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateBucket")) + .build(); } } } return getCreateBucketMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> - getUpdateBucketMethod; + private static volatile io.grpc.MethodDescriptor getUpdateBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBucket", requestType = com.google.logging.v2.UpdateBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> - getUpdateBucketMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> - getUpdateBucketMethod; + public static io.grpc.MethodDescriptor getUpdateBucketMethod() { + io.grpc.MethodDescriptor getUpdateBucketMethod; if ((getUpdateBucketMethod = ConfigServiceV2Grpc.getUpdateBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateBucketMethod = ConfigServiceV2Grpc.getUpdateBucketMethod) == null) { - ConfigServiceV2Grpc.getUpdateBucketMethod = - getUpdateBucketMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateBucket")) - .build(); + ConfigServiceV2Grpc.getUpdateBucketMethod = getUpdateBucketMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateBucket")) + .build(); } } } return getUpdateBucketMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> - getDeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteBucket", requestType = com.google.logging.v2.DeleteBucketRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> - getDeleteBucketMethod() { - io.grpc.MethodDescriptor - getDeleteBucketMethod; + public static io.grpc.MethodDescriptor getDeleteBucketMethod() { + io.grpc.MethodDescriptor getDeleteBucketMethod; if ((getDeleteBucketMethod = ConfigServiceV2Grpc.getDeleteBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteBucketMethod = ConfigServiceV2Grpc.getDeleteBucketMethod) == null) { - ConfigServiceV2Grpc.getDeleteBucketMethod = - getDeleteBucketMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("DeleteBucket")) - .build(); + ConfigServiceV2Grpc.getDeleteBucketMethod = getDeleteBucketMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteBucket")) + .build(); } } } return getDeleteBucketMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> - getUndeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor getUndeleteBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UndeleteBucket", requestType = com.google.logging.v2.UndeleteBucketRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> - getUndeleteBucketMethod() { - io.grpc.MethodDescriptor - getUndeleteBucketMethod; + public static io.grpc.MethodDescriptor getUndeleteBucketMethod() { + io.grpc.MethodDescriptor getUndeleteBucketMethod; if ((getUndeleteBucketMethod = ConfigServiceV2Grpc.getUndeleteBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUndeleteBucketMethod = ConfigServiceV2Grpc.getUndeleteBucketMethod) == null) { - ConfigServiceV2Grpc.getUndeleteBucketMethod = - getUndeleteBucketMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UndeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UndeleteBucket")) - .build(); + ConfigServiceV2Grpc.getUndeleteBucketMethod = getUndeleteBucketMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UndeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UndeleteBucket")) + .build(); } } } return getUndeleteBucketMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> - getListViewsMethod; + private static volatile io.grpc.MethodDescriptor getListViewsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListViews", requestType = com.google.logging.v2.ListViewsRequest.class, responseType = com.google.logging.v2.ListViewsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> - getListViewsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> - getListViewsMethod; + public static io.grpc.MethodDescriptor getListViewsMethod() { + io.grpc.MethodDescriptor getListViewsMethod; if ((getListViewsMethod = ConfigServiceV2Grpc.getListViewsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListViewsMethod = ConfigServiceV2Grpc.getListViewsMethod) == null) { - ConfigServiceV2Grpc.getListViewsMethod = - getListViewsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListViews")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListViewsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListViewsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListViews")) - .build(); + ConfigServiceV2Grpc.getListViewsMethod = getListViewsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListViews")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListViewsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListViewsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListViews")) + .build(); } } } return getListViewsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> - getGetViewMethod; + private static volatile io.grpc.MethodDescriptor getGetViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetView", requestType = com.google.logging.v2.GetViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> - getGetViewMethod() { - io.grpc.MethodDescriptor - getGetViewMethod; + public static io.grpc.MethodDescriptor getGetViewMethod() { + io.grpc.MethodDescriptor getGetViewMethod; if ((getGetViewMethod = ConfigServiceV2Grpc.getGetViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetViewMethod = ConfigServiceV2Grpc.getGetViewMethod) == null) { - ConfigServiceV2Grpc.getGetViewMethod = - getGetViewMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetViewRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetView")) - .build(); + ConfigServiceV2Grpc.getGetViewMethod = getGetViewMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetViewRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetView")) + .build(); } } } return getGetViewMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> - getCreateViewMethod; + private static volatile io.grpc.MethodDescriptor getCreateViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateView", requestType = com.google.logging.v2.CreateViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> - getCreateViewMethod() { - io.grpc.MethodDescriptor - getCreateViewMethod; + public static io.grpc.MethodDescriptor getCreateViewMethod() { + io.grpc.MethodDescriptor getCreateViewMethod; if ((getCreateViewMethod = ConfigServiceV2Grpc.getCreateViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateViewMethod = ConfigServiceV2Grpc.getCreateViewMethod) == null) { - ConfigServiceV2Grpc.getCreateViewMethod = - getCreateViewMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateViewRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateView")) - .build(); + ConfigServiceV2Grpc.getCreateViewMethod = getCreateViewMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateViewRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateView")) + .build(); } } } return getCreateViewMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> - getUpdateViewMethod; + private static volatile io.grpc.MethodDescriptor getUpdateViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateView", requestType = com.google.logging.v2.UpdateViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> - getUpdateViewMethod() { - io.grpc.MethodDescriptor - getUpdateViewMethod; + public static io.grpc.MethodDescriptor getUpdateViewMethod() { + io.grpc.MethodDescriptor getUpdateViewMethod; if ((getUpdateViewMethod = ConfigServiceV2Grpc.getUpdateViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateViewMethod = ConfigServiceV2Grpc.getUpdateViewMethod) == null) { - ConfigServiceV2Grpc.getUpdateViewMethod = - getUpdateViewMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateViewRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateView")) - .build(); + ConfigServiceV2Grpc.getUpdateViewMethod = getUpdateViewMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateViewRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateView")) + .build(); } } } return getUpdateViewMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> - getDeleteViewMethod; + private static volatile io.grpc.MethodDescriptor getDeleteViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteView", requestType = com.google.logging.v2.DeleteViewRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> - getDeleteViewMethod() { - io.grpc.MethodDescriptor - getDeleteViewMethod; + public static io.grpc.MethodDescriptor getDeleteViewMethod() { + io.grpc.MethodDescriptor getDeleteViewMethod; if ((getDeleteViewMethod = ConfigServiceV2Grpc.getDeleteViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteViewMethod = ConfigServiceV2Grpc.getDeleteViewMethod) == null) { - ConfigServiceV2Grpc.getDeleteViewMethod = - getDeleteViewMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteViewRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("DeleteView")) - .build(); + ConfigServiceV2Grpc.getDeleteViewMethod = getDeleteViewMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteViewRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteView")) + .build(); } } } return getDeleteViewMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> - getListSinksMethod; + private static volatile io.grpc.MethodDescriptor getListSinksMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSinks", requestType = com.google.logging.v2.ListSinksRequest.class, responseType = com.google.logging.v2.ListSinksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> - getListSinksMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> - getListSinksMethod; + public static io.grpc.MethodDescriptor getListSinksMethod() { + io.grpc.MethodDescriptor getListSinksMethod; if ((getListSinksMethod = ConfigServiceV2Grpc.getListSinksMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListSinksMethod = ConfigServiceV2Grpc.getListSinksMethod) == null) { - ConfigServiceV2Grpc.getListSinksMethod = - getListSinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListSinksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListSinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListSinks")) - .build(); + ConfigServiceV2Grpc.getListSinksMethod = getListSinksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListSinksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListSinksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListSinks")) + .build(); } } } return getListSinksMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> - getGetSinkMethod; + private static volatile io.grpc.MethodDescriptor getGetSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSink", requestType = com.google.logging.v2.GetSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> - getGetSinkMethod() { - io.grpc.MethodDescriptor - getGetSinkMethod; + public static io.grpc.MethodDescriptor getGetSinkMethod() { + io.grpc.MethodDescriptor getGetSinkMethod; if ((getGetSinkMethod = ConfigServiceV2Grpc.getGetSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetSinkMethod = ConfigServiceV2Grpc.getGetSinkMethod) == null) { - ConfigServiceV2Grpc.getGetSinkMethod = - getGetSinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetSinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSink")) - .build(); + ConfigServiceV2Grpc.getGetSinkMethod = getGetSinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetSinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSink")) + .build(); } } } return getGetSinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> - getCreateSinkMethod; + private static volatile io.grpc.MethodDescriptor getCreateSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSink", requestType = com.google.logging.v2.CreateSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> - getCreateSinkMethod() { - io.grpc.MethodDescriptor - getCreateSinkMethod; + public static io.grpc.MethodDescriptor getCreateSinkMethod() { + io.grpc.MethodDescriptor getCreateSinkMethod; if ((getCreateSinkMethod = ConfigServiceV2Grpc.getCreateSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateSinkMethod = ConfigServiceV2Grpc.getCreateSinkMethod) == null) { - ConfigServiceV2Grpc.getCreateSinkMethod = - getCreateSinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateSinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateSink")) - .build(); + ConfigServiceV2Grpc.getCreateSinkMethod = getCreateSinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateSinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateSink")) + .build(); } } } return getCreateSinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> - getUpdateSinkMethod; + private static volatile io.grpc.MethodDescriptor getUpdateSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSink", requestType = com.google.logging.v2.UpdateSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> - getUpdateSinkMethod() { - io.grpc.MethodDescriptor - getUpdateSinkMethod; + public static io.grpc.MethodDescriptor getUpdateSinkMethod() { + io.grpc.MethodDescriptor getUpdateSinkMethod; if ((getUpdateSinkMethod = ConfigServiceV2Grpc.getUpdateSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateSinkMethod = ConfigServiceV2Grpc.getUpdateSinkMethod) == null) { - ConfigServiceV2Grpc.getUpdateSinkMethod = - getUpdateSinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateSinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateSink")) - .build(); + ConfigServiceV2Grpc.getUpdateSinkMethod = getUpdateSinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateSinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateSink")) + .build(); } } } return getUpdateSinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> - getDeleteSinkMethod; + private static volatile io.grpc.MethodDescriptor getDeleteSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSink", requestType = com.google.logging.v2.DeleteSinkRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> - getDeleteSinkMethod() { - io.grpc.MethodDescriptor - getDeleteSinkMethod; + public static io.grpc.MethodDescriptor getDeleteSinkMethod() { + io.grpc.MethodDescriptor getDeleteSinkMethod; if ((getDeleteSinkMethod = ConfigServiceV2Grpc.getDeleteSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteSinkMethod = ConfigServiceV2Grpc.getDeleteSinkMethod) == null) { - ConfigServiceV2Grpc.getDeleteSinkMethod = - getDeleteSinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteSinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("DeleteSink")) - .build(); + ConfigServiceV2Grpc.getDeleteSinkMethod = getDeleteSinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteSinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteSink")) + .build(); } } } return getDeleteSinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod; + private static volatile io.grpc.MethodDescriptor getCreateLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateLink", requestType = com.google.logging.v2.CreateLinkRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod; + public static io.grpc.MethodDescriptor getCreateLinkMethod() { + io.grpc.MethodDescriptor getCreateLinkMethod; if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { - ConfigServiceV2Grpc.getCreateLinkMethod = - getCreateLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateLink")) - .build(); + ConfigServiceV2Grpc.getCreateLinkMethod = getCreateLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateLink")) + .build(); } } } return getCreateLinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod; + private static volatile io.grpc.MethodDescriptor getDeleteLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteLink", requestType = com.google.logging.v2.DeleteLinkRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod; + public static io.grpc.MethodDescriptor getDeleteLinkMethod() { + io.grpc.MethodDescriptor getDeleteLinkMethod; if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { - ConfigServiceV2Grpc.getDeleteLinkMethod = - getDeleteLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("DeleteLink")) - .build(); + ConfigServiceV2Grpc.getDeleteLinkMethod = getDeleteLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteLink")) + .build(); } } } return getDeleteLinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> - getListLinksMethod; + private static volatile io.grpc.MethodDescriptor getListLinksMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLinks", requestType = com.google.logging.v2.ListLinksRequest.class, responseType = com.google.logging.v2.ListLinksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> - getListLinksMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> - getListLinksMethod; + public static io.grpc.MethodDescriptor getListLinksMethod() { + io.grpc.MethodDescriptor getListLinksMethod; if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { - ConfigServiceV2Grpc.getListLinksMethod = - getListLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListLinks")) - .build(); + ConfigServiceV2Grpc.getListLinksMethod = getListLinksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListLinks")) + .build(); } } } return getListLinksMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> - getGetLinkMethod; + private static volatile io.grpc.MethodDescriptor getGetLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetLink", requestType = com.google.logging.v2.GetLinkRequest.class, responseType = com.google.logging.v2.Link.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> - getGetLinkMethod() { - io.grpc.MethodDescriptor - getGetLinkMethod; + public static io.grpc.MethodDescriptor getGetLinkMethod() { + io.grpc.MethodDescriptor getGetLinkMethod; if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { - ConfigServiceV2Grpc.getGetLinkMethod = - getGetLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Link.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetLink")) - .build(); + ConfigServiceV2Grpc.getGetLinkMethod = getGetLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Link.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetLink")) + .build(); } } } return getGetLinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> - getListExclusionsMethod; + private static volatile io.grpc.MethodDescriptor getListExclusionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListExclusions", requestType = com.google.logging.v2.ListExclusionsRequest.class, responseType = com.google.logging.v2.ListExclusionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> - getListExclusionsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListExclusionsRequest, - com.google.logging.v2.ListExclusionsResponse> - getListExclusionsMethod; + public static io.grpc.MethodDescriptor getListExclusionsMethod() { + io.grpc.MethodDescriptor getListExclusionsMethod; if ((getListExclusionsMethod = ConfigServiceV2Grpc.getListExclusionsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListExclusionsMethod = ConfigServiceV2Grpc.getListExclusionsMethod) == null) { - ConfigServiceV2Grpc.getListExclusionsMethod = - getListExclusionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExclusions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListExclusionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListExclusionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("ListExclusions")) - .build(); + ConfigServiceV2Grpc.getListExclusionsMethod = getListExclusionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExclusions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListExclusionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListExclusionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListExclusions")) + .build(); } } } return getListExclusionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> - getGetExclusionMethod; + private static volatile io.grpc.MethodDescriptor getGetExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetExclusion", requestType = com.google.logging.v2.GetExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> - getGetExclusionMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> - getGetExclusionMethod; + public static io.grpc.MethodDescriptor getGetExclusionMethod() { + io.grpc.MethodDescriptor getGetExclusionMethod; if ((getGetExclusionMethod = ConfigServiceV2Grpc.getGetExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetExclusionMethod = ConfigServiceV2Grpc.getGetExclusionMethod) == null) { - ConfigServiceV2Grpc.getGetExclusionMethod = - getGetExclusionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetExclusionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("GetExclusion")) - .build(); + ConfigServiceV2Grpc.getGetExclusionMethod = getGetExclusionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetExclusion")) + .build(); } } } return getGetExclusionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> - getCreateExclusionMethod; + private static volatile io.grpc.MethodDescriptor getCreateExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateExclusion", requestType = com.google.logging.v2.CreateExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> - getCreateExclusionMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> - getCreateExclusionMethod; + public static io.grpc.MethodDescriptor getCreateExclusionMethod() { + io.grpc.MethodDescriptor getCreateExclusionMethod; if ((getCreateExclusionMethod = ConfigServiceV2Grpc.getCreateExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateExclusionMethod = ConfigServiceV2Grpc.getCreateExclusionMethod) == null) { - ConfigServiceV2Grpc.getCreateExclusionMethod = - getCreateExclusionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CreateExclusion")) - .build(); + ConfigServiceV2Grpc.getCreateExclusionMethod = getCreateExclusionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateExclusion")) + .build(); } } } return getCreateExclusionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> - getUpdateExclusionMethod; + private static volatile io.grpc.MethodDescriptor getUpdateExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateExclusion", requestType = com.google.logging.v2.UpdateExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> - getUpdateExclusionMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> - getUpdateExclusionMethod; + public static io.grpc.MethodDescriptor getUpdateExclusionMethod() { + io.grpc.MethodDescriptor getUpdateExclusionMethod; if ((getUpdateExclusionMethod = ConfigServiceV2Grpc.getUpdateExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateExclusionMethod = ConfigServiceV2Grpc.getUpdateExclusionMethod) == null) { - ConfigServiceV2Grpc.getUpdateExclusionMethod = - getUpdateExclusionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateExclusion")) - .build(); + ConfigServiceV2Grpc.getUpdateExclusionMethod = getUpdateExclusionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateExclusion")) + .build(); } } } return getUpdateExclusionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod; + private static volatile io.grpc.MethodDescriptor getDeleteExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteExclusion", requestType = com.google.logging.v2.DeleteExclusionRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod; + public static io.grpc.MethodDescriptor getDeleteExclusionMethod() { + io.grpc.MethodDescriptor getDeleteExclusionMethod; if ((getDeleteExclusionMethod = ConfigServiceV2Grpc.getDeleteExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteExclusionMethod = ConfigServiceV2Grpc.getDeleteExclusionMethod) == null) { - ConfigServiceV2Grpc.getDeleteExclusionMethod = - getDeleteExclusionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteExclusionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("DeleteExclusion")) - .build(); + ConfigServiceV2Grpc.getDeleteExclusionMethod = getDeleteExclusionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteExclusionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteExclusion")) + .build(); } } } return getDeleteExclusionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getGetCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor getGetCmekSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetCmekSettings", requestType = com.google.logging.v2.GetCmekSettingsRequest.class, responseType = com.google.logging.v2.CmekSettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getGetCmekSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getGetCmekSettingsMethod; + public static io.grpc.MethodDescriptor getGetCmekSettingsMethod() { + io.grpc.MethodDescriptor getGetCmekSettingsMethod; if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { - ConfigServiceV2Grpc.getGetCmekSettingsMethod = - getGetCmekSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCmekSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CmekSettings.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("GetCmekSettings")) - .build(); + ConfigServiceV2Grpc.getGetCmekSettingsMethod = getGetCmekSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetCmekSettings")) + .build(); } } } return getGetCmekSettingsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getUpdateCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor getUpdateCmekSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateCmekSettings", requestType = com.google.logging.v2.UpdateCmekSettingsRequest.class, responseType = com.google.logging.v2.CmekSettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getUpdateCmekSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getUpdateCmekSettingsMethod; + public static io.grpc.MethodDescriptor getUpdateCmekSettingsMethod() { + io.grpc.MethodDescriptor getUpdateCmekSettingsMethod; if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { - if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) - == null) { - ConfigServiceV2Grpc.getUpdateCmekSettingsMethod = - getUpdateCmekSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmekSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CmekSettings.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateCmekSettings")) - .build(); + if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) == null) { + ConfigServiceV2Grpc.getUpdateCmekSettingsMethod = getUpdateCmekSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateCmekSettings")) + .build(); } } } return getUpdateCmekSettingsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> - getGetSettingsMethod; + private static volatile io.grpc.MethodDescriptor getGetSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSettings", requestType = com.google.logging.v2.GetSettingsRequest.class, responseType = com.google.logging.v2.Settings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> - getGetSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> - getGetSettingsMethod; + public static io.grpc.MethodDescriptor getGetSettingsMethod() { + io.grpc.MethodDescriptor getGetSettingsMethod; if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { - ConfigServiceV2Grpc.getGetSettingsMethod = - getGetSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Settings.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("GetSettings")) - .build(); + ConfigServiceV2Grpc.getGetSettingsMethod = getGetSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSettings")) + .build(); } } } return getGetSettingsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> - getUpdateSettingsMethod; + private static volatile io.grpc.MethodDescriptor getUpdateSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSettings", requestType = com.google.logging.v2.UpdateSettingsRequest.class, responseType = com.google.logging.v2.Settings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> - getUpdateSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> - getUpdateSettingsMethod; + public static io.grpc.MethodDescriptor getUpdateSettingsMethod() { + io.grpc.MethodDescriptor getUpdateSettingsMethod; if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { - ConfigServiceV2Grpc.getUpdateSettingsMethod = - getUpdateSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Settings.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("UpdateSettings")) - .build(); + ConfigServiceV2Grpc.getUpdateSettingsMethod = getUpdateSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateSettings")) + .build(); } } } return getUpdateSettingsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor getCopyLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CopyLogEntries", requestType = com.google.logging.v2.CopyLogEntriesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod; + public static io.grpc.MethodDescriptor getCopyLogEntriesMethod() { + io.grpc.MethodDescriptor getCopyLogEntriesMethod; if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { - ConfigServiceV2Grpc.getCopyLogEntriesMethod = - getCopyLogEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ConfigServiceV2MethodDescriptorSupplier("CopyLogEntries")) - .build(); + ConfigServiceV2Grpc.getCopyLogEntriesMethod = getCopyLogEntriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CopyLogEntries")) + .build(); } } } return getCopyLogEntriesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static ConfigServiceV2Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2Stub(channel, callOptions); + } + }; return ConfigServiceV2Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConfigServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { + public static ConfigServiceV2BlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2BlockingStub(channel, callOptions); + } + }; return ConfigServiceV2BlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConfigServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConfigServiceV2FutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2FutureStub(channel, callOptions); + } + }; return ConfigServiceV2FutureStub.newStub(factory, channel); } /** - * - * *
    * Service for configuring sinks used to route log entries.
    * 
@@ -1393,50 +1062,37 @@ public ConfigServiceV2FutureStub newStub( public interface AsyncService { /** - * - * *
      * Lists log buckets.
      * 
*/ - default void listBuckets( - com.google.logging.v2.ListBucketsRequest request, + default void listBuckets(com.google.logging.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBucketsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); } /** - * - * *
      * Gets a log bucket.
      * 
*/ - default void getBucket( - com.google.logging.v2.GetBucketRequest request, + default void getBucket(com.google.logging.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); } /** - * - * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void createBucketAsync( - com.google.logging.v2.CreateBucketRequest request, + default void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBucketAsyncMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketAsyncMethod(), responseObserver); } /** - * - * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1444,31 +1100,23 @@ default void createBucketAsync(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void updateBucketAsync( - com.google.logging.v2.UpdateBucketRequest request, + default void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBucketAsyncMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketAsyncMethod(), responseObserver); } /** - * - * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - default void createBucket( - com.google.logging.v2.CreateBucketRequest request, + default void createBucket(com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); } /** - * - * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1476,16 +1124,12 @@ default void createBucket(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void updateBucket( - com.google.logging.v2.UpdateBucketRequest request, + default void updateBucket(com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); } /** - * - * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -1493,71 +1137,54 @@ default void updateBucket(
      * will be permanently deleted.
      * 
*/ - default void deleteBucket( - com.google.logging.v2.DeleteBucketRequest request, + default void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBucketMethod(), responseObserver); } /** - * - * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - default void undeleteBucket( - com.google.logging.v2.UndeleteBucketRequest request, + default void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteBucketMethod(), responseObserver); } /** - * - * *
      * Lists views on a log bucket.
      * 
*/ - default void listViews( - com.google.logging.v2.ListViewsRequest request, + default void listViews(com.google.logging.v2.ListViewsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListViewsMethod(), responseObserver); } /** - * - * *
      * Gets a view on a log bucket..
      * 
*/ - default void getView( - com.google.logging.v2.GetViewRequest request, + default void getView(com.google.logging.v2.GetViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetViewMethod(), responseObserver); } /** - * - * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - default void createView( - com.google.logging.v2.CreateViewRequest request, + default void createView(com.google.logging.v2.CreateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateViewMethod(), responseObserver); } /** - * - * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -1566,15 +1193,12 @@ default void createView(
      * few minutes.
      * 
*/ - default void updateView( - com.google.logging.v2.UpdateViewRequest request, + default void updateView(com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateViewMethod(), responseObserver); } /** - * - * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -1582,41 +1206,32 @@ default void updateView(
      * few minutes.
      * 
*/ - default void deleteView( - com.google.logging.v2.DeleteViewRequest request, + default void deleteView(com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteViewMethod(), responseObserver); } /** - * - * *
      * Lists sinks.
      * 
*/ - default void listSinks( - com.google.logging.v2.ListSinksRequest request, + default void listSinks(com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSinksMethod(), responseObserver); } /** - * - * *
      * Gets a sink.
      * 
*/ - default void getSink( - com.google.logging.v2.GetSinkRequest request, + default void getSink(com.google.logging.v2.GetSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSinkMethod(), responseObserver); } /** - * - * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -1624,15 +1239,12 @@ default void getSink(
      * export log entries only from the resource owning the sink.
      * 
*/ - default void createSink( - com.google.logging.v2.CreateSinkRequest request, + default void createSink(com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSinkMethod(), responseObserver); } /** - * - * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -1640,158 +1252,119 @@ default void createSink(
      * `unique_writer_identity` field.
      * 
*/ - default void updateSink( - com.google.logging.v2.UpdateSinkRequest request, + default void updateSink(com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSinkMethod(), responseObserver); } /** - * - * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
      * 
*/ - default void deleteSink( - com.google.logging.v2.DeleteSinkRequest request, + default void deleteSink(com.google.logging.v2.DeleteSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), responseObserver); } /** - * - * *
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - default void createLink( - com.google.logging.v2.CreateLinkRequest request, + default void createLink(com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLinkMethod(), responseObserver); } /** - * - * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - default void deleteLink( - com.google.logging.v2.DeleteLinkRequest request, + default void deleteLink(com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLinkMethod(), responseObserver); } /** - * - * *
      * Lists links.
      * 
*/ - default void listLinks( - com.google.logging.v2.ListLinksRequest request, + default void listLinks(com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinksMethod(), responseObserver); } /** - * - * *
      * Gets a link.
      * 
*/ - default void getLink( - com.google.logging.v2.GetLinkRequest request, + default void getLink(com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLinkMethod(), responseObserver); } /** - * - * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - default void listExclusions( - com.google.logging.v2.ListExclusionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListExclusionsMethod(), responseObserver); + default void listExclusions(com.google.logging.v2.ListExclusionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExclusionsMethod(), responseObserver); } /** - * - * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - default void getExclusion( - com.google.logging.v2.GetExclusionRequest request, + default void getExclusion(com.google.logging.v2.GetExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExclusionMethod(), responseObserver); } /** - * - * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - default void createExclusion( - com.google.logging.v2.CreateExclusionRequest request, + default void createExclusion(com.google.logging.v2.CreateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExclusionMethod(), responseObserver); } /** - * - * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - default void updateExclusion( - com.google.logging.v2.UpdateExclusionRequest request, + default void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExclusionMethod(), responseObserver); } /** - * - * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - default void deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request, + default void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExclusionMethod(), responseObserver); } /** - * - * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -1803,16 +1376,12 @@ default void deleteExclusion(
      * for more information.
      * 
*/ - default void getCmekSettings( - com.google.logging.v2.GetCmekSettingsRequest request, + default void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCmekSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCmekSettingsMethod(), responseObserver); } /** - * - * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -1828,16 +1397,12 @@ default void getCmekSettings(
      * for more information.
      * 
*/ - default void updateCmekSettings( - com.google.logging.v2.UpdateCmekSettingsRequest request, + default void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCmekSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCmekSettingsMethod(), responseObserver); } /** - * - * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -1849,16 +1414,12 @@ default void updateCmekSettings(
      * for more information.
      * 
*/ - default void getSettings( - com.google.logging.v2.GetSettingsRequest request, + default void getSettings(com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSettingsMethod(), responseObserver); } /** - * - * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -1875,112 +1436,90 @@ default void getSettings(
      * for more information.
      * 
*/ - default void updateSettings( - com.google.logging.v2.UpdateSettingsRequest request, + default void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSettingsMethod(), responseObserver); } /** - * - * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - default void copyLogEntries( - com.google.logging.v2.CopyLogEntriesRequest request, + default void copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCopyLogEntriesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyLogEntriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service ConfigServiceV2. - * *
    * Service for configuring sinks used to route log entries.
    * 
*/ - public abstract static class ConfigServiceV2ImplBase + public static abstract class ConfigServiceV2ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ConfigServiceV2Grpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConfigServiceV2. - * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2Stub extends io.grpc.stub.AbstractAsyncStub { - private ConfigServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ConfigServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ConfigServiceV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigServiceV2Stub(channel, callOptions); } /** - * - * *
      * Lists log buckets.
      * 
*/ - public void listBuckets( - com.google.logging.v2.ListBucketsRequest request, + public void listBuckets(com.google.logging.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBucketsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBucketsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a log bucket.
      * 
*/ - public void getBucket( - com.google.logging.v2.GetBucketRequest request, + public void getBucket(com.google.logging.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void createBucketAsync( - com.google.logging.v2.CreateBucketRequest request, + public void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1988,35 +1527,25 @@ public void createBucketAsync(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void updateBucketAsync( - com.google.logging.v2.UpdateBucketRequest request, + public void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public void createBucket( - com.google.logging.v2.CreateBucketRequest request, + public void createBucket(com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -2024,18 +1553,13 @@ public void createBucket(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void updateBucket( - com.google.logging.v2.UpdateBucketRequest request, + public void updateBucket(com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -2043,78 +1567,59 @@ public void updateBucket(
      * will be permanently deleted.
      * 
*/ - public void deleteBucket( - com.google.logging.v2.DeleteBucketRequest request, + public void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public void undeleteBucket( - com.google.logging.v2.UndeleteBucketRequest request, + public void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists views on a log bucket.
      * 
*/ - public void listViews( - com.google.logging.v2.ListViewsRequest request, + public void listViews(com.google.logging.v2.ListViewsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListViewsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a view on a log bucket..
      * 
*/ - public void getView( - com.google.logging.v2.GetViewRequest request, + public void getView(com.google.logging.v2.GetViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetViewMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public void createView( - com.google.logging.v2.CreateViewRequest request, + public void createView(com.google.logging.v2.CreateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateViewMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -2123,16 +1628,13 @@ public void createView(
      * few minutes.
      * 
*/ - public void updateView( - com.google.logging.v2.UpdateViewRequest request, + public void updateView(com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateViewMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -2140,44 +1642,35 @@ public void updateView(
      * few minutes.
      * 
*/ - public void deleteView( - com.google.logging.v2.DeleteViewRequest request, + public void deleteView(com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteViewMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists sinks.
      * 
*/ - public void listSinks( - com.google.logging.v2.ListSinksRequest request, + public void listSinks(com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSinksMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a sink.
      * 
*/ - public void getSink( - com.google.logging.v2.GetSinkRequest request, + public void getSink(com.google.logging.v2.GetSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -2185,16 +1678,13 @@ public void getSink(
      * export log entries only from the resource owning the sink.
      * 
*/ - public void createSink( - com.google.logging.v2.CreateSinkRequest request, + public void createSink(com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -2202,174 +1692,130 @@ public void createSink(
      * `unique_writer_identity` field.
      * 
*/ - public void updateSink( - com.google.logging.v2.UpdateSinkRequest request, + public void updateSink(com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
      * 
*/ - public void deleteSink( - com.google.logging.v2.DeleteSinkRequest request, + public void deleteSink(com.google.logging.v2.DeleteSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public void createLink( - com.google.logging.v2.CreateLinkRequest request, + public void createLink(com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public void deleteLink( - com.google.logging.v2.DeleteLinkRequest request, + public void deleteLink(com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists links.
      * 
*/ - public void listLinks( - com.google.logging.v2.ListLinksRequest request, + public void listLinks(com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListLinksMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a link.
      * 
*/ - public void getLink( - com.google.logging.v2.GetLinkRequest request, + public void getLink(com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLinkMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - public void listExclusions( - com.google.logging.v2.ListExclusionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listExclusions(com.google.logging.v2.ListExclusionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExclusionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListExclusionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public void getExclusion( - com.google.logging.v2.GetExclusionRequest request, + public void getExclusion(com.google.logging.v2.GetExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExclusionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetExclusionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public void createExclusion( - com.google.logging.v2.CreateExclusionRequest request, + public void createExclusion(com.google.logging.v2.CreateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public void updateExclusion( - com.google.logging.v2.UpdateExclusionRequest request, + public void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public void deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request, + public void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -2381,18 +1827,13 @@ public void deleteExclusion(
      * for more information.
      * 
*/ - public void getCmekSettings( - com.google.logging.v2.GetCmekSettingsRequest request, + public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -2408,18 +1849,13 @@ public void getCmekSettings(
      * for more information.
      * 
*/ - public void updateCmekSettings( - com.google.logging.v2.UpdateCmekSettingsRequest request, + public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -2431,18 +1867,13 @@ public void updateCmekSettings(
      * for more information.
      * 
*/ - public void getSettings( - com.google.logging.v2.GetSettingsRequest request, + public void getSettings(com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSettingsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetSettingsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -2459,42 +1890,34 @@ public void getSettings(
      * for more information.
      * 
*/ - public void updateSettings( - com.google.logging.v2.UpdateSettingsRequest request, + public void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public void copyLogEntries( - com.google.logging.v2.CopyLogEntriesRequest request, + public void copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ConfigServiceV2. - * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ConfigServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2505,48 +1928,37 @@ protected ConfigServiceV2BlockingStub build( } /** - * - * *
      * Lists log buckets.
      * 
*/ - public com.google.logging.v2.ListBucketsResponse listBuckets( - com.google.logging.v2.ListBucketsRequest request) { + public com.google.logging.v2.ListBucketsResponse listBuckets(com.google.logging.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBucketsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a log bucket.
      * 
*/ - public com.google.logging.v2.LogBucket getBucket( - com.google.logging.v2.GetBucketRequest request) { + public com.google.logging.v2.LogBucket getBucket(com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.longrunning.Operation createBucketAsync( - com.google.logging.v2.CreateBucketRequest request) { + public com.google.longrunning.Operation createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketAsyncMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -2554,29 +1966,23 @@ public com.google.longrunning.Operation createBucketAsync(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.longrunning.Operation updateBucketAsync( - com.google.logging.v2.UpdateBucketRequest request) { + public com.google.longrunning.Operation updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketAsyncMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.logging.v2.LogBucket createBucket( - com.google.logging.v2.CreateBucketRequest request) { + public com.google.logging.v2.LogBucket createBucket(com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -2584,15 +1990,12 @@ public com.google.logging.v2.LogBucket createBucket(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.logging.v2.LogBucket updateBucket( - com.google.logging.v2.UpdateBucketRequest request) { + public com.google.logging.v2.LogBucket updateBucket(com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -2600,42 +2003,33 @@ public com.google.logging.v2.LogBucket updateBucket(
      * will be permanently deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBucket( - com.google.logging.v2.DeleteBucketRequest request) { + public com.google.protobuf.Empty deleteBucket(com.google.logging.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public com.google.protobuf.Empty undeleteBucket( - com.google.logging.v2.UndeleteBucketRequest request) { + public com.google.protobuf.Empty undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUndeleteBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Lists views on a log bucket.
      * 
*/ - public com.google.logging.v2.ListViewsResponse listViews( - com.google.logging.v2.ListViewsRequest request) { + public com.google.logging.v2.ListViewsResponse listViews(com.google.logging.v2.ListViewsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListViewsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a view on a log bucket..
      * 
@@ -2646,22 +2040,17 @@ public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewReques } /** - * - * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public com.google.logging.v2.LogView createView( - com.google.logging.v2.CreateViewRequest request) { + public com.google.logging.v2.LogView createView(com.google.logging.v2.CreateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateViewMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -2670,15 +2059,12 @@ public com.google.logging.v2.LogView createView(
      * few minutes.
      * 
*/ - public com.google.logging.v2.LogView updateView( - com.google.logging.v2.UpdateViewRequest request) { + public com.google.logging.v2.LogView updateView(com.google.logging.v2.UpdateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateViewMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -2692,21 +2078,16 @@ public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequ
     }
 
     /**
-     *
-     *
      * 
      * Lists sinks.
      * 
*/ - public com.google.logging.v2.ListSinksResponse listSinks( - com.google.logging.v2.ListSinksRequest request) { + public com.google.logging.v2.ListSinksResponse listSinks(com.google.logging.v2.ListSinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSinksMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a sink.
      * 
@@ -2717,8 +2098,6 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques } /** - * - * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -2726,15 +2105,12 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques
      * export log entries only from the resource owning the sink.
      * 
*/ - public com.google.logging.v2.LogSink createSink( - com.google.logging.v2.CreateSinkRequest request) { + public com.google.logging.v2.LogSink createSink(com.google.logging.v2.CreateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSinkMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -2742,15 +2118,12 @@ public com.google.logging.v2.LogSink createSink(
      * `unique_writer_identity` field.
      * 
*/ - public com.google.logging.v2.LogSink updateSink( - com.google.logging.v2.UpdateSinkRequest request) { + public com.google.logging.v2.LogSink updateSink(com.google.logging.v2.UpdateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSinkMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
@@ -2762,50 +2135,39 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ
     }
 
     /**
-     *
-     *
      * 
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public com.google.longrunning.Operation createLink( - com.google.logging.v2.CreateLinkRequest request) { + public com.google.longrunning.Operation createLink(com.google.logging.v2.CreateLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateLinkMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public com.google.longrunning.Operation deleteLink( - com.google.logging.v2.DeleteLinkRequest request) { + public com.google.longrunning.Operation deleteLink(com.google.logging.v2.DeleteLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLinkMethod(), getCallOptions(), request); } /** - * - * *
      * Lists links.
      * 
*/ - public com.google.logging.v2.ListLinksResponse listLinks( - com.google.logging.v2.ListLinksRequest request) { + public com.google.logging.v2.ListLinksResponse listLinks(com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLinksMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a link.
      * 
@@ -2816,76 +2178,59 @@ public com.google.logging.v2.Link getLink(com.google.logging.v2.GetLinkRequest r } /** - * - * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - public com.google.logging.v2.ListExclusionsResponse listExclusions( - com.google.logging.v2.ListExclusionsRequest request) { + public com.google.logging.v2.ListExclusionsResponse listExclusions(com.google.logging.v2.ListExclusionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListExclusionsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public com.google.logging.v2.LogExclusion getExclusion( - com.google.logging.v2.GetExclusionRequest request) { + public com.google.logging.v2.LogExclusion getExclusion(com.google.logging.v2.GetExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetExclusionMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public com.google.logging.v2.LogExclusion createExclusion( - com.google.logging.v2.CreateExclusionRequest request) { + public com.google.logging.v2.LogExclusion createExclusion(com.google.logging.v2.CreateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateExclusionMethod(), getCallOptions(), request); } /** - * - * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public com.google.logging.v2.LogExclusion updateExclusion( - com.google.logging.v2.UpdateExclusionRequest request) { + public com.google.logging.v2.LogExclusion updateExclusion(com.google.logging.v2.UpdateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateExclusionMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public com.google.protobuf.Empty deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request) { + public com.google.protobuf.Empty deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteExclusionMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -2897,15 +2242,12 @@ public com.google.protobuf.Empty deleteExclusion(
      * for more information.
      * 
*/ - public com.google.logging.v2.CmekSettings getCmekSettings( - com.google.logging.v2.GetCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCmekSettingsMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -2921,15 +2263,12 @@ public com.google.logging.v2.CmekSettings getCmekSettings(
      * for more information.
      * 
*/ - public com.google.logging.v2.CmekSettings updateCmekSettings( - com.google.logging.v2.UpdateCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCmekSettingsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -2941,15 +2280,12 @@ public com.google.logging.v2.CmekSettings updateCmekSettings(
      * for more information.
      * 
*/ - public com.google.logging.v2.Settings getSettings( - com.google.logging.v2.GetSettingsRequest request) { + public com.google.logging.v2.Settings getSettings(com.google.logging.v2.GetSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -2966,21 +2302,17 @@ public com.google.logging.v2.Settings getSettings(
      * for more information.
      * 
*/ - public com.google.logging.v2.Settings updateSettings( - com.google.logging.v2.UpdateSettingsRequest request) { + public com.google.logging.v2.Settings updateSettings(com.google.logging.v2.UpdateSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } /** - * - * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public com.google.longrunning.Operation copyLogEntries( - com.google.logging.v2.CopyLogEntriesRequest request) { + public com.google.longrunning.Operation copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCopyLogEntriesMethod(), getCallOptions(), request); } @@ -2988,14 +2320,14 @@ public com.google.longrunning.Operation copyLogEntries( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfigServiceV2. - * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2FutureStub extends io.grpc.stub.AbstractFutureStub { - private ConfigServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -3006,49 +2338,40 @@ protected ConfigServiceV2FutureStub build( } /** - * - * *
      * Lists log buckets.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListBucketsResponse> - listBuckets(com.google.logging.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBuckets( + com.google.logging.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBucketsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a log bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getBucket(com.google.logging.v2.GetBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBucket( + com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBucketAsync( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -3056,29 +2379,25 @@ protected ConfigServiceV2FutureStub build(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createBucket(com.google.logging.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBucket( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -3086,15 +2405,13 @@ protected ConfigServiceV2FutureStub build(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateBucket(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBucket( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -3102,70 +2419,59 @@ protected ConfigServiceV2FutureStub build(
      * will be permanently deleted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBucket(com.google.logging.v2.DeleteBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBucket( + com.google.logging.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Lists views on a log bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListViewsResponse> - listViews(com.google.logging.v2.ListViewsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listViews( + com.google.logging.v2.ListViewsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListViewsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a view on a log bucket..
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getView(com.google.logging.v2.GetViewRequest request) { + public com.google.common.util.concurrent.ListenableFuture getView( + com.google.logging.v2.GetViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetViewMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createView(com.google.logging.v2.CreateViewRequest request) { + public com.google.common.util.concurrent.ListenableFuture createView( + com.google.logging.v2.CreateViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateViewMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -3174,15 +2480,13 @@ protected ConfigServiceV2FutureStub build(
      * few minutes.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateView(com.google.logging.v2.UpdateViewRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateView( + com.google.logging.v2.UpdateViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateViewMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -3197,35 +2501,28 @@ public com.google.common.util.concurrent.ListenableFuture
      * Lists sinks.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListSinksResponse> - listSinks(com.google.logging.v2.ListSinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture listSinks( + com.google.logging.v2.ListSinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSinksMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getSink(com.google.logging.v2.GetSinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture getSink( + com.google.logging.v2.GetSinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSinkMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -3233,15 +2530,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        createSink(com.google.logging.v2.CreateSinkRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture createSink(
+        com.google.logging.v2.CreateSinkRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateSinkMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -3249,15 +2544,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        updateSink(com.google.logging.v2.UpdateSinkRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture updateSink(
+        com.google.logging.v2.UpdateSinkRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateSinkMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
@@ -3270,51 +2563,42 @@ public com.google.common.util.concurrent.ListenableFuture
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createLink(com.google.logging.v2.CreateLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture createLink( + com.google.logging.v2.CreateLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteLink(com.google.logging.v2.DeleteLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteLink( + com.google.logging.v2.DeleteLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request); } /** - * - * *
      * Lists links.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListLinksResponse> - listLinks(com.google.logging.v2.ListLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLinks( + com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLinksMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a link.
      * 
@@ -3326,77 +2610,64 @@ public com.google.common.util.concurrent.ListenableFuture * Lists all the exclusions on the _Default sink in a parent resource. *
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListExclusionsResponse> - listExclusions(com.google.logging.v2.ListExclusionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listExclusions( + com.google.logging.v2.ListExclusionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListExclusionsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getExclusion(com.google.logging.v2.GetExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture getExclusion( + com.google.logging.v2.GetExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetExclusionMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createExclusion(com.google.logging.v2.CreateExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createExclusion( + com.google.logging.v2.CreateExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), request); } /** - * - * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateExclusion(com.google.logging.v2.UpdateExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -3408,15 +2679,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture getCmekSettings(
+        com.google.logging.v2.GetCmekSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -3432,15 +2701,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture updateCmekSettings(
+        com.google.logging.v2.UpdateCmekSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -3452,15 +2719,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        getSettings(com.google.logging.v2.GetSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture getSettings(
+        com.google.logging.v2.GetSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetSettingsMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -3477,21 +2742,19 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        updateSettings(com.google.logging.v2.UpdateSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture updateSettings(
+        com.google.logging.v2.UpdateSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { + public com.google.common.util.concurrent.ListenableFuture copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request); } @@ -3530,11 +2793,11 @@ public com.google.common.util.concurrent.ListenableFuture - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -3548,168 +2811,131 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_BUCKETS: - serviceImpl.listBuckets( - (com.google.logging.v2.ListBucketsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listBuckets((com.google.logging.v2.ListBucketsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUCKET: - serviceImpl.getBucket( - (com.google.logging.v2.GetBucketRequest) request, + serviceImpl.getBucket((com.google.logging.v2.GetBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET_ASYNC: - serviceImpl.createBucketAsync( - (com.google.logging.v2.CreateBucketRequest) request, + serviceImpl.createBucketAsync((com.google.logging.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET_ASYNC: - serviceImpl.updateBucketAsync( - (com.google.logging.v2.UpdateBucketRequest) request, + serviceImpl.updateBucketAsync((com.google.logging.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET: - serviceImpl.createBucket( - (com.google.logging.v2.CreateBucketRequest) request, + serviceImpl.createBucket((com.google.logging.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET: - serviceImpl.updateBucket( - (com.google.logging.v2.UpdateBucketRequest) request, + serviceImpl.updateBucket((com.google.logging.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUCKET: - serviceImpl.deleteBucket( - (com.google.logging.v2.DeleteBucketRequest) request, + serviceImpl.deleteBucket((com.google.logging.v2.DeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNDELETE_BUCKET: - serviceImpl.undeleteBucket( - (com.google.logging.v2.UndeleteBucketRequest) request, + serviceImpl.undeleteBucket((com.google.logging.v2.UndeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_VIEWS: - serviceImpl.listViews( - (com.google.logging.v2.ListViewsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listViews((com.google.logging.v2.ListViewsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_VIEW: - serviceImpl.getView( - (com.google.logging.v2.GetViewRequest) request, + serviceImpl.getView((com.google.logging.v2.GetViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_VIEW: - serviceImpl.createView( - (com.google.logging.v2.CreateViewRequest) request, + serviceImpl.createView((com.google.logging.v2.CreateViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_VIEW: - serviceImpl.updateView( - (com.google.logging.v2.UpdateViewRequest) request, + serviceImpl.updateView((com.google.logging.v2.UpdateViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_VIEW: - serviceImpl.deleteView( - (com.google.logging.v2.DeleteViewRequest) request, + serviceImpl.deleteView((com.google.logging.v2.DeleteViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SINKS: - serviceImpl.listSinks( - (com.google.logging.v2.ListSinksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listSinks((com.google.logging.v2.ListSinksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SINK: - serviceImpl.getSink( - (com.google.logging.v2.GetSinkRequest) request, + serviceImpl.getSink((com.google.logging.v2.GetSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_SINK: - serviceImpl.createSink( - (com.google.logging.v2.CreateSinkRequest) request, + serviceImpl.createSink((com.google.logging.v2.CreateSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SINK: - serviceImpl.updateSink( - (com.google.logging.v2.UpdateSinkRequest) request, + serviceImpl.updateSink((com.google.logging.v2.UpdateSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SINK: - serviceImpl.deleteSink( - (com.google.logging.v2.DeleteSinkRequest) request, + serviceImpl.deleteSink((com.google.logging.v2.DeleteSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_LINK: - serviceImpl.createLink( - (com.google.logging.v2.CreateLinkRequest) request, + serviceImpl.createLink((com.google.logging.v2.CreateLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_LINK: - serviceImpl.deleteLink( - (com.google.logging.v2.DeleteLinkRequest) request, + serviceImpl.deleteLink((com.google.logging.v2.DeleteLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_LINKS: - serviceImpl.listLinks( - (com.google.logging.v2.ListLinksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLinks((com.google.logging.v2.ListLinksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LINK: - serviceImpl.getLink( - (com.google.logging.v2.GetLinkRequest) request, + serviceImpl.getLink((com.google.logging.v2.GetLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_EXCLUSIONS: - serviceImpl.listExclusions( - (com.google.logging.v2.ListExclusionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listExclusions((com.google.logging.v2.ListExclusionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_EXCLUSION: - serviceImpl.getExclusion( - (com.google.logging.v2.GetExclusionRequest) request, + serviceImpl.getExclusion((com.google.logging.v2.GetExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_EXCLUSION: - serviceImpl.createExclusion( - (com.google.logging.v2.CreateExclusionRequest) request, + serviceImpl.createExclusion((com.google.logging.v2.CreateExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_EXCLUSION: - serviceImpl.updateExclusion( - (com.google.logging.v2.UpdateExclusionRequest) request, + serviceImpl.updateExclusion((com.google.logging.v2.UpdateExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_EXCLUSION: - serviceImpl.deleteExclusion( - (com.google.logging.v2.DeleteExclusionRequest) request, + serviceImpl.deleteExclusion((com.google.logging.v2.DeleteExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CMEK_SETTINGS: - serviceImpl.getCmekSettings( - (com.google.logging.v2.GetCmekSettingsRequest) request, + serviceImpl.getCmekSettings((com.google.logging.v2.GetCmekSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CMEK_SETTINGS: - serviceImpl.updateCmekSettings( - (com.google.logging.v2.UpdateCmekSettingsRequest) request, + serviceImpl.updateCmekSettings((com.google.logging.v2.UpdateCmekSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SETTINGS: - serviceImpl.getSettings( - (com.google.logging.v2.GetSettingsRequest) request, + serviceImpl.getSettings((com.google.logging.v2.GetSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SETTINGS: - serviceImpl.updateSettings( - (com.google.logging.v2.UpdateSettingsRequest) request, + serviceImpl.updateSettings((com.google.logging.v2.UpdateSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COPY_LOG_ENTRIES: - serviceImpl.copyLogEntries( - (com.google.logging.v2.CopyLogEntriesRequest) request, + serviceImpl.copyLogEntries((com.google.logging.v2.CopyLogEntriesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -3731,204 +2957,234 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListBucketsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListBucketsRequest, - com.google.logging.v2.ListBucketsResponse>(service, METHODID_LIST_BUCKETS))) + getListBucketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListBucketsRequest, + com.google.logging.v2.ListBucketsResponse>( + service, METHODID_LIST_BUCKETS))) .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>( - service, METHODID_GET_BUCKET))) + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetBucketRequest, + com.google.logging.v2.LogBucket>( + service, METHODID_GET_BUCKET))) .addMethod( - getCreateBucketAsyncMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation>( - service, METHODID_CREATE_BUCKET_ASYNC))) + getCreateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_BUCKET_ASYNC))) .addMethod( - getUpdateBucketAsyncMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation>( - service, METHODID_UPDATE_BUCKET_ASYNC))) + getUpdateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_BUCKET_ASYNC))) .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket>( - service, METHODID_CREATE_BUCKET))) + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.LogBucket>( + service, METHODID_CREATE_BUCKET))) .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket>( - service, METHODID_UPDATE_BUCKET))) + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.LogBucket>( + service, METHODID_UPDATE_BUCKET))) .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_BUCKET))) + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteBucketRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUCKET))) .addMethod( - getUndeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty>( - service, METHODID_UNDELETE_BUCKET))) + getUndeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UndeleteBucketRequest, + com.google.protobuf.Empty>( + service, METHODID_UNDELETE_BUCKET))) .addMethod( - getListViewsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListViewsRequest, - com.google.logging.v2.ListViewsResponse>(service, METHODID_LIST_VIEWS))) + getListViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListViewsRequest, + com.google.logging.v2.ListViewsResponse>( + service, METHODID_LIST_VIEWS))) .addMethod( - getGetViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView>( - service, METHODID_GET_VIEW))) + getGetViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetViewRequest, + com.google.logging.v2.LogView>( + service, METHODID_GET_VIEW))) .addMethod( - getCreateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView>( - service, METHODID_CREATE_VIEW))) + getCreateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateViewRequest, + com.google.logging.v2.LogView>( + service, METHODID_CREATE_VIEW))) .addMethod( - getUpdateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView>( - service, METHODID_UPDATE_VIEW))) + getUpdateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateViewRequest, + com.google.logging.v2.LogView>( + service, METHODID_UPDATE_VIEW))) .addMethod( - getDeleteViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_VIEW))) + getDeleteViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteViewRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_VIEW))) .addMethod( - getListSinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListSinksRequest, - com.google.logging.v2.ListSinksResponse>(service, METHODID_LIST_SINKS))) + getListSinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListSinksRequest, + com.google.logging.v2.ListSinksResponse>( + service, METHODID_LIST_SINKS))) .addMethod( - getGetSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink>( - service, METHODID_GET_SINK))) + getGetSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSinkRequest, + com.google.logging.v2.LogSink>( + service, METHODID_GET_SINK))) .addMethod( - getCreateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink>( - service, METHODID_CREATE_SINK))) + getCreateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateSinkRequest, + com.google.logging.v2.LogSink>( + service, METHODID_CREATE_SINK))) .addMethod( - getUpdateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink>( - service, METHODID_UPDATE_SINK))) + getUpdateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSinkRequest, + com.google.logging.v2.LogSink>( + service, METHODID_UPDATE_SINK))) .addMethod( - getDeleteSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_SINK))) + getDeleteSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteSinkRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SINK))) .addMethod( - getCreateLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation>( - service, METHODID_CREATE_LINK))) + getCreateLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLinkRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_LINK))) .addMethod( - getDeleteLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation>( - service, METHODID_DELETE_LINK))) + getDeleteLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLinkRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_LINK))) .addMethod( - getListLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLinksRequest, - com.google.logging.v2.ListLinksResponse>(service, METHODID_LIST_LINKS))) + getListLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLinksRequest, + com.google.logging.v2.ListLinksResponse>( + service, METHODID_LIST_LINKS))) .addMethod( - getGetLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link>( - service, METHODID_GET_LINK))) + getGetLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLinkRequest, + com.google.logging.v2.Link>( + service, METHODID_GET_LINK))) .addMethod( - getListExclusionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListExclusionsRequest, - com.google.logging.v2.ListExclusionsResponse>( - service, METHODID_LIST_EXCLUSIONS))) + getListExclusionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListExclusionsRequest, + com.google.logging.v2.ListExclusionsResponse>( + service, METHODID_LIST_EXCLUSIONS))) .addMethod( - getGetExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion>( - service, METHODID_GET_EXCLUSION))) + getGetExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetExclusionRequest, + com.google.logging.v2.LogExclusion>( + service, METHODID_GET_EXCLUSION))) .addMethod( - getCreateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateExclusionRequest, - com.google.logging.v2.LogExclusion>(service, METHODID_CREATE_EXCLUSION))) + getCreateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateExclusionRequest, + com.google.logging.v2.LogExclusion>( + service, METHODID_CREATE_EXCLUSION))) .addMethod( - getUpdateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateExclusionRequest, - com.google.logging.v2.LogExclusion>(service, METHODID_UPDATE_EXCLUSION))) + getUpdateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateExclusionRequest, + com.google.logging.v2.LogExclusion>( + service, METHODID_UPDATE_EXCLUSION))) .addMethod( - getDeleteExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_EXCLUSION))) + getDeleteExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteExclusionRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_EXCLUSION))) .addMethod( - getGetCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetCmekSettingsRequest, - com.google.logging.v2.CmekSettings>(service, METHODID_GET_CMEK_SETTINGS))) + getGetCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetCmekSettingsRequest, + com.google.logging.v2.CmekSettings>( + service, METHODID_GET_CMEK_SETTINGS))) .addMethod( - getUpdateCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateCmekSettingsRequest, - com.google.logging.v2.CmekSettings>(service, METHODID_UPDATE_CMEK_SETTINGS))) + getUpdateCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateCmekSettingsRequest, + com.google.logging.v2.CmekSettings>( + service, METHODID_UPDATE_CMEK_SETTINGS))) .addMethod( - getGetSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings>( - service, METHODID_GET_SETTINGS))) + getGetSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSettingsRequest, + com.google.logging.v2.Settings>( + service, METHODID_GET_SETTINGS))) .addMethod( - getUpdateSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings>( - service, METHODID_UPDATE_SETTINGS))) + getUpdateSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSettingsRequest, + com.google.logging.v2.Settings>( + service, METHODID_UPDATE_SETTINGS))) .addMethod( - getCopyLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation>( - service, METHODID_COPY_LOG_ENTRIES))) + getCopyLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.longrunning.Operation>( + service, METHODID_COPY_LOG_ENTRIES))) .build(); } - private abstract static class ConfigServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ConfigServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConfigServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -3970,43 +3226,41 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConfigServiceV2Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) - .addMethod(getListBucketsMethod()) - .addMethod(getGetBucketMethod()) - .addMethod(getCreateBucketAsyncMethod()) - .addMethod(getUpdateBucketAsyncMethod()) - .addMethod(getCreateBucketMethod()) - .addMethod(getUpdateBucketMethod()) - .addMethod(getDeleteBucketMethod()) - .addMethod(getUndeleteBucketMethod()) - .addMethod(getListViewsMethod()) - .addMethod(getGetViewMethod()) - .addMethod(getCreateViewMethod()) - .addMethod(getUpdateViewMethod()) - .addMethod(getDeleteViewMethod()) - .addMethod(getListSinksMethod()) - .addMethod(getGetSinkMethod()) - .addMethod(getCreateSinkMethod()) - .addMethod(getUpdateSinkMethod()) - .addMethod(getDeleteSinkMethod()) - .addMethod(getCreateLinkMethod()) - .addMethod(getDeleteLinkMethod()) - .addMethod(getListLinksMethod()) - .addMethod(getGetLinkMethod()) - .addMethod(getListExclusionsMethod()) - .addMethod(getGetExclusionMethod()) - .addMethod(getCreateExclusionMethod()) - .addMethod(getUpdateExclusionMethod()) - .addMethod(getDeleteExclusionMethod()) - .addMethod(getGetCmekSettingsMethod()) - .addMethod(getUpdateCmekSettingsMethod()) - .addMethod(getGetSettingsMethod()) - .addMethod(getUpdateSettingsMethod()) - .addMethod(getCopyLogEntriesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) + .addMethod(getListBucketsMethod()) + .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketAsyncMethod()) + .addMethod(getUpdateBucketAsyncMethod()) + .addMethod(getCreateBucketMethod()) + .addMethod(getUpdateBucketMethod()) + .addMethod(getDeleteBucketMethod()) + .addMethod(getUndeleteBucketMethod()) + .addMethod(getListViewsMethod()) + .addMethod(getGetViewMethod()) + .addMethod(getCreateViewMethod()) + .addMethod(getUpdateViewMethod()) + .addMethod(getDeleteViewMethod()) + .addMethod(getListSinksMethod()) + .addMethod(getGetSinkMethod()) + .addMethod(getCreateSinkMethod()) + .addMethod(getUpdateSinkMethod()) + .addMethod(getDeleteSinkMethod()) + .addMethod(getCreateLinkMethod()) + .addMethod(getDeleteLinkMethod()) + .addMethod(getListLinksMethod()) + .addMethod(getGetLinkMethod()) + .addMethod(getListExclusionsMethod()) + .addMethod(getGetExclusionMethod()) + .addMethod(getCreateExclusionMethod()) + .addMethod(getUpdateExclusionMethod()) + .addMethod(getDeleteExclusionMethod()) + .addMethod(getGetCmekSettingsMethod()) + .addMethod(getUpdateCmekSettingsMethod()) + .addMethod(getGetSettingsMethod()) + .addMethod(getUpdateSettingsMethod()) + .addMethod(getCopyLogEntriesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java similarity index 50% rename from grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java rename to owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java index b3ff536ee..0355029b0 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for ingesting and querying logs.
  * 
@@ -35,315 +18,237 @@ private LoggingServiceV2Grpc() {} public static final java.lang.String SERVICE_NAME = "google.logging.v2.LoggingServiceV2"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> - getDeleteLogMethod; + private static volatile io.grpc.MethodDescriptor getDeleteLogMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteLog", requestType = com.google.logging.v2.DeleteLogRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> - getDeleteLogMethod() { - io.grpc.MethodDescriptor - getDeleteLogMethod; + public static io.grpc.MethodDescriptor getDeleteLogMethod() { + io.grpc.MethodDescriptor getDeleteLogMethod; if ((getDeleteLogMethod = LoggingServiceV2Grpc.getDeleteLogMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getDeleteLogMethod = LoggingServiceV2Grpc.getDeleteLogMethod) == null) { - LoggingServiceV2Grpc.getDeleteLogMethod = - getDeleteLogMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLog")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLogRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new LoggingServiceV2MethodDescriptorSupplier("DeleteLog")) - .build(); + LoggingServiceV2Grpc.getDeleteLogMethod = getDeleteLogMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLogRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("DeleteLog")) + .build(); } } } return getDeleteLogMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse> - getWriteLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor getWriteLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "WriteLogEntries", requestType = com.google.logging.v2.WriteLogEntriesRequest.class, responseType = com.google.logging.v2.WriteLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse> - getWriteLogEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse> - getWriteLogEntriesMethod; + public static io.grpc.MethodDescriptor getWriteLogEntriesMethod() { + io.grpc.MethodDescriptor getWriteLogEntriesMethod; if ((getWriteLogEntriesMethod = LoggingServiceV2Grpc.getWriteLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getWriteLogEntriesMethod = LoggingServiceV2Grpc.getWriteLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getWriteLogEntriesMethod = - getWriteLogEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.WriteLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.WriteLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new LoggingServiceV2MethodDescriptorSupplier("WriteLogEntries")) - .build(); + LoggingServiceV2Grpc.getWriteLogEntriesMethod = getWriteLogEntriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.WriteLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.WriteLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("WriteLogEntries")) + .build(); } } } return getWriteLogEntriesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogEntriesRequest, com.google.logging.v2.ListLogEntriesResponse> - getListLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor getListLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLogEntries", requestType = com.google.logging.v2.ListLogEntriesRequest.class, responseType = com.google.logging.v2.ListLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogEntriesRequest, com.google.logging.v2.ListLogEntriesResponse> - getListLogEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogEntriesRequest, - com.google.logging.v2.ListLogEntriesResponse> - getListLogEntriesMethod; + public static io.grpc.MethodDescriptor getListLogEntriesMethod() { + io.grpc.MethodDescriptor getListLogEntriesMethod; if ((getListLogEntriesMethod = LoggingServiceV2Grpc.getListLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getListLogEntriesMethod = LoggingServiceV2Grpc.getListLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getListLogEntriesMethod = - getListLogEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new LoggingServiceV2MethodDescriptorSupplier("ListLogEntries")) - .build(); + LoggingServiceV2Grpc.getListLogEntriesMethod = getListLogEntriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogEntries")) + .build(); } } } return getListLogEntriesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod; + private static volatile io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", requestType = com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, responseType = com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod; - if ((getListMonitoredResourceDescriptorsMethod = - LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) - == null) { + public static io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod() { + io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; + if ((getListMonitoredResourceDescriptorsMethod = LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { - if ((getListMonitoredResourceDescriptorsMethod = - LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) - == null) { - LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod = - getListMonitoredResourceDescriptorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new LoggingServiceV2MethodDescriptorSupplier( - "ListMonitoredResourceDescriptors")) - .build(); + if ((getListMonitoredResourceDescriptorsMethod = LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) == null) { + LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod = getListMonitoredResourceDescriptorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListMonitoredResourceDescriptors")) + .build(); } } } return getListMonitoredResourceDescriptorsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> - getListLogsMethod; + private static volatile io.grpc.MethodDescriptor getListLogsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLogs", requestType = com.google.logging.v2.ListLogsRequest.class, responseType = com.google.logging.v2.ListLogsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> - getListLogsMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> - getListLogsMethod; + public static io.grpc.MethodDescriptor getListLogsMethod() { + io.grpc.MethodDescriptor getListLogsMethod; if ((getListLogsMethod = LoggingServiceV2Grpc.getListLogsMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getListLogsMethod = LoggingServiceV2Grpc.getListLogsMethod) == null) { - LoggingServiceV2Grpc.getListLogsMethod = - getListLogsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogs")) - .build(); + LoggingServiceV2Grpc.getListLogsMethod = getListLogsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogsResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogs")) + .build(); } } } return getListLogsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.logging.v2.TailLogEntriesRequest, com.google.logging.v2.TailLogEntriesResponse> - getTailLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor getTailLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TailLogEntries", requestType = com.google.logging.v2.TailLogEntriesRequest.class, responseType = com.google.logging.v2.TailLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.logging.v2.TailLogEntriesRequest, com.google.logging.v2.TailLogEntriesResponse> - getTailLogEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.TailLogEntriesRequest, - com.google.logging.v2.TailLogEntriesResponse> - getTailLogEntriesMethod; + public static io.grpc.MethodDescriptor getTailLogEntriesMethod() { + io.grpc.MethodDescriptor getTailLogEntriesMethod; if ((getTailLogEntriesMethod = LoggingServiceV2Grpc.getTailLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getTailLogEntriesMethod = LoggingServiceV2Grpc.getTailLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getTailLogEntriesMethod = - getTailLogEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TailLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.TailLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.TailLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new LoggingServiceV2MethodDescriptorSupplier("TailLogEntries")) - .build(); + LoggingServiceV2Grpc.getTailLogEntriesMethod = getTailLogEntriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TailLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.TailLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.TailLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("TailLogEntries")) + .build(); } } } return getTailLogEntriesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static LoggingServiceV2Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2Stub(channel, callOptions); + } + }; return LoggingServiceV2Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static LoggingServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { + public static LoggingServiceV2BlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2BlockingStub(channel, callOptions); + } + }; return LoggingServiceV2BlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LoggingServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static LoggingServiceV2FutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2FutureStub(channel, callOptions); + } + }; return LoggingServiceV2FutureStub.newStub(factory, channel); } /** - * - * *
    * Service for ingesting and querying logs.
    * 
@@ -351,8 +256,6 @@ public LoggingServiceV2FutureStub newStub( public interface AsyncService { /** - * - * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -360,15 +263,12 @@ public interface AsyncService {
      * delete operation with a timestamp before the operation will be deleted.
      * 
*/ - default void deleteLog( - com.google.logging.v2.DeleteLogRequest request, + default void deleteLog(com.google.logging.v2.DeleteLogRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMethod(), responseObserver); } /** - * - * *
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -379,17 +279,12 @@ default void deleteLog(
      * folders)
      * 
*/ - default void writeLogEntries( - com.google.logging.v2.WriteLogEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getWriteLogEntriesMethod(), responseObserver); + default void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteLogEntriesMethod(), responseObserver); } /** - * - * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -397,96 +292,78 @@ default void writeLogEntries(
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - default void listLogEntries( - com.google.logging.v2.ListLogEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLogEntriesMethod(), responseObserver); + default void listLogEntries(com.google.logging.v2.ListLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogEntriesMethod(), responseObserver); } /** - * - * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - default void listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMonitoredResourceDescriptorsMethod(), responseObserver); + default void listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMonitoredResourceDescriptorsMethod(), responseObserver); } /** - * - * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - default void listLogs( - com.google.logging.v2.ListLogsRequest request, + default void listLogs(com.google.logging.v2.ListLogsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogsMethod(), responseObserver); } /** - * - * *
      * Streaming read of log entries as they are ingested. Until the stream is
      * terminated, it will continue reading logs.
      * 
*/ default io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getTailLogEntriesMethod(), responseObserver); + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTailLogEntriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service LoggingServiceV2. - * *
    * Service for ingesting and querying logs.
    * 
*/ - public abstract static class LoggingServiceV2ImplBase + public static abstract class LoggingServiceV2ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LoggingServiceV2Grpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service LoggingServiceV2. - * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2Stub extends io.grpc.stub.AbstractAsyncStub { - private LoggingServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LoggingServiceV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LoggingServiceV2Stub(channel, callOptions); } /** - * - * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -494,16 +371,13 @@ protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOption
      * delete operation with a timestamp before the operation will be deleted.
      * 
*/ - public void deleteLog( - com.google.logging.v2.DeleteLogRequest request, + public void deleteLog(com.google.logging.v2.DeleteLogRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -514,19 +388,13 @@ public void deleteLog(
      * folders)
      * 
*/ - public void writeLogEntries( - com.google.logging.v2.WriteLogEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -534,59 +402,43 @@ public void writeLogEntries(
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - public void listLogEntries( - com.google.logging.v2.ListLogEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listLogEntries(com.google.logging.v2.ListLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public void listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public void listLogs( - com.google.logging.v2.ListLogsRequest request, + public void listLogs(com.google.logging.v2.ListLogsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListLogsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Streaming read of log entries as they are ingested. Until the stream is
      * terminated, it will continue reading logs.
      * 
*/ public io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver - responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); } @@ -594,14 +446,14 @@ public io.grpc.stub.StreamObserver /** * A stub to allow clients to do synchronous rpc calls to service LoggingServiceV2. - * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private LoggingServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -612,8 +464,6 @@ protected LoggingServiceV2BlockingStub build( } /** - * - * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -627,8 +477,6 @@ public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogReques
     }
 
     /**
-     *
-     *
      * 
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -639,15 +487,12 @@ public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogReques
      * folders)
      * 
*/ - public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries( - com.google.logging.v2.WriteLogEntriesRequest request) { + public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getWriteLogEntriesMethod(), getCallOptions(), request); } /** - * - * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -655,36 +500,28 @@ public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries(
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - public com.google.logging.v2.ListLogEntriesResponse listLogEntries( - com.google.logging.v2.ListLogEntriesRequest request) { + public com.google.logging.v2.ListLogEntriesResponse listLogEntries(com.google.logging.v2.ListLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLogEntriesMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public com.google.logging.v2.ListLogsResponse listLogs( - com.google.logging.v2.ListLogsRequest request) { + public com.google.logging.v2.ListLogsResponse listLogs(com.google.logging.v2.ListLogsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLogsMethod(), getCallOptions(), request); } @@ -692,14 +529,14 @@ public com.google.logging.v2.ListLogsResponse listLogs( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service LoggingServiceV2. - * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2FutureStub extends io.grpc.stub.AbstractFutureStub { - private LoggingServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -710,8 +547,6 @@ protected LoggingServiceV2FutureStub build( } /** - * - * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -726,8 +561,6 @@ public com.google.common.util.concurrent.ListenableFuture
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -738,16 +571,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.logging.v2.WriteLogEntriesResponse>
-        writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture writeLogEntries(
+        com.google.logging.v2.WriteLogEntriesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -755,40 +585,31 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.logging.v2.ListLogEntriesResponse>
-        listLogEntries(com.google.logging.v2.ListLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture listLogEntries(
+        com.google.logging.v2.ListLogEntriesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), - request); + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListLogsResponse> - listLogs(com.google.logging.v2.ListLogsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLogs( + com.google.logging.v2.ListLogsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLogsMethod(), getCallOptions()), request); } @@ -801,11 +622,11 @@ public com.google.common.util.concurrent.ListenableFuture - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -819,34 +640,24 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_DELETE_LOG: - serviceImpl.deleteLog( - (com.google.logging.v2.DeleteLogRequest) request, + serviceImpl.deleteLog((com.google.logging.v2.DeleteLogRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_WRITE_LOG_ENTRIES: - serviceImpl.writeLogEntries( - (com.google.logging.v2.WriteLogEntriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.writeLogEntries((com.google.logging.v2.WriteLogEntriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_LOG_ENTRIES: - serviceImpl.listLogEntries( - (com.google.logging.v2.ListLogEntriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLogEntries((com.google.logging.v2.ListLogEntriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: - serviceImpl.listMonitoredResourceDescriptors( - (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>) - responseObserver); + serviceImpl.listMonitoredResourceDescriptors((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_LOGS: - serviceImpl.listLogs( - (com.google.logging.v2.ListLogsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLogs((com.google.logging.v2.ListLogsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -859,10 +670,8 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_TAIL_LOG_ENTRIES: - return (io.grpc.stub.StreamObserver) - serviceImpl.tailLogEntries( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.tailLogEntries( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } @@ -872,51 +681,52 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getDeleteLogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_LOG))) + getDeleteLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_LOG))) .addMethod( - getWriteLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse>( - service, METHODID_WRITE_LOG_ENTRIES))) + getWriteLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse>( + service, METHODID_WRITE_LOG_ENTRIES))) .addMethod( - getListLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogEntriesRequest, - com.google.logging.v2.ListLogEntriesResponse>( - service, METHODID_LIST_LOG_ENTRIES))) + getListLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogEntriesRequest, + com.google.logging.v2.ListLogEntriesResponse>( + service, METHODID_LIST_LOG_ENTRIES))) .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( - service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( + service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) .addMethod( - getListLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse>( - service, METHODID_LIST_LOGS))) + getListLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogsRequest, + com.google.logging.v2.ListLogsResponse>( + service, METHODID_LIST_LOGS))) .addMethod( - getTailLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.logging.v2.TailLogEntriesRequest, - com.google.logging.v2.TailLogEntriesResponse>( - service, METHODID_TAIL_LOG_ENTRIES))) + getTailLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.logging.v2.TailLogEntriesRequest, + com.google.logging.v2.TailLogEntriesResponse>( + service, METHODID_TAIL_LOG_ENTRIES))) .build(); } - private abstract static class LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LoggingServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -958,17 +768,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LoggingServiceV2Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LoggingServiceV2FileDescriptorSupplier()) - .addMethod(getDeleteLogMethod()) - .addMethod(getWriteLogEntriesMethod()) - .addMethod(getListLogEntriesMethod()) - .addMethod(getListMonitoredResourceDescriptorsMethod()) - .addMethod(getListLogsMethod()) - .addMethod(getTailLogEntriesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LoggingServiceV2FileDescriptorSupplier()) + .addMethod(getDeleteLogMethod()) + .addMethod(getWriteLogEntriesMethod()) + .addMethod(getListLogEntriesMethod()) + .addMethod(getListMonitoredResourceDescriptorsMethod()) + .addMethod(getListLogsMethod()) + .addMethod(getTailLogEntriesMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java new file mode 100644 index 000000000..2945040f5 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java @@ -0,0 +1,667 @@ +package com.google.logging.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for configuring logs-based metrics.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/logging/v2/logging_metrics.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MetricsServiceV2Grpc { + + private MetricsServiceV2Grpc() {} + + public static final java.lang.String SERVICE_NAME = "google.logging.v2.MetricsServiceV2"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListLogMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLogMetrics", + requestType = com.google.logging.v2.ListLogMetricsRequest.class, + responseType = com.google.logging.v2.ListLogMetricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLogMetricsMethod() { + io.grpc.MethodDescriptor getListLogMetricsMethod; + if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { + MetricsServiceV2Grpc.getListLogMetricsMethod = getListLogMetricsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogMetricsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogMetricsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("ListLogMetrics")) + .build(); + } + } + } + return getListLogMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLogMetric", + requestType = com.google.logging.v2.GetLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLogMetricMethod() { + io.grpc.MethodDescriptor getGetLogMetricMethod; + if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { + MetricsServiceV2Grpc.getGetLogMetricMethod = getGetLogMetricMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("GetLogMetric")) + .build(); + } + } + } + return getGetLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLogMetric", + requestType = com.google.logging.v2.CreateLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateLogMetricMethod() { + io.grpc.MethodDescriptor getCreateLogMetricMethod; + if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { + MetricsServiceV2Grpc.getCreateLogMetricMethod = getCreateLogMetricMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("CreateLogMetric")) + .build(); + } + } + } + return getCreateLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLogMetric", + requestType = com.google.logging.v2.UpdateLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateLogMetricMethod() { + io.grpc.MethodDescriptor getUpdateLogMetricMethod; + if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { + MetricsServiceV2Grpc.getUpdateLogMetricMethod = getUpdateLogMetricMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("UpdateLogMetric")) + .build(); + } + } + } + return getUpdateLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLogMetric", + requestType = com.google.logging.v2.DeleteLogMetricRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteLogMetricMethod() { + io.grpc.MethodDescriptor getDeleteLogMetricMethod; + if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { + MetricsServiceV2Grpc.getDeleteLogMetricMethod = getDeleteLogMetricMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("DeleteLogMetric")) + .build(); + } + } + } + return getDeleteLogMetricMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MetricsServiceV2Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2Stub(channel, callOptions); + } + }; + return MetricsServiceV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetricsServiceV2BlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2BlockingStub(channel, callOptions); + } + }; + return MetricsServiceV2BlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MetricsServiceV2FutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2FutureStub(channel, callOptions); + } + }; + return MetricsServiceV2FutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists logs-based metrics.
+     * 
+ */ + default void listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogMetricsMethod(), responseObserver); + } + + /** + *
+     * Gets a logs-based metric.
+     * 
+ */ + default void getLogMetric(com.google.logging.v2.GetLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLogMetricMethod(), responseObserver); + } + + /** + *
+     * Creates a logs-based metric.
+     * 
+ */ + default void createLogMetric(com.google.logging.v2.CreateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLogMetricMethod(), responseObserver); + } + + /** + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + default void updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateLogMetricMethod(), responseObserver); + } + + /** + *
+     * Deletes a logs-based metric.
+     * 
+ */ + default void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMetricMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MetricsServiceV2. + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static abstract class MetricsServiceV2ImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return MetricsServiceV2Grpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2. + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2Stub + extends io.grpc.stub.AbstractAsyncStub { + private MetricsServiceV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2Stub(channel, callOptions); + } + + /** + *
+     * Lists logs-based metrics.
+     * 
+ */ + public void listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a logs-based metric.
+     * 
+ */ + public void getLogMetric(com.google.logging.v2.GetLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a logs-based metric.
+     * 
+ */ + public void createLogMetric(com.google.logging.v2.CreateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public void updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MetricsServiceV2. + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetricsServiceV2BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2BlockingStub(channel, callOptions); + } + + /** + *
+     * Lists logs-based metrics.
+     * 
+ */ + public com.google.logging.v2.ListLogMetricsResponse listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogMetricsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric getLogMetric(com.google.logging.v2.GetLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLogMetricMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric createLogMetric(com.google.logging.v2.CreateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLogMetricMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLogMetricMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public com.google.protobuf.Empty deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogMetricMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricsServiceV2. + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2FutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetricsServiceV2FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2FutureStub(channel, callOptions); + } + + /** + *
+     * Lists logs-based metrics.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLogMetrics( + com.google.logging.v2.ListLogMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLogMetric( + com.google.logging.v2.GetLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createLogMetric( + com.google.logging.v2.CreateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateLogMetric( + com.google.logging.v2.UpdateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteLogMetric( + com.google.logging.v2.DeleteLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LOG_METRICS = 0; + private static final int METHODID_GET_LOG_METRIC = 1; + private static final int METHODID_CREATE_LOG_METRIC = 2; + private static final int METHODID_UPDATE_LOG_METRIC = 3; + private static final int METHODID_DELETE_LOG_METRIC = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_LOG_METRICS: + serviceImpl.listLogMetrics((com.google.logging.v2.ListLogMetricsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOG_METRIC: + serviceImpl.getLogMetric((com.google.logging.v2.GetLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_LOG_METRIC: + serviceImpl.createLogMetric((com.google.logging.v2.CreateLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_LOG_METRIC: + serviceImpl.updateLogMetric((com.google.logging.v2.UpdateLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LOG_METRIC: + serviceImpl.deleteLogMetric((com.google.logging.v2.DeleteLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListLogMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogMetricsRequest, + com.google.logging.v2.ListLogMetricsResponse>( + service, METHODID_LIST_LOG_METRICS))) + .addMethod( + getGetLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLogMetricRequest, + com.google.logging.v2.LogMetric>( + service, METHODID_GET_LOG_METRIC))) + .addMethod( + getCreateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLogMetricRequest, + com.google.logging.v2.LogMetric>( + service, METHODID_CREATE_LOG_METRIC))) + .addMethod( + getUpdateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateLogMetricRequest, + com.google.logging.v2.LogMetric>( + service, METHODID_UPDATE_LOG_METRIC))) + .addMethod( + getDeleteLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogMetricRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_LOG_METRIC))) + .build(); + } + + private static abstract class MetricsServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetricsServiceV2BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetricsServiceV2"); + } + } + + private static final class MetricsServiceV2FileDescriptorSupplier + extends MetricsServiceV2BaseDescriptorSupplier { + MetricsServiceV2FileDescriptorSupplier() {} + } + + private static final class MetricsServiceV2MethodDescriptorSupplier + extends MetricsServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MetricsServiceV2MethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MetricsServiceV2Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetricsServiceV2FileDescriptorSupplier()) + .addMethod(getListLogMetricsMethod()) + .addMethod(getGetLogMetricMethod()) + .addMethod(getCreateLogMetricMethod()) + .addMethod(getUpdateLogMetricMethod()) + .addMethod(getDeleteLogMetricMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java index 195da72e3..1416d4887 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a BigQuery dataset that was created by a link.
  * 
* * Protobuf type {@code google.logging.v2.BigQueryDataset} */ -public final class BigQueryDataset extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryDataset extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryDataset) BigQueryDatasetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryDataset.newBuilder() to construct. private BigQueryDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDataset() { datasetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDataset(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryDataset.class, - com.google.logging.v2.BigQueryDataset.Builder.class); + com.google.logging.v2.BigQueryDataset.class, com.google.logging.v2.BigQueryDataset.Builder.class); } public static final int DATASET_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** - * - * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetId. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** - * - * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -110,15 +86,16 @@ public java.lang.String getDatasetId() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -127,7 +104,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +115,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -163,14 +140,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BigQueryDataset)) { return super.equals(obj); } com.google.logging.v2.BigQueryDataset other = (com.google.logging.v2.BigQueryDataset) obj; - if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,135 +167,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.BigQueryDataset parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.BigQueryDataset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryDataset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.BigQueryDataset parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.BigQueryDataset parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryDataset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryDataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryDataset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryDataset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BigQueryDataset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.BigQueryDataset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BigQueryDataset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.BigQueryDataset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BigQueryDataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.BigQueryDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a BigQuery dataset that was created by a link.
    * 
* * Protobuf type {@code google.logging.v2.BigQueryDataset} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryDataset) com.google.logging.v2.BigQueryDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryDataset.class, - com.google.logging.v2.BigQueryDataset.Builder.class); + com.google.logging.v2.BigQueryDataset.class, com.google.logging.v2.BigQueryDataset.Builder.class); } // Construct using com.google.logging.v2.BigQueryDataset.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override @@ -348,11 +323,8 @@ public com.google.logging.v2.BigQueryDataset build() { @java.lang.Override public com.google.logging.v2.BigQueryDataset buildPartial() { - com.google.logging.v2.BigQueryDataset result = - new com.google.logging.v2.BigQueryDataset(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.BigQueryDataset result = new com.google.logging.v2.BigQueryDataset(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +340,38 @@ private void buildPartial0(com.google.logging.v2.BigQueryDataset result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.BigQueryDataset) { - return mergeFrom((com.google.logging.v2.BigQueryDataset) other); + return mergeFrom((com.google.logging.v2.BigQueryDataset)other); } else { super.mergeFrom(other); return this; @@ -440,19 +411,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,13 +431,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object datasetId_ = ""; /** - * - * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -480,13 +446,13 @@ public Builder mergeFrom(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -495,8 +461,6 @@ public java.lang.String getDatasetId() { } } /** - * - * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -508,14 +472,15 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -523,8 +488,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -536,22 +499,18 @@ public com.google.protobuf.ByteString getDatasetIdBytes() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -563,7 +522,6 @@ public Builder setDatasetId(java.lang.String value) {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -573,8 +531,6 @@ public Builder clearDatasetId() { return this; } /** - * - * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -586,23 +542,21 @@ public Builder clearDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.BigQueryDataset) } // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryDataset) private static final com.google.logging.v2.BigQueryDataset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryDataset(); } @@ -626,27 +580,27 @@ public static com.google.logging.v2.BigQueryDataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +615,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java index 49ff5cfc6..257912103 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BigQueryDatasetOrBuilder - extends +public interface BigQueryDatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryDataset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -38,13 +20,10 @@ public interface BigQueryDatasetOrBuilder
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetId. */ java.lang.String getDatasetId(); /** - * - * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -56,8 +35,8 @@ public interface BigQueryDatasetOrBuilder
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java index 800ccb0c5..da5643651 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java @@ -1,71 +1,51 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Options that change functionality of a sink exporting data to BigQuery.
  * 
* * Protobuf type {@code google.logging.v2.BigQueryOptions} */ -public final class BigQueryOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryOptions) BigQueryOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryOptions.newBuilder() to construct. private BigQueryOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BigQueryOptions() {} + private BigQueryOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryOptions.class, - com.google.logging.v2.BigQueryOptions.Builder.class); + com.google.logging.v2.BigQueryOptions.class, com.google.logging.v2.BigQueryOptions.Builder.class); } public static final int USE_PARTITIONED_TABLES_FIELD_NUMBER = 1; private boolean usePartitionedTables_ = false; /** - * - * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -78,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -89,8 +68,6 @@ public boolean getUsePartitionedTables() { public static final int USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER = 3; private boolean usesTimestampColumnPartitioning_ = false; /** - * - * *
    * Output only. True if new timestamp column based partitioning is in use,
    * false if legacy ingestion-time partitioning is in use.
@@ -101,9 +78,7 @@ public boolean getUsePartitionedTables() {
    * this field set to false.
    * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The usesTimestampColumnPartitioning. */ @java.lang.Override @@ -112,7 +87,6 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (usePartitionedTables_ != false) { output.writeBool(1, usePartitionedTables_); } @@ -141,12 +116,12 @@ public int getSerializedSize() { size = 0; if (usePartitionedTables_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, usePartitionedTables_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, usePartitionedTables_); } if (usesTimestampColumnPartitioning_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, usesTimestampColumnPartitioning_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, usesTimestampColumnPartitioning_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,16 +131,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BigQueryOptions)) { return super.equals(obj); } com.google.logging.v2.BigQueryOptions other = (com.google.logging.v2.BigQueryOptions) obj; - if (getUsePartitionedTables() != other.getUsePartitionedTables()) return false; - if (getUsesTimestampColumnPartitioning() != other.getUsesTimestampColumnPartitioning()) - return false; + if (getUsePartitionedTables() + != other.getUsePartitionedTables()) return false; + if (getUsesTimestampColumnPartitioning() + != other.getUsesTimestampColumnPartitioning()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,145 +154,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USE_PARTITIONED_TABLES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePartitionedTables()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsePartitionedTables()); hash = (37 * hash) + USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getUsesTimestampColumnPartitioning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsesTimestampColumnPartitioning()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.BigQueryOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.BigQueryOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.BigQueryOptions parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.BigQueryOptions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BigQueryOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BigQueryOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.BigQueryOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BigQueryOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.BigQueryOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BigQueryOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.BigQueryOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Options that change functionality of a sink exporting data to BigQuery.
    * 
* * Protobuf type {@code google.logging.v2.BigQueryOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryOptions) com.google.logging.v2.BigQueryOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryOptions.class, - com.google.logging.v2.BigQueryOptions.Builder.class); + com.google.logging.v2.BigQueryOptions.class, com.google.logging.v2.BigQueryOptions.Builder.class); } // Construct using com.google.logging.v2.BigQueryOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BigQueryOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override @@ -348,11 +321,8 @@ public com.google.logging.v2.BigQueryOptions build() { @java.lang.Override public com.google.logging.v2.BigQueryOptions buildPartial() { - com.google.logging.v2.BigQueryOptions result = - new com.google.logging.v2.BigQueryOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.BigQueryOptions result = new com.google.logging.v2.BigQueryOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +341,38 @@ private void buildPartial0(com.google.logging.v2.BigQueryOptions result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.BigQueryOptions) { - return mergeFrom((com.google.logging.v2.BigQueryOptions) other); + return mergeFrom((com.google.logging.v2.BigQueryOptions)other); } else { super.mergeFrom(other); return this; @@ -444,25 +413,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - usePartitionedTables_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - usesTimestampColumnPartitioning_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + usePartitionedTables_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + usesTimestampColumnPartitioning_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,13 +438,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean usePartitionedTables_; + private boolean usePartitionedTables_ ; /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -491,7 +454,6 @@ public Builder mergeFrom(
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -499,8 +461,6 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -513,7 +473,6 @@ public boolean getUsePartitionedTables() {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The usePartitionedTables to set. * @return This builder for chaining. */ @@ -525,8 +484,6 @@ public Builder setUsePartitionedTables(boolean value) { return this; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -539,7 +496,6 @@ public Builder setUsePartitionedTables(boolean value) {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { @@ -549,10 +505,8 @@ public Builder clearUsePartitionedTables() { return this; } - private boolean usesTimestampColumnPartitioning_; + private boolean usesTimestampColumnPartitioning_ ; /** - * - * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -563,10 +517,7 @@ public Builder clearUsePartitionedTables() {
      * this field set to false.
      * 
* - * - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The usesTimestampColumnPartitioning. */ @java.lang.Override @@ -574,8 +525,6 @@ public boolean getUsesTimestampColumnPartitioning() { return usesTimestampColumnPartitioning_; } /** - * - * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -586,10 +535,7 @@ public boolean getUsesTimestampColumnPartitioning() {
      * this field set to false.
      * 
* - * - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The usesTimestampColumnPartitioning to set. * @return This builder for chaining. */ @@ -601,8 +547,6 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) { return this; } /** - * - * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -613,10 +557,7 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) {
      * this field set to false.
      * 
* - * - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearUsesTimestampColumnPartitioning() { @@ -625,9 +566,9 @@ public Builder clearUsesTimestampColumnPartitioning() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -637,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.BigQueryOptions) } // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryOptions) private static final com.google.logging.v2.BigQueryOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryOptions(); } @@ -651,27 +592,27 @@ public static com.google.logging.v2.BigQueryOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,4 +627,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java index 21fae25ad..006843d84 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BigQueryOptionsOrBuilder - extends +public interface BigQueryOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -39,14 +21,11 @@ public interface BigQueryOptionsOrBuilder
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ boolean getUsePartitionedTables(); /** - * - * *
    * Output only. True if new timestamp column based partitioning is in use,
    * false if legacy ingestion-time partitioning is in use.
@@ -57,9 +36,7 @@ public interface BigQueryOptionsOrBuilder
    * this field set to false.
    * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The usesTimestampColumnPartitioning. */ boolean getUsesTimestampColumnPartitioning(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java index 0718888b4..0811e91f2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java @@ -1,83 +1,60 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Metadata for LongRunningUpdateBucket Operations.
  * 
* * Protobuf type {@code google.logging.v2.BucketMetadata} */ -public final class BucketMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BucketMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.BucketMetadata) BucketMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BucketMetadata.newBuilder() to construct. private BucketMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BucketMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BucketMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BucketMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BucketMetadata.class, - com.google.logging.v2.BucketMetadata.Builder.class); + com.google.logging.v2.BucketMetadata.class, com.google.logging.v2.BucketMetadata.Builder.class); } private int bitField0_; private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_BUCKET_REQUEST(4), UPDATE_BUCKET_REQUEST(5), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -93,37 +70,31 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 4: - return CREATE_BUCKET_REQUEST; - case 5: - return UPDATE_BUCKET_REQUEST; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 4: return CREATE_BUCKET_REQUEST; + case 5: return UPDATE_BUCKET_REQUEST; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -131,14 +102,11 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -146,8 +114,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The create time of an operation.
    * 
@@ -162,14 +128,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -177,14 +140,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -192,8 +152,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -208,48 +166,36 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CREATE_BUCKET_REQUEST_FIELD_NUMBER = 4; /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return Whether the createBucketRequest field is set. */ @java.lang.Override @@ -257,26 +203,21 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return The createBucketRequest. */ @java.lang.Override public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateBucketRequest) request_; + return (com.google.logging.v2.CreateBucketRequest) request_; } return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
@@ -286,21 +227,18 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { @java.lang.Override public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateBucketRequest) request_; + return (com.google.logging.v2.CreateBucketRequest) request_; } return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } public static final int UPDATE_BUCKET_REQUEST_FIELD_NUMBER = 5; /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return Whether the updateBucketRequest field is set. */ @java.lang.Override @@ -308,26 +246,21 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return The updateBucketRequest. */ @java.lang.Override public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { if (requestCase_ == 5) { - return (com.google.logging.v2.UpdateBucketRequest) request_; + return (com.google.logging.v2.UpdateBucketRequest) request_; } return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
@@ -337,13 +270,12 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { @java.lang.Override public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequestOrBuilder() { if (requestCase_ == 5) { - return (com.google.logging.v2.UpdateBucketRequest) request_; + return (com.google.logging.v2.UpdateBucketRequest) request_; } return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } @@ -381,23 +314,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (requestCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.logging.v2.CreateBucketRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.logging.v2.CreateBucketRequest) request_); } if (requestCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.logging.v2.UpdateBucketRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.logging.v2.UpdateBucketRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -407,7 +341,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BucketMetadata)) { return super.equals(obj); @@ -416,20 +350,24 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 4: - if (!getCreateBucketRequest().equals(other.getCreateBucketRequest())) return false; + if (!getCreateBucketRequest() + .equals(other.getCreateBucketRequest())) return false; break; case 5: - if (!getUpdateBucketRequest().equals(other.getUpdateBucketRequest())) return false; + if (!getUpdateBucketRequest() + .equals(other.getUpdateBucketRequest())) return false; break; case 0: default: @@ -472,126 +410,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.BucketMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.BucketMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BucketMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.BucketMetadata parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.BucketMetadata parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BucketMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BucketMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.BucketMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BucketMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BucketMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.BucketMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BucketMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.BucketMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.BucketMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.BucketMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for LongRunningUpdateBucket Operations.
    * 
* * Protobuf type {@code google.logging.v2.BucketMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BucketMetadata) com.google.logging.v2.BucketMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BucketMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BucketMetadata.class, - com.google.logging.v2.BucketMetadata.Builder.class); + com.google.logging.v2.BucketMetadata.class, com.google.logging.v2.BucketMetadata.Builder.class); } // Construct using com.google.logging.v2.BucketMetadata.newBuilder() @@ -599,18 +531,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -638,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_BucketMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override @@ -660,9 +592,7 @@ public com.google.logging.v2.BucketMetadata build() { @java.lang.Override public com.google.logging.v2.BucketMetadata buildPartial() { com.google.logging.v2.BucketMetadata result = new com.google.logging.v2.BucketMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -672,11 +602,15 @@ private void buildPartial0(com.google.logging.v2.BucketMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -688,10 +622,12 @@ private void buildPartial0(com.google.logging.v2.BucketMetadata result) { private void buildPartialOneofs(com.google.logging.v2.BucketMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 4 && createBucketRequestBuilder_ != null) { + if (requestCase_ == 4 && + createBucketRequestBuilder_ != null) { result.request_ = createBucketRequestBuilder_.build(); } - if (requestCase_ == 5 && updateBucketRequestBuilder_ != null) { + if (requestCase_ == 5 && + updateBucketRequestBuilder_ != null) { result.request_ = updateBucketRequestBuilder_.build(); } } @@ -700,39 +636,38 @@ private void buildPartialOneofs(com.google.logging.v2.BucketMetadata result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.BucketMetadata) { - return mergeFrom((com.google.logging.v2.BucketMetadata) other); + return mergeFrom((com.google.logging.v2.BucketMetadata)other); } else { super.mergeFrom(other); return this; @@ -751,20 +686,17 @@ public Builder mergeFrom(com.google.logging.v2.BucketMetadata other) { setStateValue(other.getStateValue()); } switch (other.getRequestCase()) { - case CREATE_BUCKET_REQUEST: - { - mergeCreateBucketRequest(other.getCreateBucketRequest()); - break; - } - case UPDATE_BUCKET_REQUEST: - { - mergeUpdateBucketRequest(other.getUpdateBucketRequest()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case CREATE_BUCKET_REQUEST: { + mergeCreateBucketRequest(other.getCreateBucketRequest()); + break; + } + case UPDATE_BUCKET_REQUEST: { + mergeUpdateBucketRequest(other.getUpdateBucketRequest()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -792,45 +724,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getCreateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getUpdateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getCreateBucketRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateBucketRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -840,12 +772,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -859,33 +791,24 @@ public Builder clearRequest() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -896,8 +819,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The create time of an operation.
      * 
@@ -918,15 +839,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -937,8 +857,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -947,9 +865,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -964,8 +882,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -983,8 +899,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -997,8 +911,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The create time of an operation.
      * 
@@ -1009,12 +921,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The create time of an operation.
      * 
@@ -1022,17 +933,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1040,33 +948,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1077,8 +976,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1099,15 +996,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1118,8 +1014,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1128,9 +1022,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1145,8 +1039,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1164,8 +1056,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1178,8 +1068,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1190,12 +1078,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1203,17 +1090,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1221,29 +1105,22 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1254,31 +1131,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1292,14 +1162,11 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1310,19 +1177,13 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, - com.google.logging.v2.CreateBucketRequest.Builder, - com.google.logging.v2.CreateBucketRequestOrBuilder> - createBucketRequestBuilder_; + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder> createBucketRequestBuilder_; /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return Whether the createBucketRequest field is set. */ @java.lang.Override @@ -1330,14 +1191,11 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return The createBucketRequest. */ @java.lang.Override @@ -1355,8 +1213,6 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { } } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1377,8 +1233,6 @@ public Builder setCreateBucketRequest(com.google.logging.v2.CreateBucketRequest return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1397,8 +1251,6 @@ public Builder setCreateBucketRequest( return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1407,13 +1259,10 @@ public Builder setCreateBucketRequest( */ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketRequest value) { if (createBucketRequestBuilder_ == null) { - if (requestCase_ == 4 - && request_ != com.google.logging.v2.CreateBucketRequest.getDefaultInstance()) { - request_ = - com.google.logging.v2.CreateBucketRequest.newBuilder( - (com.google.logging.v2.CreateBucketRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 4 && + request_ != com.google.logging.v2.CreateBucketRequest.getDefaultInstance()) { + request_ = com.google.logging.v2.CreateBucketRequest.newBuilder((com.google.logging.v2.CreateBucketRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1429,8 +1278,6 @@ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketReques return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1454,8 +1301,6 @@ public Builder clearCreateBucketRequest() { return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1466,8 +1311,6 @@ public com.google.logging.v2.CreateBucketRequest.Builder getCreateBucketRequestB return getCreateBucketRequestFieldBuilder().getBuilder(); } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1486,8 +1329,6 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1495,19 +1336,14 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, - com.google.logging.v2.CreateBucketRequest.Builder, - com.google.logging.v2.CreateBucketRequestOrBuilder> + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder> getCreateBucketRequestFieldBuilder() { if (createBucketRequestBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } - createBucketRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, - com.google.logging.v2.CreateBucketRequest.Builder, - com.google.logging.v2.CreateBucketRequestOrBuilder>( + createBucketRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder>( (com.google.logging.v2.CreateBucketRequest) request_, getParentForChildren(), isClean()); @@ -1519,19 +1355,13 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, - com.google.logging.v2.UpdateBucketRequest.Builder, - com.google.logging.v2.UpdateBucketRequestOrBuilder> - updateBucketRequestBuilder_; + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder> updateBucketRequestBuilder_; /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return Whether the updateBucketRequest field is set. */ @java.lang.Override @@ -1539,14 +1369,11 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return The updateBucketRequest. */ @java.lang.Override @@ -1564,8 +1391,6 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { } } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1586,8 +1411,6 @@ public Builder setUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1606,8 +1429,6 @@ public Builder setUpdateBucketRequest( return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1616,13 +1437,10 @@ public Builder setUpdateBucketRequest( */ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest value) { if (updateBucketRequestBuilder_ == null) { - if (requestCase_ == 5 - && request_ != com.google.logging.v2.UpdateBucketRequest.getDefaultInstance()) { - request_ = - com.google.logging.v2.UpdateBucketRequest.newBuilder( - (com.google.logging.v2.UpdateBucketRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 5 && + request_ != com.google.logging.v2.UpdateBucketRequest.getDefaultInstance()) { + request_ = com.google.logging.v2.UpdateBucketRequest.newBuilder((com.google.logging.v2.UpdateBucketRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1638,8 +1456,6 @@ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketReques return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1663,8 +1479,6 @@ public Builder clearUpdateBucketRequest() { return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1675,8 +1489,6 @@ public com.google.logging.v2.UpdateBucketRequest.Builder getUpdateBucketRequestB return getUpdateBucketRequestFieldBuilder().getBuilder(); } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1695,8 +1507,6 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest } } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1704,19 +1514,14 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, - com.google.logging.v2.UpdateBucketRequest.Builder, - com.google.logging.v2.UpdateBucketRequestOrBuilder> + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder> getUpdateBucketRequestFieldBuilder() { if (updateBucketRequestBuilder_ == null) { if (!(requestCase_ == 5)) { request_ = com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } - updateBucketRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, - com.google.logging.v2.UpdateBucketRequest.Builder, - com.google.logging.v2.UpdateBucketRequestOrBuilder>( + updateBucketRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder>( (com.google.logging.v2.UpdateBucketRequest) request_, getParentForChildren(), isClean()); @@ -1726,9 +1531,9 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest onChanged(); return updateBucketRequestBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1738,12 +1543,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.BucketMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.BucketMetadata) private static final com.google.logging.v2.BucketMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.BucketMetadata(); } @@ -1752,27 +1557,27 @@ public static com.google.logging.v2.BucketMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BucketMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1787,4 +1592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BucketMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java index d1bfeaac2..bef772fca 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BucketMetadataOrBuilder - extends +public interface BucketMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BucketMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The create time of an operation.
    * 
@@ -60,32 +36,24 @@ public interface BucketMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The end time of an operation.
    * 
@@ -95,57 +63,43 @@ public interface BucketMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ com.google.logging.v2.OperationState getState(); /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return Whether the createBucketRequest field is set. */ boolean hasCreateBucketRequest(); /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return The createBucketRequest. */ com.google.logging.v2.CreateBucketRequest getCreateBucketRequest(); /** - * - * *
    * LongRunningCreateBucket RPC request.
    * 
@@ -155,32 +109,24 @@ public interface BucketMetadataOrBuilder com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder(); /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return Whether the updateBucketRequest field is set. */ boolean hasUpdateBucketRequest(); /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return The updateBucketRequest. */ com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest(); /** - * - * *
    * LongRunningUpdateBucket RPC request.
    * 
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java index 52053b1e4..70ac0c37f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes the customer-managed encryption key (CMEK) settings associated with
  * a project, folder, organization, billing account, or flexible resource.
@@ -37,16 +20,15 @@
  *
  * Protobuf type {@code google.logging.v2.CmekSettings}
  */
-public final class CmekSettings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CmekSettings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.CmekSettings)
     CmekSettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CmekSettings.newBuilder() to construct.
   private CmekSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CmekSettings() {
     name_ = "";
     kmsKeyName_ = "";
@@ -56,38 +38,33 @@ private CmekSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CmekSettings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_CmekSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.CmekSettings.class,
-            com.google.logging.v2.CmekSettings.Builder.class);
+            com.google.logging.v2.CmekSettings.class, com.google.logging.v2.CmekSettings.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -96,29 +73,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,12 +104,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -165,7 +139,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ @java.lang.Override @@ -174,15 +147,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -215,15 +187,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 2; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -232,12 +205,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -259,7 +229,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_key_version_name = 4; - * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -268,15 +237,14 @@ public java.lang.String getKmsKeyVersionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -298,15 +266,16 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 4; - * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -315,12 +284,9 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -337,7 +303,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -346,15 +311,14 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -371,15 +335,16 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -388,7 +353,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,7 +364,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -442,17 +407,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CmekSettings)) { return super.equals(obj); } com.google.logging.v2.CmekSettings other = (com.google.logging.v2.CmekSettings) obj; - if (!getName().equals(other.getName())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; - if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,103 +446,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CmekSettings parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CmekSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CmekSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.CmekSettings parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.CmekSettings parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CmekSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CmekSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CmekSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CmekSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CmekSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.CmekSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CmekSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CmekSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CmekSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CmekSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes the customer-managed encryption key (CMEK) settings associated with
    * a project, folder, organization, billing account, or flexible resource.
@@ -589,32 +554,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.CmekSettings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.CmekSettings)
       com.google.logging.v2.CmekSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_CmekSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.CmekSettings.class,
-              com.google.logging.v2.CmekSettings.Builder.class);
+              com.google.logging.v2.CmekSettings.class, com.google.logging.v2.CmekSettings.Builder.class);
     }
 
     // Construct using com.google.logging.v2.CmekSettings.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -627,9 +593,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_CmekSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
     }
 
     @java.lang.Override
@@ -649,9 +615,7 @@ public com.google.logging.v2.CmekSettings build() {
     @java.lang.Override
     public com.google.logging.v2.CmekSettings buildPartial() {
       com.google.logging.v2.CmekSettings result = new com.google.logging.v2.CmekSettings(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -676,39 +640,38 @@ private void buildPartial0(com.google.logging.v2.CmekSettings result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.CmekSettings) {
-        return mergeFrom((com.google.logging.v2.CmekSettings) other);
+        return mergeFrom((com.google.logging.v2.CmekSettings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -763,37 +726,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                serviceAccountId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 34:
-              {
-                kmsKeyVersionName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              serviceAccountId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 34: {
+              kmsKeyVersionName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -803,25 +761,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -830,21 +785,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -852,35 +806,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -890,21 +837,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -914,8 +857,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -948,13 +889,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -963,8 +904,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -997,14 +936,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1012,8 +952,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1046,22 +984,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 2; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1094,7 +1028,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 2; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1104,8 +1037,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1138,14 +1069,12 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 2; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -1155,8 +1084,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1178,13 +1105,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_version_name = 4; - * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; @@ -1193,8 +1120,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1216,14 +1141,15 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 4; - * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -1231,8 +1157,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1254,22 +1178,18 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * 
* * string kms_key_version_name = 4; - * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1291,7 +1211,6 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * 
* * string kms_key_version_name = 4; - * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -1301,8 +1220,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1324,14 +1241,12 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 4; - * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000004; @@ -1341,8 +1256,6 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountId_ = ""; /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1359,13 +1272,13 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -1374,8 +1287,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1392,14 +1303,15 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -1407,8 +1319,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1425,22 +1335,18 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1457,7 +1363,6 @@ public Builder setServiceAccountId(java.lang.String value) {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1467,8 +1372,6 @@ public Builder clearServiceAccountId() { return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1485,23 +1388,21 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1511,12 +1412,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CmekSettings) } // @@protoc_insertion_point(class_scope:google.logging.v2.CmekSettings) private static final com.google.logging.v2.CmekSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CmekSettings(); } @@ -1525,27 +1426,27 @@ public static com.google.logging.v2.CmekSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CmekSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmekSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1560,4 +1461,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CmekSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java index 2624dd329..469594853 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java @@ -62,7 +62,7 @@ private CmekSettingsName(Builder builder) { pathTemplate = PROJECT; } - private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { + private CmekSettingsName(OrganizationBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); project = null; folder = null; @@ -70,7 +70,7 @@ private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { pathTemplate = ORGANIZATION; } - private CmekSettingsName(FolderCmekSettingsBuilder builder) { + private CmekSettingsName(FolderBuilder builder) { folder = Preconditions.checkNotNull(builder.getFolder()); project = null; organization = null; @@ -78,7 +78,7 @@ private CmekSettingsName(FolderCmekSettingsBuilder builder) { pathTemplate = FOLDER; } - private CmekSettingsName(BillingAccountCmekSettingsBuilder builder) { + private CmekSettingsName(BillingAccountBuilder builder) { billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); project = null; organization = null; @@ -110,22 +110,16 @@ public static Builder newProjectBuilder() { return new Builder(); } - /** @deprecated Please use {@link #newProjectBuilder()} instead */ - @Deprecated - public static Builder newProjectCmekSettingsBuilder() { - return new Builder(); - } - - public static OrganizationCmekSettingsBuilder newOrganizationCmekSettingsBuilder() { - return new OrganizationCmekSettingsBuilder(); + public static OrganizationBuilder newOrganizationBuilder() { + return new OrganizationBuilder(); } - public static FolderCmekSettingsBuilder newFolderCmekSettingsBuilder() { - return new FolderCmekSettingsBuilder(); + public static FolderBuilder newFolderBuilder() { + return new FolderBuilder(); } - public static BillingAccountCmekSettingsBuilder newBillingAccountCmekSettingsBuilder() { - return new BillingAccountCmekSettingsBuilder(); + public static BillingAccountBuilder newBillingAccountBuilder() { + return new BillingAccountBuilder(); } public Builder toBuilder() { @@ -140,40 +134,16 @@ public static CmekSettingsName ofProjectName(String project) { return newBuilder().setProject(project).build(); } - /** @deprecated Please use {@link #ofProjectName(String)} instead */ - @Deprecated - public static CmekSettingsName ofProjectCmekSettingsName(String project) { - return newBuilder().setProject(project).build(); - } - public static CmekSettingsName ofOrganizationName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); - } - - /** @deprecated Please use {@link #ofOrganizationName(String)} instead */ - @Deprecated - public static CmekSettingsName ofOrganizationCmekSettingsName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); + return newOrganizationBuilder().setOrganization(organization).build(); } public static CmekSettingsName ofFolderName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build(); - } - - /** @deprecated Please use {@link #ofFolderName(String)} instead */ - @Deprecated - public static CmekSettingsName ofFolderCmekSettingsName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build(); + return newFolderBuilder().setFolder(folder).build(); } public static CmekSettingsName ofBillingAccountName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); - } - - /** @deprecated Please use {@link #ofBillingAccountName(String)} instead */ - @Deprecated - public static CmekSettingsName ofBillingAccountCmekSettingsName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); + return newBillingAccountBuilder().setBillingAccount(billingAccount).build(); } public static String format(String project) { @@ -184,46 +154,16 @@ public static String formatProjectName(String project) { return newBuilder().setProject(project).build().toString(); } - /** @deprecated Please use {@link #formatProjectName(String)} instead */ - @Deprecated - public static String formatProjectCmekSettingsName(String project) { - return newBuilder().setProject(project).build().toString(); - } - public static String formatOrganizationName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build().toString(); - } - - /** @deprecated Please use {@link #formatOrganizationName(String)} instead */ - @Deprecated - public static String formatOrganizationCmekSettingsName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build().toString(); + return newOrganizationBuilder().setOrganization(organization).build().toString(); } public static String formatFolderName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build().toString(); - } - - /** @deprecated Please use {@link #formatFolderName(String)} instead */ - @Deprecated - public static String formatFolderCmekSettingsName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build().toString(); + return newFolderBuilder().setFolder(folder).build().toString(); } public static String formatBillingAccountName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder() - .setBillingAccount(billingAccount) - .build() - .toString(); - } - - /** @deprecated Please use {@link #formatBillingAccountName(String)} instead */ - @Deprecated - public static String formatBillingAccountCmekSettingsName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder() - .setBillingAccount(billingAccount) - .build() - .toString(); + return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); } public static CmekSettingsName parse(String formattedString) { @@ -232,16 +172,16 @@ public static CmekSettingsName parse(String formattedString) { } if (PROJECT.matches(formattedString)) { Map matchMap = PROJECT.match(formattedString); - return ofProjectCmekSettingsName(matchMap.get("project")); + return ofProjectName(matchMap.get("project")); } else if (ORGANIZATION.matches(formattedString)) { Map matchMap = ORGANIZATION.match(formattedString); - return ofOrganizationCmekSettingsName(matchMap.get("organization")); + return ofOrganizationName(matchMap.get("organization")); } else if (FOLDER.matches(formattedString)) { Map matchMap = FOLDER.match(formattedString); - return ofFolderCmekSettingsName(matchMap.get("folder")); + return ofFolderName(matchMap.get("folder")); } else if (BILLING_ACCOUNT.matches(formattedString)) { Map matchMap = BILLING_ACCOUNT.match(formattedString); - return ofBillingAccountCmekSettingsName(matchMap.get("billing_account")); + return ofBillingAccountName(matchMap.get("billing_account")); } throw new ValidationException("CmekSettingsName.parse: formattedString not in valid format"); } @@ -366,16 +306,16 @@ public CmekSettingsName build() { } /** Builder for organizations/{organization}/cmekSettings. */ - public static class OrganizationCmekSettingsBuilder { + public static class OrganizationBuilder { private String organization; - protected OrganizationCmekSettingsBuilder() {} + protected OrganizationBuilder() {} public String getOrganization() { return organization; } - public OrganizationCmekSettingsBuilder setOrganization(String organization) { + public OrganizationBuilder setOrganization(String organization) { this.organization = organization; return this; } @@ -386,16 +326,16 @@ public CmekSettingsName build() { } /** Builder for folders/{folder}/cmekSettings. */ - public static class FolderCmekSettingsBuilder { + public static class FolderBuilder { private String folder; - protected FolderCmekSettingsBuilder() {} + protected FolderBuilder() {} public String getFolder() { return folder; } - public FolderCmekSettingsBuilder setFolder(String folder) { + public FolderBuilder setFolder(String folder) { this.folder = folder; return this; } @@ -406,16 +346,16 @@ public CmekSettingsName build() { } /** Builder for billingAccounts/{billing_account}/cmekSettings. */ - public static class BillingAccountCmekSettingsBuilder { + public static class BillingAccountBuilder { private String billingAccount; - protected BillingAccountCmekSettingsBuilder() {} + protected BillingAccountBuilder() {} public String getBillingAccount() { return billingAccount; } - public BillingAccountCmekSettingsBuilder setBillingAccount(String billingAccount) { + public BillingAccountBuilder setBillingAccount(String billingAccount) { this.billingAccount = billingAccount; return this; } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java similarity index 86% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java index d5f6e50a6..37b54f72f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java @@ -1,57 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CmekSettingsOrBuilder - extends +public interface CmekSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CmekSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -84,13 +61,10 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -123,14 +97,12 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_name = 2; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -152,13 +124,10 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_version_name = 4; - * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -180,14 +149,12 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_version_name = 4; - * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -204,13 +171,10 @@ public interface CmekSettingsOrBuilder
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -227,8 +191,8 @@ public interface CmekSettingsOrBuilder
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString getServiceAccountIdBytes(); + com.google.protobuf.ByteString + getServiceAccountIdBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java index 18de516b8..3320ecb4b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Metadata for CopyLogEntries long running operations.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata} */ -public final class CopyLogEntriesMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyLogEntriesMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesMetadata) CopyLogEntriesMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyLogEntriesMetadata.newBuilder() to construct. private CopyLogEntriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CopyLogEntriesMetadata() { state_ = 0; writerIdentity_ = ""; @@ -45,37 +27,33 @@ private CopyLogEntriesMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyLogEntriesMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesMetadata.class, - com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + com.google.logging.v2.CopyLogEntriesMetadata.class, com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); } private int bitField0_; public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -83,14 +61,11 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -98,8 +73,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The create time of an operation.
    * 
@@ -114,14 +87,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -129,14 +99,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -144,8 +111,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -160,49 +125,37 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CANCELLATION_REQUESTED_FIELD_NUMBER = 4; private boolean cancellationRequested_ = false; /** - * - * *
    * Identifies whether the user has requested cancellation of the operation.
    * 
* * bool cancellation_requested = 4; - * * @return The cancellationRequested. */ @java.lang.Override @@ -213,14 +166,11 @@ public boolean getCancellationRequested() { public static final int REQUEST_FIELD_NUMBER = 5; private com.google.logging.v2.CopyLogEntriesRequest request_; /** - * - * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return Whether the request field is set. */ @java.lang.Override @@ -228,25 +178,18 @@ public boolean hasRequest() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return The request. */ @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequest getRequest() { - return request_ == null - ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; } /** - * - * *
    * CopyLogEntries RPC request.
    * 
@@ -255,22 +198,17 @@ public com.google.logging.v2.CopyLogEntriesRequest getRequest() { */ @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() { - return request_ == null - ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; } public static final int PROGRESS_FIELD_NUMBER = 6; private int progress_ = 0; /** - * - * *
    * Estimated progress of the operation (0 - 100%).
    * 
* * int32 progress = 6; - * * @return The progress. */ @java.lang.Override @@ -279,12 +217,9 @@ public int getProgress() { } public static final int WRITER_IDENTITY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object writerIdentity_ = ""; /** - * - * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -296,7 +231,6 @@ public int getProgress() {
    * 
* * string writer_identity = 7; - * * @return The writerIdentity. */ @java.lang.Override @@ -305,15 +239,14 @@ public java.lang.String getWriterIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; } } /** - * - * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -325,15 +258,16 @@ public java.lang.String getWriterIdentity() {
    * 
* * string writer_identity = 7; - * * @return The bytes for writerIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString getWriterIdentityBytes() { + public com.google.protobuf.ByteString + getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -342,7 +276,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } @@ -386,22 +320,28 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (cancellationRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, cancellationRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, cancellationRequested_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequest()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRequest()); } if (progress_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progress_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, writerIdentity_); @@ -414,30 +354,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CopyLogEntriesMetadata)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesMetadata other = - (com.google.logging.v2.CopyLogEntriesMetadata) obj; + com.google.logging.v2.CopyLogEntriesMetadata other = (com.google.logging.v2.CopyLogEntriesMetadata) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; - if (getCancellationRequested() != other.getCancellationRequested()) return false; + if (getCancellationRequested() + != other.getCancellationRequested()) return false; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest().equals(other.getRequest())) return false; + if (!getRequest() + .equals(other.getRequest())) return false; } - if (getProgress() != other.getProgress()) return false; - if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; + if (getProgress() + != other.getProgress()) return false; + if (!getWriterIdentity() + .equals(other.getWriterIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,7 +405,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + CANCELLATION_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancellationRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancellationRequested()); if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); @@ -474,127 +420,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for CopyLogEntries long running operations.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesMetadata) com.google.logging.v2.CopyLogEntriesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesMetadata.class, - com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + com.google.logging.v2.CopyLogEntriesMetadata.class, com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesMetadata.newBuilder() @@ -602,19 +541,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getRequestFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override @@ -663,11 +602,8 @@ public com.google.logging.v2.CopyLogEntriesMetadata build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { - com.google.logging.v2.CopyLogEntriesMetadata result = - new com.google.logging.v2.CopyLogEntriesMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CopyLogEntriesMetadata result = new com.google.logging.v2.CopyLogEntriesMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -676,11 +612,15 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -690,7 +630,9 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) result.cancellationRequested_ = cancellationRequested_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + result.request_ = requestBuilder_ == null + ? request_ + : requestBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -706,39 +648,38 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CopyLogEntriesMetadata) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata) other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata)other); } else { super.mergeFrom(other); return this; @@ -796,55 +737,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - cancellationRequested_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - progress_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - writerIdentity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + cancellationRequested_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + progress_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + writerIdentity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -854,38 +793,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -896,8 +825,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The create time of an operation.
      * 
@@ -918,15 +845,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -937,8 +863,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -947,9 +871,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -964,8 +888,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -983,8 +905,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -997,8 +917,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The create time of an operation.
      * 
@@ -1009,12 +927,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The create time of an operation.
      * 
@@ -1022,17 +939,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1040,33 +954,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1077,8 +982,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1099,15 +1002,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1118,8 +1020,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1128,9 +1028,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1145,8 +1045,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1164,8 +1062,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1178,8 +1074,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1190,12 +1084,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1203,17 +1096,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1221,29 +1111,22 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1254,31 +1137,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1292,14 +1168,11 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1309,16 +1182,13 @@ public Builder clearState() { return this; } - private boolean cancellationRequested_; + private boolean cancellationRequested_ ; /** - * - * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; - * * @return The cancellationRequested. */ @java.lang.Override @@ -1326,14 +1196,11 @@ public boolean getCancellationRequested() { return cancellationRequested_; } /** - * - * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; - * * @param value The cancellationRequested to set. * @return This builder for chaining. */ @@ -1345,14 +1212,11 @@ public Builder setCancellationRequested(boolean value) { return this; } /** - * - * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; - * * @return This builder for chaining. */ public Builder clearCancellationRequested() { @@ -1364,47 +1228,34 @@ public Builder clearCancellationRequested() { private com.google.logging.v2.CopyLogEntriesRequest request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, - com.google.logging.v2.CopyLogEntriesRequest.Builder, - com.google.logging.v2.CopyLogEntriesRequestOrBuilder> - requestBuilder_; + com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder> requestBuilder_; /** - * - * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return The request. */ public com.google.logging.v2.CopyLogEntriesRequest getRequest() { if (requestBuilder_ == null) { - return request_ == null - ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1425,15 +1276,14 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; */ - public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { + public Builder setRequest( + com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); } else { @@ -1444,8 +1294,6 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder bu return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1454,9 +1302,9 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder bu */ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && request_ != null - && request_ != com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + request_ != null && + request_ != com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -1471,8 +1319,6 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1490,8 +1336,6 @@ public Builder clearRequest() { return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1504,8 +1348,6 @@ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { return getRequestFieldBuilder().getBuilder(); } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1516,14 +1358,11 @@ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder( if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null - ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() - : request_; + return request_ == null ? + com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; } } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1531,32 +1370,26 @@ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder( * .google.logging.v2.CopyLogEntriesRequest request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, - com.google.logging.v2.CopyLogEntriesRequest.Builder, - com.google.logging.v2.CopyLogEntriesRequestOrBuilder> + com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, - com.google.logging.v2.CopyLogEntriesRequest.Builder, - com.google.logging.v2.CopyLogEntriesRequestOrBuilder>( - getRequest(), getParentForChildren(), isClean()); + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); request_ = null; } return requestBuilder_; } - private int progress_; + private int progress_ ; /** - * - * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; - * * @return The progress. */ @java.lang.Override @@ -1564,14 +1397,11 @@ public int getProgress() { return progress_; } /** - * - * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; - * * @param value The progress to set. * @return This builder for chaining. */ @@ -1583,14 +1413,11 @@ public Builder setProgress(int value) { return this; } /** - * - * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; - * * @return This builder for chaining. */ public Builder clearProgress() { @@ -1602,8 +1429,6 @@ public Builder clearProgress() { private java.lang.Object writerIdentity_ = ""; /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1615,13 +1440,13 @@ public Builder clearProgress() {
      * 
* * string writer_identity = 7; - * * @return The writerIdentity. */ public java.lang.String getWriterIdentity() { java.lang.Object ref = writerIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; @@ -1630,8 +1455,6 @@ public java.lang.String getWriterIdentity() { } } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1643,14 +1466,15 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 7; - * * @return The bytes for writerIdentity. */ - public com.google.protobuf.ByteString getWriterIdentityBytes() { + public com.google.protobuf.ByteString + getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -1658,8 +1482,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1671,22 +1493,18 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
      * 
* * string writer_identity = 7; - * * @param value The writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriterIdentity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writerIdentity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1698,7 +1516,6 @@ public Builder setWriterIdentity(java.lang.String value) {
      * 
* * string writer_identity = 7; - * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -1708,8 +1525,6 @@ public Builder clearWriterIdentity() { return this; } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1721,23 +1536,21 @@ public Builder clearWriterIdentity() {
      * 
* * string writer_identity = 7; - * * @param value The bytes for writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriterIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writerIdentity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1747,12 +1560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesMetadata) private static final com.google.logging.v2.CopyLogEntriesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesMetadata(); } @@ -1761,27 +1574,27 @@ public static com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1796,4 +1609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java index 6b57a4bc3..841942a29 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CopyLogEntriesMetadataOrBuilder - extends +public interface CopyLogEntriesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The create time of an operation.
    * 
@@ -60,32 +36,24 @@ public interface CopyLogEntriesMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The end time of an operation.
    * 
@@ -95,70 +63,53 @@ public interface CopyLogEntriesMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ com.google.logging.v2.OperationState getState(); /** - * - * *
    * Identifies whether the user has requested cancellation of the operation.
    * 
* * bool cancellation_requested = 4; - * * @return The cancellationRequested. */ boolean getCancellationRequested(); /** - * - * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return Whether the request field is set. */ boolean hasRequest(); /** - * - * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; - * * @return The request. */ com.google.logging.v2.CopyLogEntriesRequest getRequest(); /** - * - * *
    * CopyLogEntries RPC request.
    * 
@@ -168,21 +119,16 @@ public interface CopyLogEntriesMetadataOrBuilder com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder(); /** - * - * *
    * Estimated progress of the operation (0 - 100%).
    * 
* * int32 progress = 6; - * * @return The progress. */ int getProgress(); /** - * - * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -194,13 +140,10 @@ public interface CopyLogEntriesMetadataOrBuilder
    * 
* * string writer_identity = 7; - * * @return The writerIdentity. */ java.lang.String getWriterIdentity(); /** - * - * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -212,8 +155,8 @@ public interface CopyLogEntriesMetadataOrBuilder
    * 
* * string writer_identity = 7; - * * @return The bytes for writerIdentity. */ - com.google.protobuf.ByteString getWriterIdentityBytes(); + com.google.protobuf.ByteString + getWriterIdentityBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java index 71352f5bb..43c844765 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to CopyLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest} */ -public final class CopyLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyLogEntriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesRequest) CopyLogEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyLogEntriesRequest.newBuilder() to construct. private CopyLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CopyLogEntriesRequest() { name_ = ""; filter_ = ""; @@ -46,32 +28,28 @@ private CopyLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesRequest.class, - com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + com.google.logging.v2.CopyLogEntriesRequest.class, com.google.logging.v2.CopyLogEntriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,19 +102,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -146,30 +119,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -178,18 +151,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int DESTINATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object destination_ = ""; /** - * - * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ @java.lang.Override @@ -198,29 +167,29 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** - * - * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destination_ = b; return b; } else { @@ -229,7 +198,6 @@ public com.google.protobuf.ByteString getDestinationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -277,17 +246,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CopyLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesRequest other = - (com.google.logging.v2.CopyLogEntriesRequest) obj; + com.google.logging.v2.CopyLogEntriesRequest other = (com.google.logging.v2.CopyLogEntriesRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDestination().equals(other.getDestination())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDestination() + .equals(other.getDestination())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,136 +281,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to CopyLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesRequest) com.google.logging.v2.CopyLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesRequest.class, - com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + com.google.logging.v2.CopyLogEntriesRequest.class, com.google.logging.v2.CopyLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override @@ -472,11 +439,8 @@ public com.google.logging.v2.CopyLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequest buildPartial() { - com.google.logging.v2.CopyLogEntriesRequest result = - new com.google.logging.v2.CopyLogEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CopyLogEntriesRequest result = new com.google.logging.v2.CopyLogEntriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -498,39 +462,38 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CopyLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -580,31 +543,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - destination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + destination_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,13 +573,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -630,13 +586,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -645,8 +601,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -656,14 +610,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -671,8 +626,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -682,22 +635,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -707,7 +656,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -717,8 +665,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -728,14 +674,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -745,21 +689,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -768,22 +710,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -791,37 +732,30 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -831,22 +765,18 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -856,20 +786,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object destination_ = ""; /** - * - * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ public java.lang.String getDestination() { java.lang.Object ref = destination_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; @@ -878,21 +806,20 @@ public java.lang.String getDestination() { } } /** - * - * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destination_ = b; return b; } else { @@ -900,35 +827,28 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestination( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destination_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestination() { @@ -938,30 +858,26 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destination_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -971,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesRequest) private static final com.google.logging.v2.CopyLogEntriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesRequest(); } @@ -985,27 +901,27 @@ public static com.google.logging.v2.CopyLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java index cf56ad132..bd255965e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CopyLogEntriesRequestOrBuilder - extends +public interface CopyLogEntriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -36,13 +18,10 @@ public interface CopyLogEntriesRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -52,60 +31,50 @@ public interface CopyLogEntriesRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ java.lang.String getDestination(); /** - * - * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ - com.google.protobuf.ByteString getDestinationBytes(); + com.google.protobuf.ByteString + getDestinationBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java index a9ed895af..453deff7f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java @@ -1,77 +1,56 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Response type for CopyLogEntries long running operations.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse} */ -public final class CopyLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyLogEntriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesResponse) CopyLogEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyLogEntriesResponse.newBuilder() to construct. private CopyLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CopyLogEntriesResponse() {} + private CopyLogEntriesResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesResponse.class, - com.google.logging.v2.CopyLogEntriesResponse.Builder.class); + com.google.logging.v2.CopyLogEntriesResponse.class, com.google.logging.v2.CopyLogEntriesResponse.Builder.class); } public static final int LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER = 1; private long logEntriesCopiedCount_ = 0L; /** - * - * *
    * Number of log entries copied.
    * 
* * int64 log_entries_copied_count = 1; - * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -80,7 +59,6 @@ public long getLogEntriesCopiedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,7 +70,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (logEntriesCopiedCount_ != 0L) { output.writeInt64(1, logEntriesCopiedCount_); } @@ -106,7 +85,8 @@ public int getSerializedSize() { size = 0; if (logEntriesCopiedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, logEntriesCopiedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, logEntriesCopiedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -116,15 +96,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CopyLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesResponse other = - (com.google.logging.v2.CopyLogEntriesResponse) obj; + com.google.logging.v2.CopyLogEntriesResponse other = (com.google.logging.v2.CopyLogEntriesResponse) obj; - if (getLogEntriesCopiedCount() != other.getLogEntriesCopiedCount()) return false; + if (getLogEntriesCopiedCount() + != other.getLogEntriesCopiedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -137,142 +117,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLogEntriesCopiedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLogEntriesCopiedCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response type for CopyLogEntries long running operations.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesResponse) com.google.logging.v2.CopyLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesResponse.class, - com.google.logging.v2.CopyLogEntriesResponse.Builder.class); + com.google.logging.v2.CopyLogEntriesResponse.class, com.google.logging.v2.CopyLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -282,9 +259,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override @@ -303,11 +280,8 @@ public com.google.logging.v2.CopyLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesResponse buildPartial() { - com.google.logging.v2.CopyLogEntriesResponse result = - new com.google.logging.v2.CopyLogEntriesResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CopyLogEntriesResponse result = new com.google.logging.v2.CopyLogEntriesResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -323,39 +297,38 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CopyLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -393,19 +366,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - logEntriesCopiedCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + logEntriesCopiedCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,19 +386,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long logEntriesCopiedCount_; + private long logEntriesCopiedCount_ ; /** - * - * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; - * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -435,14 +402,11 @@ public long getLogEntriesCopiedCount() { return logEntriesCopiedCount_; } /** - * - * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; - * * @param value The logEntriesCopiedCount to set. * @return This builder for chaining. */ @@ -454,14 +418,11 @@ public Builder setLogEntriesCopiedCount(long value) { return this; } /** - * - * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; - * * @return This builder for chaining. */ public Builder clearLogEntriesCopiedCount() { @@ -470,9 +431,9 @@ public Builder clearLogEntriesCopiedCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -482,12 +443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesResponse) private static final com.google.logging.v2.CopyLogEntriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesResponse(); } @@ -496,27 +457,27 @@ public static com.google.logging.v2.CopyLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -531,4 +492,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000..7f03a62c4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface CopyLogEntriesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of log entries copied.
+   * 
+ * + * int64 log_entries_copied_count = 1; + * @return The logEntriesCopiedCount. + */ + long getLogEntriesCopiedCount(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java index f2342adda..811bf9907 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `CreateBucket`.
  * 
* * Protobuf type {@code google.logging.v2.CreateBucketRequest} */ -public final class CreateBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateBucketRequest) CreateBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBucketRequest.newBuilder() to construct. private CreateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBucketRequest() { parent_ = ""; bucketId_ = ""; @@ -45,33 +27,29 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateBucketRequest.class, - com.google.logging.v2.CreateBucketRequest.Builder.class); + com.google.logging.v2.CreateBucketRequest.class, com.google.logging.v2.CreateBucketRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource in which to create the log bucket:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -94,15 +69,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource in which to create the log bucket:
    *
@@ -113,18 +87,17 @@ public java.lang.String getParent() {
    *   `"projects/my-project/locations/global"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -133,12 +106,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int BUCKET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object bucketId_ = ""; /** - * - * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -146,7 +116,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -155,15 +124,14 @@ public java.lang.String getBucketId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; } } /** - * - * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -171,15 +139,16 @@ public java.lang.String getBucketId() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketId_ = b; return b; } else { @@ -190,8 +159,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { public static final int BUCKET_FIELD_NUMBER = 3; private com.google.logging.v2.LogBucket bucket_; /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -199,7 +166,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -207,8 +173,6 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -216,7 +180,6 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -224,8 +187,6 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -240,7 +201,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -252,7 +212,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -278,7 +239,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketId_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBucket());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getBucket());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -288,19 +250,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.CreateBucketRequest)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.CreateBucketRequest other =
-        (com.google.logging.v2.CreateBucketRequest) obj;
+    com.google.logging.v2.CreateBucketRequest other = (com.google.logging.v2.CreateBucketRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getBucketId().equals(other.getBucketId())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getBucketId()
+        .equals(other.getBucketId())) return false;
     if (hasBucket() != other.hasBucket()) return false;
     if (hasBucket()) {
-      if (!getBucket().equals(other.getBucket())) return false;
+      if (!getBucket()
+          .equals(other.getBucket())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -326,127 +290,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateBucketRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateBucketRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.CreateBucketRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The parameters to `CreateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.CreateBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateBucketRequest) com.google.logging.v2.CreateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateBucketRequest.class, - com.google.logging.v2.CreateBucketRequest.Builder.class); + com.google.logging.v2.CreateBucketRequest.class, com.google.logging.v2.CreateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.CreateBucketRequest.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBucketFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override @@ -501,11 +458,8 @@ public com.google.logging.v2.CreateBucketRequest build() { @java.lang.Override public com.google.logging.v2.CreateBucketRequest buildPartial() { - com.google.logging.v2.CreateBucketRequest result = - new com.google.logging.v2.CreateBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateBucketRequest result = new com.google.logging.v2.CreateBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,7 +474,9 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -530,39 +486,38 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateBucketRequest) { - return mergeFrom((com.google.logging.v2.CreateBucketRequest) other); + return mergeFrom((com.google.logging.v2.CreateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -610,31 +565,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -644,13 +597,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -661,16 +611,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,8 +627,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -691,17 +637,16 @@ public java.lang.String getParent() {
      *   `"projects/my-project/locations/global"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -709,8 +654,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -721,25 +664,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"projects/my-project/locations/global"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -750,10 +687,7 @@ public Builder setParent(java.lang.String value) {
      *   `"projects/my-project/locations/global"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -763,8 +697,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -775,17 +707,13 @@ public Builder clearParent() {
      *   `"projects/my-project/locations/global"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -795,8 +723,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object bucketId_ = ""; /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -804,13 +730,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; @@ -819,8 +745,6 @@ public java.lang.String getBucketId() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -828,14 +752,15 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketId_ = b; return b; } else { @@ -843,8 +768,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -852,22 +775,18 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucketId to set. * @return This builder for chaining. */ - public Builder setBucketId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -875,7 +794,6 @@ public Builder setBucketId(java.lang.String value) {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -885,8 +803,6 @@ public Builder clearBucketId() { return this; } /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -894,14 +810,12 @@ public Builder clearBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bucketId to set. * @return This builder for chaining. */ - public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketId_ = value; bitField0_ |= 0x00000002; @@ -911,39 +825,28 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogBucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> - bucketBuilder_; + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketBuilder_; /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bucket. */ public com.google.logging.v2.LogBucket getBucket() { @@ -954,16 +857,13 @@ public com.google.logging.v2.LogBucket getBucket() { } } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { @@ -979,18 +879,16 @@ public Builder setBucket(com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBucket( + com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketBuilder_ == null) { bucket_ = builderForValue.build(); } else { @@ -1001,22 +899,19 @@ public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue return this; } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && bucket_ != null - && bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + bucket_ != null && + bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { getBucketBuilder().mergeFrom(value); } else { bucket_ = value; @@ -1031,16 +926,13 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1053,16 +945,13 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { bitField0_ |= 0x00000004; @@ -1070,55 +959,47 @@ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { return getBucketFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilder(); } else { - return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; + return bucket_ == null ? + com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } } /** - * - * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { - bucketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder>( - getBucket(), getParentForChildren(), isClean()); + bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( + getBucket(), + getParentForChildren(), + isClean()); bucket_ = null; } return bucketBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateBucketRequest) private static final com.google.logging.v2.CreateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateBucketRequest(); } @@ -1142,27 +1023,27 @@ public static com.google.logging.v2.CreateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1177,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java index 8c0e24843..014f9cf07 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateBucketRequestOrBuilder - extends +public interface CreateBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource in which to create the log bucket:
    *
@@ -37,16 +19,11 @@ public interface CreateBucketRequestOrBuilder
    *   `"projects/my-project/locations/global"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource in which to create the log bucket:
    *
@@ -57,17 +34,13 @@ public interface CreateBucketRequestOrBuilder
    *   `"projects/my-project/locations/global"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -75,13 +48,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ java.lang.String getBucketId(); /** - * - * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -89,14 +59,12 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString getBucketIdBytes(); + com.google.protobuf.ByteString + getBucketIdBytes(); /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -104,13 +72,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ boolean hasBucket(); /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -118,13 +83,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ com.google.logging.v2.LogBucket getBucket(); /** - * - * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
similarity index 65%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
index 77d3052e7..173f943ff 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
@@ -1,76 +1,54 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * The parameters to `CreateExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.CreateExclusionRequest} */ -public final class CreateExclusionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateExclusionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateExclusionRequest) CreateExclusionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateExclusionRequest.newBuilder() to construct. private CreateExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateExclusionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateExclusionRequest.class, - com.google.logging.v2.CreateExclusionRequest.Builder.class); + com.google.logging.v2.CreateExclusionRequest.class, com.google.logging.v2.CreateExclusionRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -97,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -120,18 +94,17 @@ public java.lang.String getParent() {
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -142,16 +115,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int EXCLUSION_FIELD_NUMBER = 2; private com.google.logging.v2.LogExclusion exclusion_; /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ @java.lang.Override @@ -159,44 +128,32 @@ public boolean hasExclusion() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusion() { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +165,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,7 +186,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExclusion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,18 +197,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CreateExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.CreateExclusionRequest other = - (com.google.logging.v2.CreateExclusionRequest) obj; + com.google.logging.v2.CreateExclusionRequest other = (com.google.logging.v2.CreateExclusionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasExclusion() != other.hasExclusion()) return false; if (hasExclusion()) { - if (!getExclusion().equals(other.getExclusion())) return false; + if (!getExclusion() + .equals(other.getExclusion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -273,127 +233,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateExclusionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateExclusionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CreateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `CreateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.CreateExclusionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateExclusionRequest) com.google.logging.v2.CreateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateExclusionRequest.class, - com.google.logging.v2.CreateExclusionRequest.Builder.class); + com.google.logging.v2.CreateExclusionRequest.class, com.google.logging.v2.CreateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.CreateExclusionRequest.newBuilder() @@ -401,17 +354,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExclusionFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override @@ -447,11 +400,8 @@ public com.google.logging.v2.CreateExclusionRequest build() { @java.lang.Override public com.google.logging.v2.CreateExclusionRequest buildPartial() { - com.google.logging.v2.CreateExclusionRequest result = - new com.google.logging.v2.CreateExclusionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateExclusionRequest result = new com.google.logging.v2.CreateExclusionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,7 +413,9 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null + ? exclusion_ + : exclusionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -473,39 +425,38 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateExclusionRequest) { - return mergeFrom((com.google.logging.v2.CreateExclusionRequest) other); + return mergeFrom((com.google.logging.v2.CreateExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -548,25 +499,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExclusionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,13 +526,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -597,16 +544,14 @@ public Builder mergeFrom(
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,8 +560,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -631,17 +574,16 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -649,8 +591,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -665,25 +605,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -698,10 +632,7 @@ public Builder setParent(java.lang.String value) {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -711,8 +642,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -727,17 +656,13 @@ public Builder clearParent() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,61 +672,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogExclusion exclusion_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> - exclusionBuilder_; + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionBuilder_; /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ public boolean hasExclusion() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ public com.google.logging.v2.LogExclusion getExclusion() { if (exclusionBuilder_ == null) { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } else { return exclusionBuilder_.getMessage(); } } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -817,18 +723,15 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder setExclusion( + com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionBuilder_ == null) { exclusion_ = builderForValue.build(); } else { @@ -839,22 +742,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo return this; } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && exclusion_ != null - && exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + exclusion_ != null && + exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { getExclusionBuilder().mergeFrom(value); } else { exclusion_ = value; @@ -869,16 +768,12 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearExclusion() { bitField0_ = (bitField0_ & ~0x00000002); @@ -891,16 +786,12 @@ public Builder clearExclusion() { return this; } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { bitField0_ |= 0x00000002; @@ -908,57 +799,45 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { return getExclusionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { return exclusionBuilder_.getMessageOrBuilder(); } else { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? + com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } } /** - * - * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> getExclusionFieldBuilder() { if (exclusionBuilder_ == null) { - exclusionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder>( - getExclusion(), getParentForChildren(), isClean()); + exclusionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( + getExclusion(), + getParentForChildren(), + isClean()); exclusion_ = null; } return exclusionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateExclusionRequest) private static final com.google.logging.v2.CreateExclusionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateExclusionRequest(); } @@ -982,27 +861,27 @@ public static com.google.logging.v2.CreateExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java index 1678c2a7b..7f0e9801a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateExclusionRequestOrBuilder - extends +public interface CreateExclusionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateExclusionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -41,16 +23,11 @@ public interface CreateExclusionRequestOrBuilder
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -65,52 +42,39 @@ public interface CreateExclusionRequestOrBuilder
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ boolean hasExclusion(); /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ com.google.logging.v2.LogExclusion getExclusion(); /** - * - * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java index a72b8bc84..555d01b07 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to CreateLink.
  * 
* * Protobuf type {@code google.logging.v2.CreateLinkRequest} */ -public final class CreateLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateLinkRequest) CreateLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateLinkRequest.newBuilder() to construct. private CreateLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateLinkRequest() { parent_ = ""; linkId_ = ""; @@ -45,33 +27,29 @@ private CreateLinkRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLinkRequest.class, - com.google.logging.v2.CreateLinkRequest.Builder.class); + com.google.logging.v2.CreateLinkRequest.class, com.google.logging.v2.CreateLinkRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -81,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,15 +68,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -111,18 +85,17 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -133,14 +106,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int LINK_FIELD_NUMBER = 2; private com.google.logging.v2.Link link_; /** - * - * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the link field is set. */ @java.lang.Override @@ -148,14 +118,11 @@ public boolean hasLink() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The link. */ @java.lang.Override @@ -163,8 +130,6 @@ public com.google.logging.v2.Link getLink() { return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; } /** - * - * *
    * Required. The new link.
    * 
@@ -177,12 +142,9 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { } public static final int LINK_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object linkId_ = ""; /** - * - * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -190,7 +152,6 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The linkId. */ @java.lang.Override @@ -199,15 +160,14 @@ public java.lang.String getLinkId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); linkId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -215,15 +175,16 @@ public java.lang.String getLinkId() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for linkId. */ @java.lang.Override - public com.google.protobuf.ByteString getLinkIdBytes() { + public com.google.protobuf.ByteString + getLinkIdBytes() { java.lang.Object ref = linkId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); linkId_ = b; return b; } else { @@ -232,7 +193,6 @@ public com.google.protobuf.ByteString getLinkIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -267,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLink()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLink()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, linkId_); @@ -280,19 +242,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CreateLinkRequest)) { return super.equals(obj); } com.google.logging.v2.CreateLinkRequest other = (com.google.logging.v2.CreateLinkRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasLink() != other.hasLink()) return false; if (hasLink()) { - if (!getLink().equals(other.getLink())) return false; + if (!getLink() + .equals(other.getLink())) return false; } - if (!getLinkId().equals(other.getLinkId())) return false; + if (!getLinkId() + .equals(other.getLinkId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,127 +282,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateLinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CreateLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to CreateLink.
    * 
* * Protobuf type {@code google.logging.v2.CreateLinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLinkRequest) com.google.logging.v2.CreateLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLinkRequest.class, - com.google.logging.v2.CreateLinkRequest.Builder.class); + com.google.logging.v2.CreateLinkRequest.class, com.google.logging.v2.CreateLinkRequest.Builder.class); } // Construct using com.google.logging.v2.CreateLinkRequest.newBuilder() @@ -445,17 +403,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLinkFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override @@ -492,11 +450,8 @@ public com.google.logging.v2.CreateLinkRequest build() { @java.lang.Override public com.google.logging.v2.CreateLinkRequest buildPartial() { - com.google.logging.v2.CreateLinkRequest result = - new com.google.logging.v2.CreateLinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateLinkRequest result = new com.google.logging.v2.CreateLinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -508,7 +463,9 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.link_ = linkBuilder_ == null ? link_ : linkBuilder_.build(); + result.link_ = linkBuilder_ == null + ? link_ + : linkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -521,39 +478,38 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateLinkRequest) { - return mergeFrom((com.google.logging.v2.CreateLinkRequest) other); + return mergeFrom((com.google.logging.v2.CreateLinkRequest)other); } else { super.mergeFrom(other); return this; @@ -601,31 +557,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getLinkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - linkId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLinkFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + linkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -635,13 +589,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -651,16 +602,14 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -669,8 +618,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -680,17 +627,16 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -698,8 +644,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -709,25 +653,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -737,10 +675,7 @@ public Builder setParent(java.lang.String value) {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -750,8 +685,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -761,17 +694,13 @@ public Builder clearParent() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -781,33 +710,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.Link link_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder> - linkBuilder_; + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> linkBuilder_; /** - * - * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the link field is set. */ public boolean hasLink() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The link. */ public com.google.logging.v2.Link getLink() { @@ -818,8 +738,6 @@ public com.google.logging.v2.Link getLink() { } } /** - * - * *
      * Required. The new link.
      * 
@@ -840,15 +758,14 @@ public Builder setLink(com.google.logging.v2.Link value) { return this; } /** - * - * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { + public Builder setLink( + com.google.logging.v2.Link.Builder builderForValue) { if (linkBuilder_ == null) { link_ = builderForValue.build(); } else { @@ -859,8 +776,6 @@ public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -869,9 +784,9 @@ public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { */ public Builder mergeLink(com.google.logging.v2.Link value) { if (linkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && link_ != null - && link_ != com.google.logging.v2.Link.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + link_ != null && + link_ != com.google.logging.v2.Link.getDefaultInstance()) { getLinkBuilder().mergeFrom(value); } else { link_ = value; @@ -886,8 +801,6 @@ public Builder mergeLink(com.google.logging.v2.Link value) { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -905,8 +818,6 @@ public Builder clearLink() { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -919,8 +830,6 @@ public com.google.logging.v2.Link.Builder getLinkBuilder() { return getLinkFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new link.
      * 
@@ -931,12 +840,11 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { if (linkBuilder_ != null) { return linkBuilder_.getMessageOrBuilder(); } else { - return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; + return link_ == null ? + com.google.logging.v2.Link.getDefaultInstance() : link_; } } /** - * - * *
      * Required. The new link.
      * 
@@ -944,16 +852,14 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder> + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> getLinkFieldBuilder() { if (linkBuilder_ == null) { - linkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder>(getLink(), getParentForChildren(), isClean()); + linkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder>( + getLink(), + getParentForChildren(), + isClean()); link_ = null; } return linkBuilder_; @@ -961,8 +867,6 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { private java.lang.Object linkId_ = ""; /** - * - * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -970,13 +874,13 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The linkId. */ public java.lang.String getLinkId() { java.lang.Object ref = linkId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); linkId_ = s; return s; @@ -985,8 +889,6 @@ public java.lang.String getLinkId() { } } /** - * - * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -994,14 +896,15 @@ public java.lang.String getLinkId() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for linkId. */ - public com.google.protobuf.ByteString getLinkIdBytes() { + public com.google.protobuf.ByteString + getLinkIdBytes() { java.lang.Object ref = linkId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); linkId_ = b; return b; } else { @@ -1009,8 +912,6 @@ public com.google.protobuf.ByteString getLinkIdBytes() { } } /** - * - * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -1018,22 +919,18 @@ public com.google.protobuf.ByteString getLinkIdBytes() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The linkId to set. * @return This builder for chaining. */ - public Builder setLinkId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } linkId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -1041,7 +938,6 @@ public Builder setLinkId(java.lang.String value) {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLinkId() { @@ -1051,8 +947,6 @@ public Builder clearLinkId() { return this; } /** - * - * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -1060,23 +954,21 @@ public Builder clearLinkId() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for linkId to set. * @return This builder for chaining. */ - public Builder setLinkIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); linkId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateLinkRequest) private static final com.google.logging.v2.CreateLinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateLinkRequest(); } @@ -1100,27 +992,27 @@ public static com.google.logging.v2.CreateLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java index 3d7b77e29..cad2497a8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateLinkRequestOrBuilder - extends +public interface CreateLinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -36,16 +18,11 @@ public interface CreateLinkRequestOrBuilder
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -55,41 +32,31 @@ public interface CreateLinkRequestOrBuilder
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the link field is set. */ boolean hasLink(); /** - * - * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The link. */ com.google.logging.v2.Link getLink(); /** - * - * *
    * Required. The new link.
    * 
@@ -99,8 +66,6 @@ public interface CreateLinkRequestOrBuilder com.google.logging.v2.LinkOrBuilder getLinkOrBuilder(); /** - * - * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -108,13 +73,10 @@ public interface CreateLinkRequestOrBuilder
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The linkId. */ java.lang.String getLinkId(); /** - * - * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -122,8 +84,8 @@ public interface CreateLinkRequestOrBuilder
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for linkId. */ - com.google.protobuf.ByteString getLinkIdBytes(); + com.google.protobuf.ByteString + getLinkIdBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java index c28534779..f79bfbc0b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to CreateLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.CreateLogMetricRequest} */ -public final class CreateLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateLogMetricRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateLogMetricRequest) CreateLogMetricRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateLogMetricRequest.newBuilder() to construct. private CreateLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateLogMetricRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLogMetricRequest.class, - com.google.logging.v2.CreateLogMetricRequest.Builder.class); + com.google.logging.v2.CreateLogMetricRequest.class, com.google.logging.v2.CreateLogMetricRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * The new metric must be provided in the request.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -108,18 +82,17 @@ public java.lang.String getParent() {
    * The new metric must be provided in the request.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int METRIC_FIELD_NUMBER = 2; private com.google.logging.v2.LogMetric metric_; /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the metric field is set. */ @java.lang.Override @@ -146,15 +116,12 @@ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The metric. */ @java.lang.Override @@ -162,8 +129,6 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
@@ -177,7 +142,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -189,7 +153,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -209,7 +174,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMetric());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -219,18 +185,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.CreateLogMetricRequest)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.CreateLogMetricRequest other =
-        (com.google.logging.v2.CreateLogMetricRequest) obj;
+    com.google.logging.v2.CreateLogMetricRequest other = (com.google.logging.v2.CreateLogMetricRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasMetric() != other.hasMetric()) return false;
     if (hasMetric()) {
-      if (!getMetric().equals(other.getMetric())) return false;
+      if (!getMetric()
+          .equals(other.getMetric())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -254,127 +221,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.CreateLogMetricRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The parameters to CreateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.CreateLogMetricRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLogMetricRequest) com.google.logging.v2.CreateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLogMetricRequest.class, - com.google.logging.v2.CreateLogMetricRequest.Builder.class); + com.google.logging.v2.CreateLogMetricRequest.class, com.google.logging.v2.CreateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.CreateLogMetricRequest.newBuilder() @@ -382,17 +342,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMetricFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override @@ -428,11 +388,8 @@ public com.google.logging.v2.CreateLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.CreateLogMetricRequest buildPartial() { - com.google.logging.v2.CreateLogMetricRequest result = - new com.google.logging.v2.CreateLogMetricRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateLogMetricRequest result = new com.google.logging.v2.CreateLogMetricRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,7 +401,9 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null + ? metric_ + : metricBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -454,39 +413,38 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.CreateLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.CreateLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -529,25 +487,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetricFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,13 +514,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -572,16 +526,14 @@ public Builder mergeFrom(
      * The new metric must be provided in the request.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -590,8 +542,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -600,17 +550,16 @@ public java.lang.String getParent() {
      * The new metric must be provided in the request.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -618,8 +567,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -628,25 +575,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * The new metric must be provided in the request.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -655,10 +596,7 @@ public Builder setParent(java.lang.String value) {
      * The new metric must be provided in the request.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -668,8 +606,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -678,17 +614,13 @@ public Builder clearParent() {
      * The new metric must be provided in the request.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -698,37 +630,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogMetric metric_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> - metricBuilder_; + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricBuilder_; /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -739,15 +660,12 @@ public com.google.logging.v2.LogMetric getMetric() { } } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -763,17 +681,15 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetric( + com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { metric_ = builderForValue.build(); } else { @@ -784,21 +700,18 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue return this; } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && metric_ != null - && metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + metric_ != null && + metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { getMetricBuilder().mergeFrom(value); } else { metric_ = value; @@ -813,15 +726,12 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetric() { bitField0_ = (bitField0_ & ~0x00000002); @@ -834,15 +744,12 @@ public Builder clearMetric() { return this; } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { bitField0_ |= 0x00000002; @@ -850,53 +757,45 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { return getMetricFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { - return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; + return metric_ == null ? + com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } } /** - * - * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { - metricBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder>( - getMetric(), getParentForChildren(), isClean()); + metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( + getMetric(), + getParentForChildren(), + isClean()); metric_ = null; } return metricBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateLogMetricRequest) private static final com.google.logging.v2.CreateLogMetricRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateLogMetricRequest(); } @@ -920,27 +819,27 @@ public static com.google.logging.v2.CreateLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java index b7c04f8b7..9bf0e0a9d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateLogMetricRequestOrBuilder - extends +public interface CreateLogMetricRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLogMetricRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -35,16 +17,11 @@ public interface CreateLogMetricRequestOrBuilder
    * The new metric must be provided in the request.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -53,43 +30,33 @@ public interface CreateLogMetricRequestOrBuilder
    * The new metric must be provided in the request.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the metric field is set. */ boolean hasMetric(); /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The metric. */ com.google.logging.v2.LogMetric getMetric(); /** - * - * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
index 7052bec32..2756d36e5 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
@@ -1,76 +1,54 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * The parameters to `CreateSink`.
  * 
* * Protobuf type {@code google.logging.v2.CreateSinkRequest} */ -public final class CreateSinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateSinkRequest) CreateSinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSinkRequest.newBuilder() to construct. private CreateSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSinkRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateSinkRequest.class, - com.google.logging.v2.CreateSinkRequest.Builder.class); + com.google.logging.v2.CreateSinkRequest.class, com.google.logging.v2.CreateSinkRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource in which to create the sink:
    *
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -97,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource in which to create the sink:
    *
@@ -120,18 +94,17 @@ public java.lang.String getParent() {
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -142,15 +115,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SINK_FIELD_NUMBER = 2; private com.google.logging.v2.LogSink sink_; /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ @java.lang.Override @@ -158,15 +128,12 @@ public boolean hasSink() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ @java.lang.Override @@ -174,8 +141,6 @@ public com.google.logging.v2.LogSink getSink() { return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_; } /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
@@ -191,8 +156,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   private boolean uniqueWriterIdentity_ = false;
   /**
-   *
-   *
    * 
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
    * in the new sink. If this value is omitted or set to false, and if the
@@ -209,7 +172,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -218,7 +180,6 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -253,10 +215,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSink()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSink()); } if (uniqueWriterIdentity_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, uniqueWriterIdentity_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, uniqueWriterIdentity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,19 +230,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CreateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.CreateSinkRequest other = (com.google.logging.v2.CreateSinkRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSink() != other.hasSink()) return false; if (hasSink()) { - if (!getSink().equals(other.getSink())) return false; + if (!getSink() + .equals(other.getSink())) return false; } - if (getUniqueWriterIdentity() != other.getUniqueWriterIdentity()) return false; + if (getUniqueWriterIdentity() + != other.getUniqueWriterIdentity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,133 +264,127 @@ public int hashCode() { hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUniqueWriterIdentity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.CreateSinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateSinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CreateSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `CreateSink`.
    * 
* * Protobuf type {@code google.logging.v2.CreateSinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateSinkRequest) com.google.logging.v2.CreateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateSinkRequest.class, - com.google.logging.v2.CreateSinkRequest.Builder.class); + com.google.logging.v2.CreateSinkRequest.class, com.google.logging.v2.CreateSinkRequest.Builder.class); } // Construct using com.google.logging.v2.CreateSinkRequest.newBuilder() @@ -431,17 +392,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSinkFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override @@ -478,11 +439,8 @@ public com.google.logging.v2.CreateSinkRequest build() { @java.lang.Override public com.google.logging.v2.CreateSinkRequest buildPartial() { - com.google.logging.v2.CreateSinkRequest result = - new com.google.logging.v2.CreateSinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateSinkRequest result = new com.google.logging.v2.CreateSinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -494,7 +452,9 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null + ? sink_ + : sinkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -507,39 +467,38 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateSinkRequest) { - return mergeFrom((com.google.logging.v2.CreateSinkRequest) other); + return mergeFrom((com.google.logging.v2.CreateSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -585,31 +544,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSinkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - uniqueWriterIdentity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSinkFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + uniqueWriterIdentity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,13 +576,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -640,16 +594,14 @@ public Builder mergeFrom(
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -658,8 +610,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -674,17 +624,16 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -692,8 +641,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -708,25 +655,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -741,10 +682,7 @@ public Builder setParent(java.lang.String value) {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -754,8 +692,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -770,17 +706,13 @@ public Builder clearParent() {
      *   `"organizations/123456789"`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -790,35 +722,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogSink sink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSink, - com.google.logging.v2.LogSink.Builder, - com.google.logging.v2.LogSinkOrBuilder> - sinkBuilder_; + com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinkBuilder_; /** - * - * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ public boolean hasSink() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ public com.google.logging.v2.LogSink getSink() { @@ -829,8 +752,6 @@ public com.google.logging.v2.LogSink getSink() { } } /** - * - * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -852,8 +773,6 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -861,7 +780,8 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
      *
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
+    public Builder setSink(
+        com.google.logging.v2.LogSink.Builder builderForValue) {
       if (sinkBuilder_ == null) {
         sink_ = builderForValue.build();
       } else {
@@ -872,8 +792,6 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -883,9 +801,9 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
      */
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && sink_ != null
-            && sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          sink_ != null &&
+          sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
           getSinkBuilder().mergeFrom(value);
         } else {
           sink_ = value;
@@ -900,8 +818,6 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -920,8 +836,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -935,8 +849,6 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
       return getSinkFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -948,12 +860,11 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
       if (sinkBuilder_ != null) {
         return sinkBuilder_.getMessageOrBuilder();
       } else {
-        return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
+        return sink_ == null ?
+            com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -962,26 +873,21 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.LogSink,
-            com.google.logging.v2.LogSink.Builder,
-            com.google.logging.v2.LogSinkOrBuilder>
+        com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> 
         getSinkFieldBuilder() {
       if (sinkBuilder_ == null) {
-        sinkBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.logging.v2.LogSink,
-                com.google.logging.v2.LogSink.Builder,
-                com.google.logging.v2.LogSinkOrBuilder>(
-                getSink(), getParentForChildren(), isClean());
+        sinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>(
+                getSink(),
+                getParentForChildren(),
+                isClean());
         sink_ = null;
       }
       return sinkBuilder_;
     }
 
-    private boolean uniqueWriterIdentity_;
+    private boolean uniqueWriterIdentity_ ;
     /**
-     *
-     *
      * 
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -998,7 +904,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1006,8 +911,6 @@ public boolean getUniqueWriterIdentity() { return uniqueWriterIdentity_; } /** - * - * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -1024,7 +927,6 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -1036,8 +938,6 @@ public Builder setUniqueWriterIdentity(boolean value) { return this; } /** - * - * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -1054,7 +954,6 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1063,9 +962,9 @@ public Builder clearUniqueWriterIdentity() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateSinkRequest) private static final com.google.logging.v2.CreateSinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateSinkRequest(); } @@ -1089,27 +988,27 @@ public static com.google.logging.v2.CreateSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +1023,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java index 1420ec05a..33648fcff 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateSinkRequestOrBuilder - extends +public interface CreateSinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateSinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource in which to create the sink:
    *
@@ -41,16 +23,11 @@ public interface CreateSinkRequestOrBuilder
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource in which to create the sink:
    *
@@ -65,43 +42,33 @@ public interface CreateSinkRequestOrBuilder
    *   `"organizations/123456789"`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ boolean hasSink(); /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ com.google.logging.v2.LogSink getSink(); /** - * - * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
@@ -112,8 +79,6 @@ public interface CreateSinkRequestOrBuilder
   com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
    * in the new sink. If this value is omitted or set to false, and if the
@@ -130,7 +95,6 @@ public interface CreateSinkRequestOrBuilder
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ boolean getUniqueWriterIdentity(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java index 64e0ae1d6..1bf7e7281 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `CreateView`.
  * 
* * Protobuf type {@code google.logging.v2.CreateViewRequest} */ -public final class CreateViewRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateViewRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateViewRequest) CreateViewRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateViewRequest.newBuilder() to construct. private CreateViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateViewRequest() { parent_ = ""; viewId_ = ""; @@ -45,33 +27,29 @@ private CreateViewRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateViewRequest.class, - com.google.logging.v2.CreateViewRequest.Builder.class); + com.google.logging.v2.CreateViewRequest.class, com.google.logging.v2.CreateViewRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -112,15 +88,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +106,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int VIEW_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object viewId_ = ""; /** - * - * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -142,7 +116,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ @java.lang.Override @@ -151,15 +124,14 @@ public java.lang.String getViewId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); viewId_ = s; return s; } } /** - * - * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -167,15 +139,16 @@ public java.lang.String getViewId() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for viewId. */ @java.lang.Override - public com.google.protobuf.ByteString getViewIdBytes() { + public com.google.protobuf.ByteString + getViewIdBytes() { java.lang.Object ref = viewId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); viewId_ = b; return b; } else { @@ -186,14 +159,11 @@ public com.google.protobuf.ByteString getViewIdBytes() { public static final int VIEW_FIELD_NUMBER = 3; private com.google.logging.v2.LogView view_; /** - * - * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ @java.lang.Override @@ -201,14 +171,11 @@ public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ @java.lang.Override @@ -216,8 +183,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The new view.
    * 
@@ -230,7 +195,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -268,7 +233,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getView()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getView()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,18 +244,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CreateViewRequest)) { return super.equals(obj); } com.google.logging.v2.CreateViewRequest other = (com.google.logging.v2.CreateViewRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getViewId().equals(other.getViewId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getViewId() + .equals(other.getViewId())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { - if (!getView().equals(other.getView())) return false; + if (!getView() + .equals(other.getView())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -315,127 +284,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateViewRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateViewRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.CreateViewRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateViewRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.CreateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `CreateView`.
    * 
* * Protobuf type {@code google.logging.v2.CreateViewRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateViewRequest) com.google.logging.v2.CreateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateViewRequest.class, - com.google.logging.v2.CreateViewRequest.Builder.class); + com.google.logging.v2.CreateViewRequest.class, com.google.logging.v2.CreateViewRequest.Builder.class); } // Construct using com.google.logging.v2.CreateViewRequest.newBuilder() @@ -443,17 +405,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getViewFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_CreateViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override @@ -490,11 +452,8 @@ public com.google.logging.v2.CreateViewRequest build() { @java.lang.Override public com.google.logging.v2.CreateViewRequest buildPartial() { - com.google.logging.v2.CreateViewRequest result = - new com.google.logging.v2.CreateViewRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.CreateViewRequest result = new com.google.logging.v2.CreateViewRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,7 +468,9 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); + result.view_ = viewBuilder_ == null + ? view_ + : viewBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -519,39 +480,38 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.CreateViewRequest) { - return mergeFrom((com.google.logging.v2.CreateViewRequest) other); + return mergeFrom((com.google.logging.v2.CreateViewRequest)other); } else { super.mergeFrom(other); return this; @@ -599,31 +559,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - viewId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + viewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -633,13 +591,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -651,13 +606,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -666,8 +621,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -679,14 +632,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -694,8 +648,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -707,22 +659,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -734,7 +682,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -744,8 +691,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -757,14 +702,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -774,8 +717,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object viewId_ = ""; /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -783,13 +724,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ public java.lang.String getViewId() { java.lang.Object ref = viewId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); viewId_ = s; return s; @@ -798,8 +739,6 @@ public java.lang.String getViewId() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -807,14 +746,15 @@ public java.lang.String getViewId() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for viewId. */ - public com.google.protobuf.ByteString getViewIdBytes() { + public com.google.protobuf.ByteString + getViewIdBytes() { java.lang.Object ref = viewId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); viewId_ = b; return b; } else { @@ -822,8 +762,6 @@ public com.google.protobuf.ByteString getViewIdBytes() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -831,22 +769,18 @@ public com.google.protobuf.ByteString getViewIdBytes() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The viewId to set. * @return This builder for chaining. */ - public Builder setViewId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setViewId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } viewId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -854,7 +788,6 @@ public Builder setViewId(java.lang.String value) {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearViewId() { @@ -864,8 +797,6 @@ public Builder clearViewId() { return this; } /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -873,14 +804,12 @@ public Builder clearViewId() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for viewId to set. * @return This builder for chaining. */ - public Builder setViewIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setViewIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); viewId_ = value; bitField0_ |= 0x00000002; @@ -890,33 +819,24 @@ public Builder setViewIdBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogView view_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> - viewBuilder_; + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewBuilder_; /** - * - * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ public com.google.logging.v2.LogView getView() { @@ -927,8 +847,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The new view.
      * 
@@ -949,15 +867,14 @@ public Builder setView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setView( + com.google.logging.v2.LogView.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { @@ -968,8 +885,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -978,9 +893,9 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { */ public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && view_ != null - && view_ != com.google.logging.v2.LogView.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + view_ != null && + view_ != com.google.logging.v2.LogView.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; @@ -995,8 +910,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -1014,8 +927,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -1028,8 +939,6 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new view.
      * 
@@ -1040,12 +949,11 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { - return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; + return view_ == null ? + com.google.logging.v2.LogView.getDefaultInstance() : view_; } } /** - * - * *
      * Required. The new view.
      * 
@@ -1053,24 +961,21 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { - viewBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder>( - getView(), getParentForChildren(), isClean()); + viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( + getView(), + getParentForChildren(), + isClean()); view_ = null; } return viewBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1080,12 +985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateViewRequest) private static final com.google.logging.v2.CreateViewRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateViewRequest(); } @@ -1094,27 +999,27 @@ public static com.google.logging.v2.CreateViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1034,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java index f62b087e8..5e6f08697 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateViewRequestOrBuilder - extends +public interface CreateViewRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateViewRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -38,13 +20,10 @@ public interface CreateViewRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -56,14 +35,12 @@ public interface CreateViewRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -71,13 +48,10 @@ public interface CreateViewRequestOrBuilder
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ java.lang.String getViewId(); /** - * - * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -85,38 +59,30 @@ public interface CreateViewRequestOrBuilder
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for viewId. */ - com.google.protobuf.ByteString getViewIdBytes(); + com.google.protobuf.ByteString + getViewIdBytes(); /** - * - * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ boolean hasView(); /** - * - * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ com.google.logging.v2.LogView getView(); /** - * - * *
    * Required. The new view.
    * 
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java index c54497934..419dea058 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `DeleteBucket`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteBucketRequest} */ -public final class DeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteBucketRequest) DeleteBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBucketRequest.newBuilder() to construct. private DeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteBucketRequest.class, - com.google.logging.v2.DeleteBucketRequest.Builder.class); + com.google.logging.v2.DeleteBucketRequest.class, com.google.logging.v2.DeleteBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteBucketRequest other = - (com.google.logging.v2.DeleteBucketRequest) obj; + com.google.logging.v2.DeleteBucketRequest other = (com.google.logging.v2.DeleteBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,136 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `DeleteBucket`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteBucketRequest) com.google.logging.v2.DeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteBucketRequest.class, - com.google.logging.v2.DeleteBucketRequest.Builder.class); + com.google.logging.v2.DeleteBucketRequest.class, com.google.logging.v2.DeleteBucketRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteBucketRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override @@ -360,11 +329,8 @@ public com.google.logging.v2.DeleteBucketRequest build() { @java.lang.Override public com.google.logging.v2.DeleteBucketRequest buildPartial() { - com.google.logging.v2.DeleteBucketRequest result = - new com.google.logging.v2.DeleteBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteBucketRequest result = new com.google.logging.v2.DeleteBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -380,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.DeleteBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.DeleteBucketRequest) other); + return mergeFrom((com.google.logging.v2.DeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -452,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -494,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,8 +470,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -527,17 +483,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -560,25 +513,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -592,10 +539,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -605,8 +549,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -620,26 +562,22 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteBucketRequest) private static final com.google.logging.v2.DeleteBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteBucketRequest(); } @@ -663,27 +601,27 @@ public static com.google.logging.v2.DeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java index d9b719ec3..70752d216 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteBucketRequestOrBuilder - extends +public interface DeleteBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -40,16 +22,11 @@ public interface DeleteBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -63,11 +40,9 @@ public interface DeleteBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java index 55d35b698..fa213711c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `DeleteExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteExclusionRequest} */ -public final class DeleteExclusionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteExclusionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteExclusionRequest) DeleteExclusionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteExclusionRequest.newBuilder() to construct. private DeleteExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteExclusionRequest.class, - com.google.logging.v2.DeleteExclusionRequest.Builder.class); + com.google.logging.v2.DeleteExclusionRequest.class, com.google.logging.v2.DeleteExclusionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteExclusionRequest other = - (com.google.logging.v2.DeleteExclusionRequest) obj; + com.google.logging.v2.DeleteExclusionRequest other = (com.google.logging.v2.DeleteExclusionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,136 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `DeleteExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteExclusionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteExclusionRequest) com.google.logging.v2.DeleteExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteExclusionRequest.class, - com.google.logging.v2.DeleteExclusionRequest.Builder.class); + com.google.logging.v2.DeleteExclusionRequest.class, com.google.logging.v2.DeleteExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteExclusionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override @@ -360,11 +329,8 @@ public com.google.logging.v2.DeleteExclusionRequest build() { @java.lang.Override public com.google.logging.v2.DeleteExclusionRequest buildPartial() { - com.google.logging.v2.DeleteExclusionRequest result = - new com.google.logging.v2.DeleteExclusionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteExclusionRequest result = new com.google.logging.v2.DeleteExclusionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -380,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.DeleteExclusionRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteExclusionRequest) { - return mergeFrom((com.google.logging.v2.DeleteExclusionRequest) other); + return mergeFrom((com.google.logging.v2.DeleteExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -452,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -494,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,8 +470,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -527,17 +483,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -560,25 +513,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -592,10 +539,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -605,8 +549,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -620,26 +562,22 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteExclusionRequest) private static final com.google.logging.v2.DeleteExclusionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteExclusionRequest(); } @@ -663,27 +601,27 @@ public static com.google.logging.v2.DeleteExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java index eb1072cc2..cb1866913 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteExclusionRequestOrBuilder - extends +public interface DeleteExclusionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteExclusionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -40,16 +22,11 @@ public interface DeleteExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -63,11 +40,9 @@ public interface DeleteExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java index 203f824c4..2f127b22b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to DeleteLink.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLinkRequest} */ -public final class DeleteLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLinkRequest) DeleteLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteLinkRequest.newBuilder() to construct. private DeleteLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLinkRequest.class, - com.google.logging.v2.DeleteLinkRequest.Builder.class); + com.google.logging.v2.DeleteLinkRequest.class, com.google.logging.v2.DeleteLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the link to delete.
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the link to delete.
    *
@@ -109,18 +83,17 @@ public java.lang.String getName() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -129,7 +102,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +113,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -165,14 +138,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLinkRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteLinkRequest other = (com.google.logging.v2.DeleteLinkRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +165,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to DeleteLink.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLinkRequest) com.google.logging.v2.DeleteLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLinkRequest.class, - com.google.logging.v2.DeleteLinkRequest.Builder.class); + com.google.logging.v2.DeleteLinkRequest.class, com.google.logging.v2.DeleteLinkRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLinkRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override @@ -351,11 +321,8 @@ public com.google.logging.v2.DeleteLinkRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLinkRequest buildPartial() { - com.google.logging.v2.DeleteLinkRequest result = - new com.google.logging.v2.DeleteLinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteLinkRequest result = new com.google.logging.v2.DeleteLinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +338,38 @@ private void buildPartial0(com.google.logging.v2.DeleteLinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteLinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteLinkRequest) other); + return mergeFrom((com.google.logging.v2.DeleteLinkRequest)other); } else { super.mergeFrom(other); return this; @@ -443,19 +409,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,13 +429,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -481,16 +442,14 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -499,8 +458,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -510,17 +467,16 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -528,8 +484,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -539,25 +493,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -567,10 +515,7 @@ public Builder setName(java.lang.String value) {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -580,8 +525,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -591,26 +534,22 @@ public Builder clearName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLinkRequest) private static final com.google.logging.v2.DeleteLinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLinkRequest(); } @@ -634,27 +573,27 @@ public static com.google.logging.v2.DeleteLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,4 +608,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java index 3094fe67d..5fb45ef77 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteLinkRequestOrBuilder - extends +public interface DeleteLinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the link to delete.
    *
@@ -36,16 +18,11 @@ public interface DeleteLinkRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The full resource name of the link to delete.
    *
@@ -55,11 +32,9 @@ public interface DeleteLinkRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java index f789f36c4..ed1624228 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java @@ -1,85 +1,60 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to DeleteLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLogMetricRequest} */ -public final class DeleteLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteLogMetricRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLogMetricRequest) DeleteLogMetricRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteLogMetricRequest.newBuilder() to construct. private DeleteLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogMetricRequest.class, - com.google.logging.v2.DeleteLogMetricRequest.Builder.class); + com.google.logging.v2.DeleteLogMetricRequest.class, com.google.logging.v2.DeleteLogMetricRequest.Builder.class); } public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** - * - * *
    * Required. The resource name of the metric to delete:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the metric to delete:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteLogMetricRequest other = - (com.google.logging.v2.DeleteLogMetricRequest) obj; + com.google.logging.v2.DeleteLogMetricRequest other = (com.google.logging.v2.DeleteLogMetricRequest) obj; - if (!getMetricName().equals(other.getMetricName())) return false; + if (!getMetricName() + .equals(other.getMetricName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to DeleteLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLogMetricRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLogMetricRequest) com.google.logging.v2.DeleteLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogMetricRequest.class, - com.google.logging.v2.DeleteLogMetricRequest.Builder.class); + com.google.logging.v2.DeleteLogMetricRequest.class, com.google.logging.v2.DeleteLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLogMetricRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override @@ -346,11 +315,8 @@ public com.google.logging.v2.DeleteLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLogMetricRequest buildPartial() { - com.google.logging.v2.DeleteLogMetricRequest result = - new com.google.logging.v2.DeleteLogMetricRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteLogMetricRequest result = new com.google.logging.v2.DeleteLogMetricRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +332,38 @@ private void buildPartial0(com.google.logging.v2.DeleteLogMetricRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteLogMetricRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -438,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object metricName_ = ""; /** - * - * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -491,25 +449,22 @@ public java.lang.String getMetricName() { } } /** - * - * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -517,43 +472,32 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearMetricName() { @@ -563,34 +507,28 @@ public Builder clearMetricName() { return this; } /** - * - * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLogMetricRequest) private static final com.google.logging.v2.DeleteLogMetricRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLogMetricRequest(); } @@ -614,27 +552,27 @@ public static com.google.logging.v2.DeleteLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java new file mode 100644 index 000000000..8eca6f1db --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface DeleteLogMetricRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the metric to delete:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + *
+   * Required. The resource name of the metric to delete:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString + getMetricNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java index 707b34437..acef9f563 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to DeleteLog.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLogRequest} */ -public final class DeleteLogRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteLogRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLogRequest) DeleteLogRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteLogRequest.newBuilder() to construct. private DeleteLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteLogRequest() { logName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteLogRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogRequest.class, - com.google.logging.v2.DeleteLogRequest.Builder.class); + com.google.logging.v2.DeleteLogRequest.class, com.google.logging.v2.DeleteLogRequest.Builder.class); } public static final int LOG_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** - * - * *
    * Required. The resource name of the log to delete:
    *
@@ -86,10 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The logName. */ @java.lang.Override @@ -98,15 +73,14 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the log to delete:
    *
@@ -123,18 +97,17 @@ public java.lang.String getLogName() {
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -143,7 +116,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -179,14 +152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLogRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteLogRequest other = (com.google.logging.v2.DeleteLogRequest) obj; - if (!getLogName().equals(other.getLogName())) return false; + if (!getLogName() + .equals(other.getLogName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,136 +179,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLogRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteLogRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.DeleteLogRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLogRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteLogRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to DeleteLog.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLogRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLogRequest) com.google.logging.v2.DeleteLogRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogRequest.class, - com.google.logging.v2.DeleteLogRequest.Builder.class); + com.google.logging.v2.DeleteLogRequest.class, com.google.logging.v2.DeleteLogRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLogRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -344,9 +314,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override @@ -365,11 +335,8 @@ public com.google.logging.v2.DeleteLogRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLogRequest buildPartial() { - com.google.logging.v2.DeleteLogRequest result = - new com.google.logging.v2.DeleteLogRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteLogRequest result = new com.google.logging.v2.DeleteLogRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -385,39 +352,38 @@ private void buildPartial0(com.google.logging.v2.DeleteLogRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteLogRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogRequest) other); + return mergeFrom((com.google.logging.v2.DeleteLogRequest)other); } else { super.mergeFrom(other); return this; @@ -457,19 +423,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + logName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -479,13 +443,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object logName_ = ""; /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -502,16 +463,14 @@ public Builder mergeFrom(
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -520,8 +479,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -538,17 +495,16 @@ public java.lang.String getLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -556,8 +512,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -574,25 +528,19 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -609,10 +557,7 @@ public Builder setLogName(java.lang.String value) {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLogName() { @@ -622,8 +567,6 @@ public Builder clearLogName() { return this; } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -640,26 +583,22 @@ public Builder clearLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -669,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLogRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLogRequest) private static final com.google.logging.v2.DeleteLogRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLogRequest(); } @@ -683,27 +622,27 @@ public static com.google.logging.v2.DeleteLogRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLogRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -718,4 +657,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java index 65078ea42..83a5c43a0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteLogRequestOrBuilder - extends +public interface DeleteLogRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the log to delete:
    *
@@ -43,16 +25,11 @@ public interface DeleteLogRequestOrBuilder
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The logName. */ java.lang.String getLogName(); /** - * - * *
    * Required. The resource name of the log to delete:
    *
@@ -69,11 +46,9 @@ public interface DeleteLogRequestOrBuilder
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ - com.google.protobuf.ByteString getLogNameBytes(); + com.google.protobuf.ByteString + getLogNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java index 286def16f..e32723fff 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `DeleteSink`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteSinkRequest} */ -public final class DeleteSinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteSinkRequest) DeleteSinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSinkRequest.newBuilder() to construct. private DeleteSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteSinkRequest.class, - com.google.logging.v2.DeleteSinkRequest.Builder.class); + com.google.logging.v2.DeleteSinkRequest.class, com.google.logging.v2.DeleteSinkRequest.Builder.class); } public static final int SINK_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** - * - * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ @java.lang.Override @@ -96,15 +71,14 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -119,18 +93,17 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -139,7 +112,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -175,14 +148,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteSinkRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteSinkRequest other = (com.google.logging.v2.DeleteSinkRequest) obj; - if (!getSinkName().equals(other.getSinkName())) return false; + if (!getSinkName() + .equals(other.getSinkName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,136 +175,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteSinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteSinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `DeleteSink`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteSinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteSinkRequest) com.google.logging.v2.DeleteSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteSinkRequest.class, - com.google.logging.v2.DeleteSinkRequest.Builder.class); + com.google.logging.v2.DeleteSinkRequest.class, com.google.logging.v2.DeleteSinkRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteSinkRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -340,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override @@ -361,11 +331,8 @@ public com.google.logging.v2.DeleteSinkRequest build() { @java.lang.Override public com.google.logging.v2.DeleteSinkRequest buildPartial() { - com.google.logging.v2.DeleteSinkRequest result = - new com.google.logging.v2.DeleteSinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteSinkRequest result = new com.google.logging.v2.DeleteSinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -381,39 +348,38 @@ private void buildPartial0(com.google.logging.v2.DeleteSinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteSinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteSinkRequest) other); + return mergeFrom((com.google.logging.v2.DeleteSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -453,19 +419,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sinkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,13 +439,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -496,16 +457,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -514,8 +473,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -530,17 +487,16 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -548,8 +504,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -564,25 +518,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -597,10 +545,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSinkName() { @@ -610,8 +555,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -626,26 +569,22 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -655,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteSinkRequest) private static final com.google.logging.v2.DeleteSinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteSinkRequest(); } @@ -669,27 +608,27 @@ public static com.google.logging.v2.DeleteSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -704,4 +643,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java index 6eaa428b1..81f4405a2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteSinkRequestOrBuilder - extends +public interface DeleteSinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteSinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -41,16 +23,11 @@ public interface DeleteSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ java.lang.String getSinkName(); /** - * - * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -65,11 +42,9 @@ public interface DeleteSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - com.google.protobuf.ByteString getSinkNameBytes(); + com.google.protobuf.ByteString + getSinkNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java index c32e08a26..5d7030d36 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `DeleteView`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteViewRequest} */ -public final class DeleteViewRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteViewRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteViewRequest) DeleteViewRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteViewRequest.newBuilder() to construct. private DeleteViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteViewRequest.class, - com.google.logging.v2.DeleteViewRequest.Builder.class); + com.google.logging.v2.DeleteViewRequest.class, com.google.logging.v2.DeleteViewRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the view to delete:
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the view to delete:
    *
@@ -111,18 +85,17 @@ public java.lang.String getName() {
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -131,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +115,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -167,14 +140,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteViewRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteViewRequest other = (com.google.logging.v2.DeleteViewRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -193,136 +167,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteViewRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.DeleteViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `DeleteView`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteViewRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteViewRequest) com.google.logging.v2.DeleteViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteViewRequest.class, - com.google.logging.v2.DeleteViewRequest.Builder.class); + com.google.logging.v2.DeleteViewRequest.class, com.google.logging.v2.DeleteViewRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteViewRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override @@ -353,11 +323,8 @@ public com.google.logging.v2.DeleteViewRequest build() { @java.lang.Override public com.google.logging.v2.DeleteViewRequest buildPartial() { - com.google.logging.v2.DeleteViewRequest result = - new com.google.logging.v2.DeleteViewRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.DeleteViewRequest result = new com.google.logging.v2.DeleteViewRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -373,39 +340,38 @@ private void buildPartial0(com.google.logging.v2.DeleteViewRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.DeleteViewRequest) { - return mergeFrom((com.google.logging.v2.DeleteViewRequest) other); + return mergeFrom((com.google.logging.v2.DeleteViewRequest)other); } else { super.mergeFrom(other); return this; @@ -445,19 +411,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,13 +431,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -484,16 +445,14 @@ public Builder mergeFrom(
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -502,8 +461,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -514,17 +471,16 @@ public java.lang.String getName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,8 +488,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -544,25 +498,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -573,10 +521,7 @@ public Builder setName(java.lang.String value) {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -586,8 +531,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -598,26 +541,22 @@ public Builder clearName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteViewRequest) private static final com.google.logging.v2.DeleteViewRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteViewRequest(); } @@ -641,27 +580,27 @@ public static com.google.logging.v2.DeleteViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,4 +615,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java new file mode 100644 index 000000000..0956732de --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface DeleteViewRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the view to delete:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the view to delete:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java index b330c9d8b..d43c489ed 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `GetBucket`.
  * 
* * Protobuf type {@code google.logging.v2.GetBucketRequest} */ -public final class GetBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetBucketRequest) GetBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBucketRequest.newBuilder() to construct. private GetBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetBucketRequest.class, - com.google.logging.v2.GetBucketRequest.Builder.class); + com.google.logging.v2.GetBucketRequest.class, com.google.logging.v2.GetBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the bucket:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the bucket:
    *
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,14 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetBucketRequest)) { return super.equals(obj); } com.google.logging.v2.GetBucketRequest other = (com.google.logging.v2.GetBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetBucketRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetBucketRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetBucketRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetBucketRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetBucketRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `GetBucket`.
    * 
* * Protobuf type {@code google.logging.v2.GetBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetBucketRequest) com.google.logging.v2.GetBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetBucketRequest.class, - com.google.logging.v2.GetBucketRequest.Builder.class); + com.google.logging.v2.GetBucketRequest.class, com.google.logging.v2.GetBucketRequest.Builder.class); } // Construct using com.google.logging.v2.GetBucketRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override @@ -359,11 +329,8 @@ public com.google.logging.v2.GetBucketRequest build() { @java.lang.Override public com.google.logging.v2.GetBucketRequest buildPartial() { - com.google.logging.v2.GetBucketRequest result = - new com.google.logging.v2.GetBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.GetBucketRequest result = new com.google.logging.v2.GetBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.GetBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetBucketRequest) { - return mergeFrom((com.google.logging.v2.GetBucketRequest) other); + return mergeFrom((com.google.logging.v2.GetBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -451,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -493,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +470,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -526,17 +483,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -544,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -559,25 +513,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -591,10 +539,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -604,8 +549,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -619,26 +562,22 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -648,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetBucketRequest) private static final com.google.logging.v2.GetBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetBucketRequest(); } @@ -662,27 +601,27 @@ public static com.google.logging.v2.GetBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java index 91ffdd7e9..8b580ca90 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetBucketRequestOrBuilder - extends +public interface GetBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the bucket:
    *
@@ -40,16 +22,11 @@ public interface GetBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the bucket:
    *
@@ -63,11 +40,9 @@ public interface GetBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java index 8dc89548a..c3745333f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -33,48 +16,43 @@
  *
  * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest}
  */
-public final class GetCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCmekSettingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.GetCmekSettingsRequest)
     GetCmekSettingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCmekSettingsRequest.newBuilder() to construct.
   private GetCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCmekSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCmekSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.GetCmekSettingsRequest.class,
-            com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
+            com.google.logging.v2.GetCmekSettingsRequest.class, com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -93,10 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -105,15 +80,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -132,18 +106,17 @@ public java.lang.String getName() {
    * organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -152,7 +125,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetCmekSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.GetCmekSettingsRequest other = - (com.google.logging.v2.GetCmekSettingsRequest) obj; + com.google.logging.v2.GetCmekSettingsRequest other = (com.google.logging.v2.GetCmekSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,104 +188,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetCmekSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -324,32 +292,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.GetCmekSettingsRequest)
       com.google.logging.v2.GetCmekSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.GetCmekSettingsRequest.class,
-              com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
+              com.google.logging.v2.GetCmekSettingsRequest.class, com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.GetCmekSettingsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -359,9 +328,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -380,11 +349,8 @@ public com.google.logging.v2.GetCmekSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.GetCmekSettingsRequest buildPartial() {
-      com.google.logging.v2.GetCmekSettingsRequest result =
-          new com.google.logging.v2.GetCmekSettingsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.GetCmekSettingsRequest result = new com.google.logging.v2.GetCmekSettingsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -400,39 +366,38 @@ private void buildPartial0(com.google.logging.v2.GetCmekSettingsRequest result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.GetCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest) other);
+        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,19 +437,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -494,13 +457,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -519,16 +479,14 @@ public Builder mergeFrom(
      * organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,8 +495,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -557,17 +513,16 @@ public java.lang.String getName() {
      * organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -575,8 +530,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -595,25 +548,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -632,10 +579,7 @@ public Builder setName(java.lang.String value) {
      * organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -645,8 +589,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -665,26 +607,22 @@ public Builder clearName() {
      * organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetCmekSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetCmekSettingsRequest) private static final com.google.logging.v2.GetCmekSettingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetCmekSettingsRequest(); } @@ -708,27 +646,27 @@ public static com.google.logging.v2.GetCmekSettingsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCmekSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -743,4 +681,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java index 20331643b..540965c17 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetCmekSettingsRequestOrBuilder - extends +public interface GetCmekSettingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetCmekSettingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -45,16 +27,11 @@ public interface GetCmekSettingsRequestOrBuilder
    * organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -73,11 +50,9 @@ public interface GetCmekSettingsRequestOrBuilder
    * organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java index ac33fe439..829ad4774 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `GetExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.GetExclusionRequest} */ -public final class GetExclusionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetExclusionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetExclusionRequest) GetExclusionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetExclusionRequest.newBuilder() to construct. private GetExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetExclusionRequest.class, - com.google.logging.v2.GetExclusionRequest.Builder.class); + com.google.logging.v2.GetExclusionRequest.class, com.google.logging.v2.GetExclusionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of an existing exclusion:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of an existing exclusion:
    *
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.GetExclusionRequest other = - (com.google.logging.v2.GetExclusionRequest) obj; + com.google.logging.v2.GetExclusionRequest other = (com.google.logging.v2.GetExclusionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,136 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetExclusionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetExclusionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `GetExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.GetExclusionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetExclusionRequest) com.google.logging.v2.GetExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetExclusionRequest.class, - com.google.logging.v2.GetExclusionRequest.Builder.class); + com.google.logging.v2.GetExclusionRequest.class, com.google.logging.v2.GetExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.GetExclusionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override @@ -360,11 +329,8 @@ public com.google.logging.v2.GetExclusionRequest build() { @java.lang.Override public com.google.logging.v2.GetExclusionRequest buildPartial() { - com.google.logging.v2.GetExclusionRequest result = - new com.google.logging.v2.GetExclusionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.GetExclusionRequest result = new com.google.logging.v2.GetExclusionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -380,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.GetExclusionRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetExclusionRequest) { - return mergeFrom((com.google.logging.v2.GetExclusionRequest) other); + return mergeFrom((com.google.logging.v2.GetExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -452,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -494,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,8 +470,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -527,17 +483,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -560,25 +513,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -592,10 +539,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -605,8 +549,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -620,26 +562,22 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetExclusionRequest) private static final com.google.logging.v2.GetExclusionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetExclusionRequest(); } @@ -663,27 +601,27 @@ public static com.google.logging.v2.GetExclusionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java index 953fa32c9..34bcfe740 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetExclusionRequestOrBuilder - extends +public interface GetExclusionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetExclusionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of an existing exclusion:
    *
@@ -40,16 +22,11 @@ public interface GetExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of an existing exclusion:
    *
@@ -63,11 +40,9 @@ public interface GetExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java index 61b51e46f..d32ae9505 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to GetLink.
  * 
* * Protobuf type {@code google.logging.v2.GetLinkRequest} */ -public final class GetLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetLinkRequest) GetLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLinkRequest.newBuilder() to construct. private GetLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLinkRequest.class, - com.google.logging.v2.GetLinkRequest.Builder.class); + com.google.logging.v2.GetLinkRequest.class, com.google.logging.v2.GetLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the link:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the link:
    *
@@ -109,18 +83,17 @@ public java.lang.String getName() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -129,7 +102,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +113,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -165,14 +138,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetLinkRequest)) { return super.equals(obj); } com.google.logging.v2.GetLinkRequest other = (com.google.logging.v2.GetLinkRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,135 +165,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetLinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.GetLinkRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.GetLinkRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetLinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to GetLink.
    * 
* * Protobuf type {@code google.logging.v2.GetLinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetLinkRequest) com.google.logging.v2.GetLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLinkRequest.class, - com.google.logging.v2.GetLinkRequest.Builder.class); + com.google.logging.v2.GetLinkRequest.class, com.google.logging.v2.GetLinkRequest.Builder.class); } // Construct using com.google.logging.v2.GetLinkRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,9 +300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override @@ -351,9 +322,7 @@ public com.google.logging.v2.GetLinkRequest build() { @java.lang.Override public com.google.logging.v2.GetLinkRequest buildPartial() { com.google.logging.v2.GetLinkRequest result = new com.google.logging.v2.GetLinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +338,38 @@ private void buildPartial0(com.google.logging.v2.GetLinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetLinkRequest) { - return mergeFrom((com.google.logging.v2.GetLinkRequest) other); + return mergeFrom((com.google.logging.v2.GetLinkRequest)other); } else { super.mergeFrom(other); return this; @@ -441,19 +409,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,13 +429,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the link:
      *
@@ -479,16 +442,14 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -497,8 +458,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -508,17 +467,16 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -526,8 +484,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -537,25 +493,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -565,10 +515,7 @@ public Builder setName(java.lang.String value) {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -578,8 +525,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -589,26 +534,22 @@ public Builder clearName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetLinkRequest) private static final com.google.logging.v2.GetLinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetLinkRequest(); } @@ -632,27 +573,27 @@ public static com.google.logging.v2.GetLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +608,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java index 1d487a0a2..1d381246c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetLinkRequestOrBuilder - extends +public interface GetLinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the link:
    *
@@ -36,16 +18,11 @@ public interface GetLinkRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the link:
    *
@@ -55,11 +32,9 @@ public interface GetLinkRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java index 53d9817a0..2761c6625 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java @@ -1,85 +1,60 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to GetLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.GetLogMetricRequest} */ -public final class GetLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLogMetricRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetLogMetricRequest) GetLogMetricRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLogMetricRequest.newBuilder() to construct. private GetLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLogMetricRequest.class, - com.google.logging.v2.GetLogMetricRequest.Builder.class); + com.google.logging.v2.GetLogMetricRequest.class, com.google.logging.v2.GetLogMetricRequest.Builder.class); } public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** - * - * *
    * Required. The resource name of the desired metric:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the desired metric:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.GetLogMetricRequest other = - (com.google.logging.v2.GetLogMetricRequest) obj; + com.google.logging.v2.GetLogMetricRequest other = (com.google.logging.v2.GetLogMetricRequest) obj; - if (!getMetricName().equals(other.getMetricName())) return false; + if (!getMetricName() + .equals(other.getMetricName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetLogMetricRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetLogMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to GetLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.GetLogMetricRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetLogMetricRequest) com.google.logging.v2.GetLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLogMetricRequest.class, - com.google.logging.v2.GetLogMetricRequest.Builder.class); + com.google.logging.v2.GetLogMetricRequest.class, com.google.logging.v2.GetLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.GetLogMetricRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override @@ -346,11 +315,8 @@ public com.google.logging.v2.GetLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.GetLogMetricRequest buildPartial() { - com.google.logging.v2.GetLogMetricRequest result = - new com.google.logging.v2.GetLogMetricRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.GetLogMetricRequest result = new com.google.logging.v2.GetLogMetricRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +332,38 @@ private void buildPartial0(com.google.logging.v2.GetLogMetricRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetLogMetricRequest) { - return mergeFrom((com.google.logging.v2.GetLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.GetLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -438,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object metricName_ = ""; /** - * - * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -491,25 +449,22 @@ public java.lang.String getMetricName() { } } /** - * - * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -517,43 +472,32 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearMetricName() { @@ -563,34 +507,28 @@ public Builder clearMetricName() { return this; } /** - * - * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetLogMetricRequest) private static final com.google.logging.v2.GetLogMetricRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetLogMetricRequest(); } @@ -614,27 +552,27 @@ public static com.google.logging.v2.GetLogMetricRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java new file mode 100644 index 000000000..a797df37b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface GetLogMetricRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLogMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the desired metric:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + *
+   * Required. The resource name of the desired metric:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString + getMetricNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java index 208a2098d..a1c09706e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -33,48 +16,43 @@
  *
  * Protobuf type {@code google.logging.v2.GetSettingsRequest}
  */
-public final class GetSettingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSettingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.GetSettingsRequest)
     GetSettingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSettingsRequest.newBuilder() to construct.
   private GetSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.GetSettingsRequest.class,
-            com.google.logging.v2.GetSettingsRequest.Builder.class);
+            com.google.logging.v2.GetSettingsRequest.class, com.google.logging.v2.GetSettingsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource for which to retrieve settings.
    *
@@ -93,10 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -105,15 +80,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource for which to retrieve settings.
    *
@@ -132,18 +106,17 @@ public java.lang.String getName() {
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -152,7 +125,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,14 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetSettingsRequest)) { return super.equals(obj); } com.google.logging.v2.GetSettingsRequest other = (com.google.logging.v2.GetSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,104 +188,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetSettingsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to
    * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -323,32 +292,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.GetSettingsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.GetSettingsRequest)
       com.google.logging.v2.GetSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.GetSettingsRequest.class,
-              com.google.logging.v2.GetSettingsRequest.Builder.class);
+              com.google.logging.v2.GetSettingsRequest.class, com.google.logging.v2.GetSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.GetSettingsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,9 +328,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -379,11 +349,8 @@ public com.google.logging.v2.GetSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.GetSettingsRequest buildPartial() {
-      com.google.logging.v2.GetSettingsRequest result =
-          new com.google.logging.v2.GetSettingsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.GetSettingsRequest result = new com.google.logging.v2.GetSettingsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -399,39 +366,38 @@ private void buildPartial0(com.google.logging.v2.GetSettingsRequest result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.GetSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetSettingsRequest) other);
+        return mergeFrom((com.google.logging.v2.GetSettingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -471,19 +437,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -493,13 +457,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource for which to retrieve settings.
      *
@@ -518,16 +479,14 @@ public Builder mergeFrom(
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -536,8 +495,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -556,17 +513,16 @@ public java.lang.String getName() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -574,8 +530,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -594,25 +548,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -631,10 +579,7 @@ public Builder setName(java.lang.String value) {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -644,8 +589,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -664,26 +607,22 @@ public Builder clearName() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -693,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetSettingsRequest) private static final com.google.logging.v2.GetSettingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetSettingsRequest(); } @@ -707,27 +646,27 @@ public static com.google.logging.v2.GetSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,4 +681,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java index d56d09d54..189c0dddb 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetSettingsRequestOrBuilder - extends +public interface GetSettingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSettingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource for which to retrieve settings.
    *
@@ -45,16 +27,11 @@ public interface GetSettingsRequestOrBuilder
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource for which to retrieve settings.
    *
@@ -73,11 +50,9 @@ public interface GetSettingsRequestOrBuilder
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java index f921e436b..cb39329cb 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `GetSink`.
  * 
* * Protobuf type {@code google.logging.v2.GetSinkRequest} */ -public final class GetSinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetSinkRequest) GetSinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSinkRequest.newBuilder() to construct. private GetSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetSinkRequest.class, - com.google.logging.v2.GetSinkRequest.Builder.class); + com.google.logging.v2.GetSinkRequest.class, com.google.logging.v2.GetSinkRequest.Builder.class); } public static final int SINK_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** - * - * *
    * Required. The resource name of the sink:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the sink:
    *
@@ -117,18 +91,17 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -173,14 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetSinkRequest)) { return super.equals(obj); } com.google.logging.v2.GetSinkRequest other = (com.google.logging.v2.GetSinkRequest) obj; - if (!getSinkName().equals(other.getSinkName())) return false; + if (!getSinkName() + .equals(other.getSinkName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,135 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetSinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetSinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.GetSinkRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.GetSinkRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetSinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetSinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetSinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetSinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `GetSink`.
    * 
* * Protobuf type {@code google.logging.v2.GetSinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetSinkRequest) com.google.logging.v2.GetSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetSinkRequest.class, - com.google.logging.v2.GetSinkRequest.Builder.class); + com.google.logging.v2.GetSinkRequest.class, com.google.logging.v2.GetSinkRequest.Builder.class); } // Construct using com.google.logging.v2.GetSinkRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override @@ -359,9 +330,7 @@ public com.google.logging.v2.GetSinkRequest build() { @java.lang.Override public com.google.logging.v2.GetSinkRequest buildPartial() { com.google.logging.v2.GetSinkRequest result = new com.google.logging.v2.GetSinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -377,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.GetSinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetSinkRequest) { - return mergeFrom((com.google.logging.v2.GetSinkRequest) other); + return mergeFrom((com.google.logging.v2.GetSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -449,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sinkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -471,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -491,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -509,8 +470,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -524,17 +483,16 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -542,8 +500,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -557,25 +513,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -589,10 +539,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSinkName() { @@ -602,8 +549,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -617,26 +562,22 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -646,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetSinkRequest) private static final com.google.logging.v2.GetSinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetSinkRequest(); } @@ -660,27 +601,27 @@ public static com.google.logging.v2.GetSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java index 180e335eb..1c9c4b39e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetSinkRequestOrBuilder - extends +public interface GetSinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the sink:
    *
@@ -40,16 +22,11 @@ public interface GetSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ java.lang.String getSinkName(); /** - * - * *
    * Required. The resource name of the sink:
    *
@@ -63,11 +40,9 @@ public interface GetSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - com.google.protobuf.ByteString getSinkNameBytes(); + com.google.protobuf.ByteString + getSinkNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java index 08301afb4..370841cd0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `GetView`.
  * 
* * Protobuf type {@code google.logging.v2.GetViewRequest} */ -public final class GetViewRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetViewRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetViewRequest) GetViewRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetViewRequest.newBuilder() to construct. private GetViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetViewRequest.class, - com.google.logging.v2.GetViewRequest.Builder.class); + com.google.logging.v2.GetViewRequest.class, com.google.logging.v2.GetViewRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the policy:
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the policy:
    *
@@ -111,18 +85,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -131,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +115,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -167,14 +140,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetViewRequest)) { return super.equals(obj); } com.google.logging.v2.GetViewRequest other = (com.google.logging.v2.GetViewRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -193,135 +167,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetViewRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.GetViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetViewRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.GetViewRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.GetViewRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.GetViewRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetViewRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetViewRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetViewRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.GetViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.GetViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `GetView`.
    * 
* * Protobuf type {@code google.logging.v2.GetViewRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetViewRequest) com.google.logging.v2.GetViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetViewRequest.class, - com.google.logging.v2.GetViewRequest.Builder.class); + com.google.logging.v2.GetViewRequest.class, com.google.logging.v2.GetViewRequest.Builder.class); } // Construct using com.google.logging.v2.GetViewRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -331,9 +302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_GetViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override @@ -353,9 +324,7 @@ public com.google.logging.v2.GetViewRequest build() { @java.lang.Override public com.google.logging.v2.GetViewRequest buildPartial() { com.google.logging.v2.GetViewRequest result = new com.google.logging.v2.GetViewRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +340,38 @@ private void buildPartial0(com.google.logging.v2.GetViewRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.GetViewRequest) { - return mergeFrom((com.google.logging.v2.GetViewRequest) other); + return mergeFrom((com.google.logging.v2.GetViewRequest)other); } else { super.mergeFrom(other); return this; @@ -443,19 +411,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,13 +431,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -482,16 +445,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -500,8 +461,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -512,17 +471,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,8 +488,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -542,25 +498,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -571,10 +521,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -584,8 +531,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -596,26 +541,22 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetViewRequest) private static final com.google.logging.v2.GetViewRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.GetViewRequest(); } @@ -639,27 +580,27 @@ public static com.google.logging.v2.GetViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,4 +615,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java new file mode 100644 index 000000000..d84b0135d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface GetViewRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the policy:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the policy:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java index 39c85ac0c..e2721fb3b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Configuration for an indexed field.
  * 
* * Protobuf type {@code google.logging.v2.IndexConfig} */ -public final class IndexConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IndexConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.IndexConfig) IndexConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IndexConfig.newBuilder() to construct. private IndexConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IndexConfig() { fieldPath_ = ""; type_ = 0; @@ -45,33 +27,29 @@ private IndexConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IndexConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_IndexConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.IndexConfig.class, - com.google.logging.v2.IndexConfig.Builder.class); + com.google.logging.v2.IndexConfig.class, com.google.logging.v2.IndexConfig.Builder.class); } private int bitField0_; public static final int FIELD_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -84,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fieldPath. */ @java.lang.Override @@ -93,15 +70,14 @@ public java.lang.String getFieldPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; } } /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -114,15 +90,16 @@ public java.lang.String getFieldPath() {
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fieldPath. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldPathBytes() { + public com.google.protobuf.ByteString + getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -133,33 +110,25 @@ public com.google.protobuf.ByteString getFieldPathBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The type. */ - @java.lang.Override - public com.google.logging.v2.IndexType getType() { + @java.lang.Override public com.google.logging.v2.IndexType getType() { com.google.logging.v2.IndexType result = com.google.logging.v2.IndexType.forNumber(type_); return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; } @@ -167,8 +136,6 @@ public com.google.logging.v2.IndexType getType() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -176,9 +143,7 @@ public com.google.logging.v2.IndexType getType() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -186,8 +151,6 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -195,9 +158,7 @@ public boolean hasCreateTime() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,8 +166,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -214,8 +173,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -223,7 +181,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,7 +192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); } @@ -258,10 +216,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); } if (type_ != com.google.logging.v2.IndexType.INDEX_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,18 +231,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.IndexConfig)) { return super.equals(obj); } com.google.logging.v2.IndexConfig other = (com.google.logging.v2.IndexConfig) obj; - if (!getFieldPath().equals(other.getFieldPath())) return false; + if (!getFieldPath() + .equals(other.getFieldPath())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -308,126 +270,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.IndexConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.IndexConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.IndexConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.IndexConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.IndexConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.IndexConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.IndexConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.IndexConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.IndexConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.IndexConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.IndexConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.IndexConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.IndexConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.IndexConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.IndexConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for an indexed field.
    * 
* * Protobuf type {@code google.logging.v2.IndexConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.IndexConfig) com.google.logging.v2.IndexConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_IndexConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.IndexConfig.class, - com.google.logging.v2.IndexConfig.Builder.class); + com.google.logging.v2.IndexConfig.class, com.google.logging.v2.IndexConfig.Builder.class); } // Construct using com.google.logging.v2.IndexConfig.newBuilder() @@ -435,17 +391,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_IndexConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override @@ -483,9 +439,7 @@ public com.google.logging.v2.IndexConfig build() { @java.lang.Override public com.google.logging.v2.IndexConfig buildPartial() { com.google.logging.v2.IndexConfig result = new com.google.logging.v2.IndexConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -500,7 +454,9 @@ private void buildPartial0(com.google.logging.v2.IndexConfig result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -510,39 +466,38 @@ private void buildPartial0(com.google.logging.v2.IndexConfig result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.IndexConfig) { - return mergeFrom((com.google.logging.v2.IndexConfig) other); + return mergeFrom((com.google.logging.v2.IndexConfig)other); } else { super.mergeFrom(other); return this; @@ -588,31 +543,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -622,13 +575,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object fieldPath_ = ""; /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -641,13 +591,13 @@ public Builder mergeFrom(
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fieldPath. */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; @@ -656,8 +606,6 @@ public java.lang.String getFieldPath() { } } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -670,14 +618,15 @@ public java.lang.String getFieldPath() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fieldPath. */ - public com.google.protobuf.ByteString getFieldPathBytes() { + public com.google.protobuf.ByteString + getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -685,8 +634,6 @@ public com.google.protobuf.ByteString getFieldPathBytes() { } } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -699,22 +646,18 @@ public com.google.protobuf.ByteString getFieldPathBytes() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fieldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -727,7 +670,6 @@ public Builder setFieldPath(java.lang.String value) {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFieldPath() { @@ -737,8 +679,6 @@ public Builder clearFieldPath() { return this; } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -751,14 +691,12 @@ public Builder clearFieldPath() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldPath_ = value; bitField0_ |= 0x00000001; @@ -768,29 +706,22 @@ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -801,14 +732,11 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The type. */ @java.lang.Override @@ -817,14 +745,11 @@ public com.google.logging.v2.IndexType getType() { return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; } /** - * - * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The type to set. * @return This builder for chaining. */ @@ -838,14 +763,11 @@ public Builder setType(com.google.logging.v2.IndexType value) { return this; } /** - * - * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -857,13 +779,8 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -871,18 +788,13 @@ public Builder clearType() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -890,24 +802,17 @@ public boolean hasCreateTime() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -915,9 +820,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -933,8 +836,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -942,11 +843,10 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -957,8 +857,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -966,15 +864,13 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -989,8 +885,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -998,9 +892,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1013,8 +905,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -1022,9 +912,7 @@ public Builder clearCreateTime() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1032,8 +920,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -1041,22 +927,17 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -1064,29 +945,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * during update.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.IndexConfig) } // @@protoc_insertion_point(class_scope:google.logging.v2.IndexConfig) private static final com.google.logging.v2.IndexConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.IndexConfig(); } @@ -1110,27 +986,27 @@ public static com.google.logging.v2.IndexConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.IndexConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java index 2eafb2c8d..1f79bfeb9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface IndexConfigOrBuilder - extends +public interface IndexConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.IndexConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -39,13 +21,10 @@ public interface IndexConfigOrBuilder
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fieldPath. */ java.lang.String getFieldPath(); /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -58,39 +37,31 @@ public interface IndexConfigOrBuilder
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fieldPath. */ - com.google.protobuf.ByteString getFieldPathBytes(); + com.google.protobuf.ByteString + getFieldPathBytes(); /** - * - * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The type. */ com.google.logging.v2.IndexType getType(); /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -98,15 +69,11 @@ public interface IndexConfigOrBuilder
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -114,15 +81,11 @@ public interface IndexConfigOrBuilder
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -130,8 +93,7 @@ public interface IndexConfigOrBuilder
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java index b574f03e5..eb8f096f9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * IndexType is used for custom indexing. It describes the type of an indexed
  * field.
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.logging.v2.IndexType}
  */
-public enum IndexType implements com.google.protobuf.ProtocolMessageEnum {
+public enum IndexType
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * The index's type is unspecified.
    * 
@@ -41,8 +23,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ INDEX_TYPE_UNSPECIFIED(0), /** - * - * *
    * The index is a string-type index.
    * 
@@ -51,8 +31,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ INDEX_TYPE_STRING(1), /** - * - * *
    * The index is a integer-type index.
    * 
@@ -64,8 +42,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The index's type is unspecified.
    * 
@@ -74,8 +50,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The index is a string-type index.
    * 
@@ -84,8 +58,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_STRING_VALUE = 1; /** - * - * *
    * The index is a integer-type index.
    * 
@@ -94,6 +66,7 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_INTEGER_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,49 @@ public static IndexType valueOf(int value) { */ public static IndexType forNumber(int value) { switch (value) { - case 0: - return INDEX_TYPE_UNSPECIFIED; - case 1: - return INDEX_TYPE_STRING; - case 2: - return INDEX_TYPE_INTEGER; - default: - return null; + case 0: return INDEX_TYPE_UNSPECIFIED; + case 1: return INDEX_TYPE_STRING; + case 2: return INDEX_TYPE_INTEGER; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IndexType findValueByNumber(int number) { - return IndexType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + IndexType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IndexType findValueByNumber(int number) { + return IndexType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(2); } private static final IndexType[] VALUES = values(); - public static IndexType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static IndexType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -176,3 +149,4 @@ private IndexType(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.IndexType) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java index bc2fba7ce..3b868018b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java @@ -1,37 +1,19 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * LogBucket lifecycle states.
  * 
* * Protobuf enum {@code google.logging.v2.LifecycleState} */ -public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { +public enum LifecycleState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -41,8 +23,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   LIFECYCLE_STATE_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * The normal and active state.
    * 
@@ -51,8 +31,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
    * The resource has been marked for deletion by the user. For some resources
    * (e.g. buckets), this can be reversed by an un-delete operation.
@@ -62,8 +40,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   DELETE_REQUESTED(2),
   /**
-   *
-   *
    * 
    * The resource has been marked for an update by the user. It will remain in
    * this state until the update is complete.
@@ -73,8 +49,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   UPDATING(3),
   /**
-   *
-   *
    * 
    * The resource has been marked for creation by the user. It will remain in
    * this state until the creation is complete.
@@ -84,8 +58,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   CREATING(4),
   /**
-   *
-   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -97,8 +69,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -108,8 +78,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * The normal and active state.
    * 
@@ -118,8 +86,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
    * The resource has been marked for deletion by the user. For some resources
    * (e.g. buckets), this can be reversed by an un-delete operation.
@@ -129,8 +95,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int DELETE_REQUESTED_VALUE = 2;
   /**
-   *
-   *
    * 
    * The resource has been marked for an update by the user. It will remain in
    * this state until the update is complete.
@@ -140,8 +104,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int UPDATING_VALUE = 3;
   /**
-   *
-   *
    * 
    * The resource has been marked for creation by the user. It will remain in
    * this state until the creation is complete.
@@ -151,8 +113,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CREATING_VALUE = 4;
   /**
-   *
-   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -161,6 +121,7 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,55 +146,52 @@ public static LifecycleState valueOf(int value) { */ public static LifecycleState forNumber(int value) { switch (value) { - case 0: - return LIFECYCLE_STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return DELETE_REQUESTED; - case 3: - return UPDATING; - case 4: - return CREATING; - case 5: - return FAILED; - default: - return null; + case 0: return LIFECYCLE_STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return DELETE_REQUESTED; + case 3: return UPDATING; + case 4: return CREATING; + case 5: return FAILED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LifecycleState findValueByNumber(int number) { - return LifecycleState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LifecycleState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LifecycleState findValueByNumber(int number) { + return LifecycleState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1); } private static final LifecycleState[] VALUES = values(); - public static LifecycleState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LifecycleState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -249,3 +207,4 @@ private LifecycleState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.LifecycleState) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java index 2162b23bf..b3862e023 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a link connected to an analytics enabled bucket.
  * 
* * Protobuf type {@code google.logging.v2.Link} */ -public final class Link extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Link extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.Link) LinkOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Link() { name_ = ""; description_ = ""; @@ -46,32 +28,29 @@ private Link() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Link(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_Link_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_Link_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -88,7 +67,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -97,15 +75,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -122,15 +99,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -139,12 +117,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Describes this link.
    *
@@ -152,7 +127,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -161,15 +135,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Describes this link.
    *
@@ -177,15 +150,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -196,15 +170,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -212,15 +182,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -228,14 +194,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -245,47 +208,32 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 4; private int lifecycleState_ = 0; /** - * - * *
    * Output only. The resource lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
    * Output only. The resource lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ - @java.lang.Override - public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } public static final int BIGQUERY_DATASET_FIELD_NUMBER = 5; private com.google.logging.v2.BigQueryDataset bigqueryDataset_; /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -294,7 +242,6 @@ public com.google.logging.v2.LifecycleState getLifecycleState() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -302,8 +249,6 @@ public boolean hasBigqueryDataset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -312,18 +257,13 @@ public boolean hasBigqueryDataset() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return The bigqueryDataset. */ @java.lang.Override public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { - return bigqueryDataset_ == null - ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() - : bigqueryDataset_; + return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_; } /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -335,13 +275,10 @@ public com.google.logging.v2.BigQueryDataset getBigqueryDataset() {
    */
   @java.lang.Override
   public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder() {
-    return bigqueryDataset_ == null
-        ? com.google.logging.v2.BigQueryDataset.getDefaultInstance()
-        : bigqueryDataset_;
+    return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -353,7 +290,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -363,8 +301,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(3, getCreateTime());
     }
-    if (lifecycleState_
-        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(4, lifecycleState_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
@@ -386,14 +323,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCreateTime());
     }
-    if (lifecycleState_
-        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, lifecycleState_);
+    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(4, lifecycleState_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBigqueryDataset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getBigqueryDataset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -403,23 +342,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.Link)) {
       return super.equals(obj);
     }
     com.google.logging.v2.Link other = (com.google.logging.v2.Link) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (lifecycleState_ != other.lifecycleState_) return false;
     if (hasBigqueryDataset() != other.hasBigqueryDataset()) return false;
     if (hasBigqueryDataset()) {
-      if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false;
+      if (!getBigqueryDataset()
+          .equals(other.getBigqueryDataset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -451,123 +394,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.Link parseFrom(java.nio.ByteBuffer data)
+  public static com.google.logging.v2.Link parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.Link parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.logging.v2.Link parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.logging.v2.Link parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.Link parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.Link parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.Link parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.Link parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.Link parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.Link parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.Link parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.logging.v2.Link parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.logging.v2.Link parseFrom(
+      com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.Link parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.Link prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Describes a link connected to an analytics enabled bucket.
    * 
* * Protobuf type {@code google.logging.v2.Link} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.Link) com.google.logging.v2.LinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_Link_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_Link_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); } @@ -577,18 +515,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getBigqueryDatasetFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -610,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_Link_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override @@ -632,9 +570,7 @@ public com.google.logging.v2.Link build() { @java.lang.Override public com.google.logging.v2.Link buildPartial() { com.google.logging.v2.Link result = new com.google.logging.v2.Link(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -649,15 +585,18 @@ private void buildPartial0(com.google.logging.v2.Link result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lifecycleState_ = lifecycleState_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.bigqueryDataset_ = - bigqueryDatasetBuilder_ == null ? bigqueryDataset_ : bigqueryDatasetBuilder_.build(); + result.bigqueryDataset_ = bigqueryDatasetBuilder_ == null + ? bigqueryDataset_ + : bigqueryDatasetBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -667,39 +606,38 @@ private void buildPartial0(com.google.logging.v2.Link result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.Link) { - return mergeFrom((com.google.logging.v2.Link) other); + return mergeFrom((com.google.logging.v2.Link)other); } else { super.mergeFrom(other); return this; @@ -753,43 +691,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - lifecycleState_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getBigqueryDatasetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getBigqueryDatasetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -799,13 +735,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -822,13 +755,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -837,8 +770,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -855,14 +786,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -870,8 +802,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -888,22 +818,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -920,7 +846,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -930,8 +855,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -948,14 +871,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -965,8 +886,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Describes this link.
      *
@@ -974,13 +893,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -989,8 +908,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Describes this link.
      *
@@ -998,14 +915,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1013,8 +931,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Describes this link.
      *
@@ -1022,22 +938,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Describes this link.
      *
@@ -1045,7 +957,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1055,8 +966,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Describes this link.
      *
@@ -1064,14 +973,12 @@ public Builder clearDescription() {
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1081,58 +988,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1148,17 +1036,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1169,21 +1054,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1198,15 +1079,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1219,15 +1096,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1235,48 +1108,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the link.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1284,33 +1145,22 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int lifecycleState_ = 0; /** - * - * *
      * Output only. The resource lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
      * Output only. The resource lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for lifecycleState to set. * @return This builder for chaining. */ @@ -1321,35 +1171,24 @@ public Builder setLifecycleStateValue(int value) { return this; } /** - * - * *
      * Output only. The resource lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The resource lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The lifecycleState to set. * @return This builder for chaining. */ @@ -1363,16 +1202,11 @@ public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { return this; } /** - * - * *
      * Output only. The resource lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearLifecycleState() { @@ -1384,13 +1218,8 @@ public Builder clearLifecycleState() { private com.google.logging.v2.BigQueryDataset bigqueryDataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryDataset, - com.google.logging.v2.BigQueryDataset.Builder, - com.google.logging.v2.BigQueryDatasetOrBuilder> - bigqueryDatasetBuilder_; + com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder> bigqueryDatasetBuilder_; /** - * - * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1399,15 +1228,12 @@ public Builder clearLifecycleState() {
      * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return Whether the bigqueryDataset field is set. */ public boolean hasBigqueryDataset() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1416,21 +1242,16 @@ public boolean hasBigqueryDataset() {
      * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return The bigqueryDataset. */ public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { if (bigqueryDatasetBuilder_ == null) { - return bigqueryDataset_ == null - ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() - : bigqueryDataset_; + return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_; } else { return bigqueryDatasetBuilder_.getMessage(); } } /** - * - * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1454,8 +1275,6 @@ public Builder setBigqueryDataset(com.google.logging.v2.BigQueryDataset value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1477,8 +1296,6 @@ public Builder setBigqueryDataset(
       return this;
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1490,9 +1307,9 @@ public Builder setBigqueryDataset(
      */
     public Builder mergeBigqueryDataset(com.google.logging.v2.BigQueryDataset value) {
       if (bigqueryDatasetBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && bigqueryDataset_ != null
-            && bigqueryDataset_ != com.google.logging.v2.BigQueryDataset.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          bigqueryDataset_ != null &&
+          bigqueryDataset_ != com.google.logging.v2.BigQueryDataset.getDefaultInstance()) {
           getBigqueryDatasetBuilder().mergeFrom(value);
         } else {
           bigqueryDataset_ = value;
@@ -1507,8 +1324,6 @@ public Builder mergeBigqueryDataset(com.google.logging.v2.BigQueryDataset value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1529,8 +1344,6 @@ public Builder clearBigqueryDataset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1546,8 +1359,6 @@ public com.google.logging.v2.BigQueryDataset.Builder getBigqueryDatasetBuilder()
       return getBigqueryDatasetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1561,14 +1372,11 @@ public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilde
       if (bigqueryDatasetBuilder_ != null) {
         return bigqueryDatasetBuilder_.getMessageOrBuilder();
       } else {
-        return bigqueryDataset_ == null
-            ? com.google.logging.v2.BigQueryDataset.getDefaultInstance()
-            : bigqueryDataset_;
+        return bigqueryDataset_ == null ?
+            com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_;
       }
     }
     /**
-     *
-     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1579,24 +1387,21 @@ public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilde
      * .google.logging.v2.BigQueryDataset bigquery_dataset = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.BigQueryDataset,
-            com.google.logging.v2.BigQueryDataset.Builder,
-            com.google.logging.v2.BigQueryDatasetOrBuilder>
+        com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder> 
         getBigqueryDatasetFieldBuilder() {
       if (bigqueryDatasetBuilder_ == null) {
-        bigqueryDatasetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.logging.v2.BigQueryDataset,
-                com.google.logging.v2.BigQueryDataset.Builder,
-                com.google.logging.v2.BigQueryDatasetOrBuilder>(
-                getBigqueryDataset(), getParentForChildren(), isClean());
+        bigqueryDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder>(
+                getBigqueryDataset(),
+                getParentForChildren(),
+                isClean());
         bigqueryDataset_ = null;
       }
       return bigqueryDatasetBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1606,12 +1411,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.logging.v2.Link)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.Link)
   private static final com.google.logging.v2.Link DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.Link();
   }
@@ -1620,27 +1425,27 @@ public static com.google.logging.v2.Link getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Link parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Link parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1655,4 +1460,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.Link getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
index ebdf7dd7b..ba4ae8df3 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
@@ -1,83 +1,60 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * Metadata for long running Link operations.
  * 
* * Protobuf type {@code google.logging.v2.LinkMetadata} */ -public final class LinkMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LinkMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.LinkMetadata) LinkMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LinkMetadata.newBuilder() to construct. private LinkMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LinkMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LinkMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LinkMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LinkMetadata.class, - com.google.logging.v2.LinkMetadata.Builder.class); + com.google.logging.v2.LinkMetadata.class, com.google.logging.v2.LinkMetadata.Builder.class); } private int bitField0_; private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_LINK_REQUEST(4), DELETE_LINK_REQUEST(5), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -93,37 +70,31 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 4: - return CREATE_LINK_REQUEST; - case 5: - return DELETE_LINK_REQUEST; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 4: return CREATE_LINK_REQUEST; + case 5: return DELETE_LINK_REQUEST; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -131,14 +102,11 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -146,8 +114,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The start time of an operation.
    * 
@@ -162,14 +128,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -177,14 +140,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -192,8 +152,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -208,48 +166,36 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CREATE_LINK_REQUEST_FIELD_NUMBER = 4; /** - * - * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return Whether the createLinkRequest field is set. */ @java.lang.Override @@ -257,26 +203,21 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** - * - * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return The createLinkRequest. */ @java.lang.Override public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateLinkRequest) request_; + return (com.google.logging.v2.CreateLinkRequest) request_; } return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } /** - * - * *
    * CreateLink RPC request.
    * 
@@ -286,21 +227,18 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { @java.lang.Override public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateLinkRequest) request_; + return (com.google.logging.v2.CreateLinkRequest) request_; } return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } public static final int DELETE_LINK_REQUEST_FIELD_NUMBER = 5; /** - * - * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return Whether the deleteLinkRequest field is set. */ @java.lang.Override @@ -308,26 +246,21 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** - * - * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return The deleteLinkRequest. */ @java.lang.Override public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { if (requestCase_ == 5) { - return (com.google.logging.v2.DeleteLinkRequest) request_; + return (com.google.logging.v2.DeleteLinkRequest) request_; } return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } /** - * - * *
    * DeleteLink RPC request.
    * 
@@ -337,13 +270,12 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { @java.lang.Override public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBuilder() { if (requestCase_ == 5) { - return (com.google.logging.v2.DeleteLinkRequest) request_; + return (com.google.logging.v2.DeleteLinkRequest) request_; } return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } @@ -381,23 +314,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (requestCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.logging.v2.CreateLinkRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.logging.v2.CreateLinkRequest) request_); } if (requestCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.logging.v2.DeleteLinkRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.logging.v2.DeleteLinkRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -407,7 +341,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LinkMetadata)) { return super.equals(obj); @@ -416,20 +350,24 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 4: - if (!getCreateLinkRequest().equals(other.getCreateLinkRequest())) return false; + if (!getCreateLinkRequest() + .equals(other.getCreateLinkRequest())) return false; break; case 5: - if (!getDeleteLinkRequest().equals(other.getDeleteLinkRequest())) return false; + if (!getDeleteLinkRequest() + .equals(other.getDeleteLinkRequest())) return false; break; case 0: default: @@ -472,126 +410,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LinkMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LinkMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LinkMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LinkMetadata parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LinkMetadata parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LinkMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LinkMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LinkMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LinkMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LinkMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LinkMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LinkMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LinkMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LinkMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LinkMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for long running Link operations.
    * 
* * Protobuf type {@code google.logging.v2.LinkMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LinkMetadata) com.google.logging.v2.LinkMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LinkMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LinkMetadata.class, - com.google.logging.v2.LinkMetadata.Builder.class); + com.google.logging.v2.LinkMetadata.class, com.google.logging.v2.LinkMetadata.Builder.class); } // Construct using com.google.logging.v2.LinkMetadata.newBuilder() @@ -599,18 +531,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -638,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LinkMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override @@ -660,9 +592,7 @@ public com.google.logging.v2.LinkMetadata build() { @java.lang.Override public com.google.logging.v2.LinkMetadata buildPartial() { com.google.logging.v2.LinkMetadata result = new com.google.logging.v2.LinkMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -672,11 +602,15 @@ private void buildPartial0(com.google.logging.v2.LinkMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -688,10 +622,12 @@ private void buildPartial0(com.google.logging.v2.LinkMetadata result) { private void buildPartialOneofs(com.google.logging.v2.LinkMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 4 && createLinkRequestBuilder_ != null) { + if (requestCase_ == 4 && + createLinkRequestBuilder_ != null) { result.request_ = createLinkRequestBuilder_.build(); } - if (requestCase_ == 5 && deleteLinkRequestBuilder_ != null) { + if (requestCase_ == 5 && + deleteLinkRequestBuilder_ != null) { result.request_ = deleteLinkRequestBuilder_.build(); } } @@ -700,39 +636,38 @@ private void buildPartialOneofs(com.google.logging.v2.LinkMetadata result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LinkMetadata) { - return mergeFrom((com.google.logging.v2.LinkMetadata) other); + return mergeFrom((com.google.logging.v2.LinkMetadata)other); } else { super.mergeFrom(other); return this; @@ -751,20 +686,17 @@ public Builder mergeFrom(com.google.logging.v2.LinkMetadata other) { setStateValue(other.getStateValue()); } switch (other.getRequestCase()) { - case CREATE_LINK_REQUEST: - { - mergeCreateLinkRequest(other.getCreateLinkRequest()); - break; - } - case DELETE_LINK_REQUEST: - { - mergeDeleteLinkRequest(other.getDeleteLinkRequest()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case CREATE_LINK_REQUEST: { + mergeCreateLinkRequest(other.getCreateLinkRequest()); + break; + } + case DELETE_LINK_REQUEST: { + mergeDeleteLinkRequest(other.getDeleteLinkRequest()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -792,45 +724,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getCreateLinkRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getDeleteLinkRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getCreateLinkRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getDeleteLinkRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -840,12 +772,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -859,33 +791,24 @@ public Builder clearRequest() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -896,8 +819,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The start time of an operation.
      * 
@@ -918,15 +839,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -937,8 +857,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -947,9 +865,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -964,8 +882,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -983,8 +899,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -997,8 +911,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The start time of an operation.
      * 
@@ -1009,12 +921,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The start time of an operation.
      * 
@@ -1022,17 +933,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1040,33 +948,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1077,8 +976,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1099,15 +996,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1118,8 +1014,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1128,9 +1022,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1145,8 +1039,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1164,8 +1056,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1178,8 +1068,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1190,12 +1078,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1203,17 +1090,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1221,29 +1105,22 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1254,31 +1131,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = - com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1292,14 +1162,11 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** - * - * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1310,19 +1177,13 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, - com.google.logging.v2.CreateLinkRequest.Builder, - com.google.logging.v2.CreateLinkRequestOrBuilder> - createLinkRequestBuilder_; + com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder> createLinkRequestBuilder_; /** - * - * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return Whether the createLinkRequest field is set. */ @java.lang.Override @@ -1330,14 +1191,11 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** - * - * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return The createLinkRequest. */ @java.lang.Override @@ -1355,8 +1213,6 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { } } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1377,8 +1233,6 @@ public Builder setCreateLinkRequest(com.google.logging.v2.CreateLinkRequest valu return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1397,8 +1251,6 @@ public Builder setCreateLinkRequest( return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1407,13 +1259,10 @@ public Builder setCreateLinkRequest( */ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest value) { if (createLinkRequestBuilder_ == null) { - if (requestCase_ == 4 - && request_ != com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) { - request_ = - com.google.logging.v2.CreateLinkRequest.newBuilder( - (com.google.logging.v2.CreateLinkRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 4 && + request_ != com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) { + request_ = com.google.logging.v2.CreateLinkRequest.newBuilder((com.google.logging.v2.CreateLinkRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1429,8 +1278,6 @@ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest va return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1454,8 +1301,6 @@ public Builder clearCreateLinkRequest() { return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1466,8 +1311,6 @@ public com.google.logging.v2.CreateLinkRequest.Builder getCreateLinkRequestBuild return getCreateLinkRequestFieldBuilder().getBuilder(); } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1486,8 +1329,6 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1495,19 +1336,14 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu * .google.logging.v2.CreateLinkRequest create_link_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, - com.google.logging.v2.CreateLinkRequest.Builder, - com.google.logging.v2.CreateLinkRequestOrBuilder> + com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder> getCreateLinkRequestFieldBuilder() { if (createLinkRequestBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } - createLinkRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, - com.google.logging.v2.CreateLinkRequest.Builder, - com.google.logging.v2.CreateLinkRequestOrBuilder>( + createLinkRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder>( (com.google.logging.v2.CreateLinkRequest) request_, getParentForChildren(), isClean()); @@ -1519,19 +1355,13 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, - com.google.logging.v2.DeleteLinkRequest.Builder, - com.google.logging.v2.DeleteLinkRequestOrBuilder> - deleteLinkRequestBuilder_; + com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder> deleteLinkRequestBuilder_; /** - * - * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return Whether the deleteLinkRequest field is set. */ @java.lang.Override @@ -1539,14 +1369,11 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** - * - * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return The deleteLinkRequest. */ @java.lang.Override @@ -1564,8 +1391,6 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { } } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1586,8 +1411,6 @@ public Builder setDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest valu return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1606,8 +1429,6 @@ public Builder setDeleteLinkRequest( return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1616,13 +1437,10 @@ public Builder setDeleteLinkRequest( */ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest value) { if (deleteLinkRequestBuilder_ == null) { - if (requestCase_ == 5 - && request_ != com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) { - request_ = - com.google.logging.v2.DeleteLinkRequest.newBuilder( - (com.google.logging.v2.DeleteLinkRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 5 && + request_ != com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) { + request_ = com.google.logging.v2.DeleteLinkRequest.newBuilder((com.google.logging.v2.DeleteLinkRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1638,8 +1456,6 @@ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest va return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1663,8 +1479,6 @@ public Builder clearDeleteLinkRequest() { return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1675,8 +1489,6 @@ public com.google.logging.v2.DeleteLinkRequest.Builder getDeleteLinkRequestBuild return getDeleteLinkRequestFieldBuilder().getBuilder(); } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1695,8 +1507,6 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu } } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1704,19 +1514,14 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, - com.google.logging.v2.DeleteLinkRequest.Builder, - com.google.logging.v2.DeleteLinkRequestOrBuilder> + com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder> getDeleteLinkRequestFieldBuilder() { if (deleteLinkRequestBuilder_ == null) { if (!(requestCase_ == 5)) { request_ = com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } - deleteLinkRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, - com.google.logging.v2.DeleteLinkRequest.Builder, - com.google.logging.v2.DeleteLinkRequestOrBuilder>( + deleteLinkRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder>( (com.google.logging.v2.DeleteLinkRequest) request_, getParentForChildren(), isClean()); @@ -1726,9 +1531,9 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu onChanged(); return deleteLinkRequestBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1738,12 +1543,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LinkMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.LinkMetadata) private static final com.google.logging.v2.LinkMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LinkMetadata(); } @@ -1752,27 +1557,27 @@ public static com.google.logging.v2.LinkMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1787,4 +1592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LinkMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java index 363bd6af9..ce199b79a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LinkMetadataOrBuilder - extends +public interface LinkMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LinkMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The start time of an operation.
    * 
@@ -60,32 +36,24 @@ public interface LinkMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The end time of an operation.
    * 
@@ -95,57 +63,43 @@ public interface LinkMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; - * * @return The state. */ com.google.logging.v2.OperationState getState(); /** - * - * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return Whether the createLinkRequest field is set. */ boolean hasCreateLinkRequest(); /** - * - * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return The createLinkRequest. */ com.google.logging.v2.CreateLinkRequest getCreateLinkRequest(); /** - * - * *
    * CreateLink RPC request.
    * 
@@ -155,32 +109,24 @@ public interface LinkMetadataOrBuilder com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder(); /** - * - * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return Whether the deleteLinkRequest field is set. */ boolean hasDeleteLinkRequest(); /** - * - * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return The deleteLinkRequest. */ com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest(); /** - * - * *
    * DeleteLink RPC request.
    * 
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java index 63cd74299..ccfc4584a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LinkOrBuilder - extends +public interface LinkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.Link) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -43,13 +25,10 @@ public interface LinkOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -66,14 +45,12 @@ public interface LinkOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Describes this link.
    *
@@ -81,13 +58,10 @@ public interface LinkOrBuilder
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Describes this link.
    *
@@ -95,81 +69,58 @@ public interface LinkOrBuilder
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The resource lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ int getLifecycleStateValue(); /** - * - * *
    * Output only. The resource lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ com.google.logging.v2.LifecycleState getLifecycleState(); /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -178,13 +129,10 @@ public interface LinkOrBuilder
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return Whether the bigqueryDataset field is set. */ boolean hasBigqueryDataset(); /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -193,13 +141,10 @@ public interface LinkOrBuilder
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return The bigqueryDataset. */ com.google.logging.v2.BigQueryDataset getBigqueryDataset(); /** - * - * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
similarity index 71%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
index bdcf1f5c7..81e5db4ae 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
@@ -1,43 +1,25 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * The parameters to `ListBuckets`.
  * 
* * Protobuf type {@code google.logging.v2.ListBucketsRequest} */ -public final class ListBucketsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBucketsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListBucketsRequest) ListBucketsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBucketsRequest.newBuilder() to construct. private ListBucketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBucketsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,32 +27,28 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsRequest.class, - com.google.logging.v2.ListBucketsRequest.Builder.class); + com.google.logging.v2.ListBucketsRequest.class, com.google.logging.v2.ListBucketsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * buckets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -96,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -118,18 +92,17 @@ public java.lang.String getParent() {
    * buckets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -138,12 +111,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -152,7 +122,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -161,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -178,15 +146,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,8 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -206,7 +173,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -215,7 +181,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -253,7 +219,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,16 +230,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListBucketsRequest)) { return super.equals(obj); } com.google.logging.v2.ListBucketsRequest other = (com.google.logging.v2.ListBucketsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,136 +265,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListBucketsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListBucketsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListBucketsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `ListBuckets`.
    * 
* * Protobuf type {@code google.logging.v2.ListBucketsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListBucketsRequest) com.google.logging.v2.ListBucketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsRequest.class, - com.google.logging.v2.ListBucketsRequest.Builder.class); + com.google.logging.v2.ListBucketsRequest.class, com.google.logging.v2.ListBucketsRequest.Builder.class); } // Construct using com.google.logging.v2.ListBucketsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override @@ -457,11 +423,8 @@ public com.google.logging.v2.ListBucketsRequest build() { @java.lang.Override public com.google.logging.v2.ListBucketsRequest buildPartial() { - com.google.logging.v2.ListBucketsRequest result = - new com.google.logging.v2.ListBucketsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListBucketsRequest result = new com.google.logging.v2.ListBucketsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,39 +446,38 @@ private void buildPartial0(com.google.logging.v2.ListBucketsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListBucketsRequest) { - return mergeFrom((com.google.logging.v2.ListBucketsRequest) other); + return mergeFrom((com.google.logging.v2.ListBucketsRequest)other); } else { super.mergeFrom(other); return this; @@ -563,31 +525,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,13 +555,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -617,16 +572,14 @@ public Builder mergeFrom(
      * buckets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,8 +588,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -650,17 +601,16 @@ public java.lang.String getParent() {
      * buckets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -668,8 +618,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -683,25 +631,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * buckets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -715,10 +657,7 @@ public Builder setParent(java.lang.String value) {
      * buckets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -728,8 +667,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -743,17 +680,13 @@ public Builder clearParent() {
      * buckets.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -763,8 +696,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -773,13 +704,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -788,8 +719,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -798,14 +727,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -813,8 +743,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -823,22 +751,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -847,7 +771,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -857,8 +780,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -867,14 +788,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -882,10 +801,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -893,7 +810,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -901,8 +817,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -910,7 +824,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -922,8 +835,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -931,7 +842,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -940,9 +850,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListBucketsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListBucketsRequest) private static final com.google.logging.v2.ListBucketsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListBucketsRequest(); } @@ -966,27 +876,27 @@ public static com.google.logging.v2.ListBucketsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1001,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java index be7cc957d..6300759ae 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListBucketsRequestOrBuilder - extends +public interface ListBucketsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListBucketsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -40,16 +22,11 @@ public interface ListBucketsRequestOrBuilder
    * buckets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -63,17 +40,13 @@ public interface ListBucketsRequestOrBuilder
    * buckets.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -82,13 +55,10 @@ public interface ListBucketsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -97,14 +67,12 @@ public interface ListBucketsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -112,7 +80,6 @@ public interface ListBucketsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java index ba7d4328f..10da23607 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The response from ListBuckets.
  * 
* * Protobuf type {@code google.logging.v2.ListBucketsResponse} */ -public final class ListBucketsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBucketsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListBucketsResponse) ListBucketsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBucketsResponse.newBuilder() to construct. private ListBucketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBucketsResponse() { buckets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsResponse.class, - com.google.logging.v2.ListBucketsResponse.Builder.class); + com.google.logging.v2.ListBucketsResponse.class, com.google.logging.v2.ListBucketsResponse.Builder.class); } public static final int BUCKETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List buckets_; /** - * - * *
    * A list of buckets.
    * 
@@ -82,8 +60,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
    * A list of buckets.
    * 
@@ -91,13 +67,11 @@ public java.util.List getBucketsList() { * repeated .google.logging.v2.LogBucket buckets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBucketsOrBuilderList() { return buckets_; } /** - * - * *
    * A list of buckets.
    * 
@@ -109,8 +83,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
    * A list of buckets.
    * 
@@ -122,8 +94,6 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
    * A list of buckets.
    * 
@@ -131,17 +101,15 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { * repeated .google.logging.v2.LogBucket buckets = 1; */ @java.lang.Override - public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( + int index) { return buckets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -149,7 +117,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < buckets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, buckets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, buckets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListBucketsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListBucketsResponse other = - (com.google.logging.v2.ListBucketsResponse) obj; + com.google.logging.v2.ListBucketsResponse other = (com.google.logging.v2.ListBucketsResponse) obj; - if (!getBucketsList().equals(other.getBucketsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBucketsList() + .equals(other.getBucketsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListBucketsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListBucketsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListBucketsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response from ListBuckets.
    * 
* * Protobuf type {@code google.logging.v2.ListBucketsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListBucketsResponse) com.google.logging.v2.ListBucketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsResponse.class, - com.google.logging.v2.ListBucketsResponse.Builder.class); + com.google.logging.v2.ListBucketsResponse.class, com.google.logging.v2.ListBucketsResponse.Builder.class); } // Construct using com.google.logging.v2.ListBucketsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override @@ -432,12 +397,9 @@ public com.google.logging.v2.ListBucketsResponse build() { @java.lang.Override public com.google.logging.v2.ListBucketsResponse buildPartial() { - com.google.logging.v2.ListBucketsResponse result = - new com.google.logging.v2.ListBucketsResponse(this); + com.google.logging.v2.ListBucketsResponse result = new com.google.logging.v2.ListBucketsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListBucketsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListBucketsResponse) { - return mergeFrom((com.google.logging.v2.ListBucketsResponse) other); + return mergeFrom((com.google.logging.v2.ListBucketsResponse)other); } else { super.mergeFrom(other); return this; @@ -524,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListBucketsResponse other) { bucketsBuilder_ = null; buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000001); - bucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBucketsFieldBuilder() - : null; + bucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBucketsFieldBuilder() : null; } else { bucketsBuilder_.addAllMessages(other.buckets_); } @@ -564,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogBucket m = - input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); - if (bucketsBuilder_ == null) { - ensureBucketsIsMutable(); - buckets_.add(m); - } else { - bucketsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogBucket m = + input.readMessage( + com.google.logging.v2.LogBucket.parser(), + extensionRegistry); + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(m); + } else { + bucketsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List buckets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> - bucketsBuilder_; + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketsBuilder_; /** - * - * *
      * A list of buckets.
      * 
@@ -634,8 +586,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -650,8 +600,6 @@ public int getBucketsCount() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -666,15 +614,14 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { } } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder setBuckets(int index, com.google.logging.v2.LogBucket value) { + public Builder setBuckets( + int index, com.google.logging.v2.LogBucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,15 +635,14 @@ public Builder setBuckets(int index, com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder setBuckets(int index, com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBuckets( + int index, com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.set(index, builderForValue.build()); @@ -707,8 +653,6 @@ public Builder setBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -729,15 +673,14 @@ public Builder addBuckets(com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets(int index, com.google.logging.v2.LogBucket value) { + public Builder addBuckets( + int index, com.google.logging.v2.LogBucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,15 +694,14 @@ public Builder addBuckets(int index, com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets(com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder addBuckets( + com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(builderForValue.build()); @@ -770,15 +712,14 @@ public Builder addBuckets(com.google.logging.v2.LogBucket.Builder builderForValu return this; } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets(int index, com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder addBuckets( + int index, com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(index, builderForValue.build()); @@ -789,8 +730,6 @@ public Builder addBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -801,7 +740,8 @@ public Builder addAllBuckets( java.lang.Iterable values) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buckets_); onChanged(); } else { bucketsBuilder_.addAllMessages(values); @@ -809,8 +749,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -828,8 +766,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -847,44 +783,39 @@ public Builder removeBuckets(int index) { return this; } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucket.Builder getBucketsBuilder(int index) { + public com.google.logging.v2.LogBucket.Builder getBucketsBuilder( + int index) { return getBucketsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( + int index) { if (bucketsBuilder_ == null) { - return buckets_.get(index); - } else { + return buckets_.get(index); } else { return bucketsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public java.util.List - getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { if (bucketsBuilder_ != null) { return bucketsBuilder_.getMessageOrBuilderList(); } else { @@ -892,8 +823,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
      * A list of buckets.
      * 
@@ -901,47 +830,42 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { * repeated .google.logging.v2.LogBucket buckets = 1; */ public com.google.logging.v2.LogBucket.Builder addBucketsBuilder() { - return getBucketsFieldBuilder() - .addBuilder(com.google.logging.v2.LogBucket.getDefaultInstance()); + return getBucketsFieldBuilder().addBuilder( + com.google.logging.v2.LogBucket.getDefaultInstance()); } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucket.Builder addBucketsBuilder(int index) { - return getBucketsFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogBucket.getDefaultInstance()); + public com.google.logging.v2.LogBucket.Builder addBucketsBuilder( + int index) { + return getBucketsFieldBuilder().addBuilder( + index, com.google.logging.v2.LogBucket.getDefaultInstance()); } /** - * - * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public java.util.List getBucketsBuilderList() { + public java.util.List + getBucketsBuilderList() { return getBucketsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> getBucketsFieldBuilder() { if (bucketsBuilder_ == null) { - bucketsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder>( - buckets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( + buckets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); buckets_ = null; } return bucketsBuilder_; @@ -949,8 +873,6 @@ public java.util.List getBucketsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -958,13 +880,13 @@ public java.util.List getBucketsBuilder
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -982,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -997,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1006,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1029,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1039,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1048,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListBucketsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListBucketsResponse) private static final com.google.logging.v2.ListBucketsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListBucketsResponse(); } @@ -1088,27 +998,27 @@ public static com.google.logging.v2.ListBucketsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java index 484b42a82..f865d305e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListBucketsResponseOrBuilder - extends +public interface ListBucketsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListBucketsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - java.util.List getBucketsList(); + java.util.List + getBucketsList(); /** - * - * *
    * A list of buckets.
    * 
@@ -45,8 +26,6 @@ public interface ListBucketsResponseOrBuilder */ com.google.logging.v2.LogBucket getBuckets(int index); /** - * - * *
    * A list of buckets.
    * 
@@ -55,29 +34,25 @@ public interface ListBucketsResponseOrBuilder */ int getBucketsCount(); /** - * - * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - java.util.List getBucketsOrBuilderList(); + java.util.List + getBucketsOrBuilderList(); /** - * - * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index); + com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( + int index); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -85,13 +60,10 @@ public interface ListBucketsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -99,8 +71,8 @@ public interface ListBucketsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java index 84aeb7014..f92dbd018 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `ListExclusions`.
  * 
* * Protobuf type {@code google.logging.v2.ListExclusionsRequest} */ -public final class ListExclusionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListExclusionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListExclusionsRequest) ListExclusionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListExclusionsRequest.newBuilder() to construct. private ListExclusionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListExclusionsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,32 +27,28 @@ private ListExclusionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExclusionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsRequest.class, - com.google.logging.v2.ListExclusionsRequest.Builder.class); + com.google.logging.v2.ListExclusionsRequest.class, com.google.logging.v2.ListExclusionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -110,18 +84,17 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,12 +103,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -144,7 +114,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -153,15 +122,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -170,15 +138,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -189,8 +158,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -207,7 +173,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +184,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -245,7 +211,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,17 +222,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListExclusionsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListExclusionsRequest other = - (com.google.logging.v2.ListExclusionsRequest) obj; + com.google.logging.v2.ListExclusionsRequest other = (com.google.logging.v2.ListExclusionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,136 +257,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListExclusionsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListExclusionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListExclusionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `ListExclusions`.
    * 
* * Protobuf type {@code google.logging.v2.ListExclusionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListExclusionsRequest) com.google.logging.v2.ListExclusionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsRequest.class, - com.google.logging.v2.ListExclusionsRequest.Builder.class); + com.google.logging.v2.ListExclusionsRequest.class, com.google.logging.v2.ListExclusionsRequest.Builder.class); } // Construct using com.google.logging.v2.ListExclusionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override @@ -450,11 +415,8 @@ public com.google.logging.v2.ListExclusionsRequest build() { @java.lang.Override public com.google.logging.v2.ListExclusionsRequest buildPartial() { - com.google.logging.v2.ListExclusionsRequest result = - new com.google.logging.v2.ListExclusionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListExclusionsRequest result = new com.google.logging.v2.ListExclusionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -476,39 +438,38 @@ private void buildPartial0(com.google.logging.v2.ListExclusionsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListExclusionsRequest) { - return mergeFrom((com.google.logging.v2.ListExclusionsRequest) other); + return mergeFrom((com.google.logging.v2.ListExclusionsRequest)other); } else { super.mergeFrom(other); return this; @@ -556,31 +517,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -590,13 +547,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -606,16 +560,14 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -624,8 +576,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -635,17 +585,16 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -653,8 +602,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -664,25 +611,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -692,10 +633,7 @@ public Builder setParent(java.lang.String value) {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -705,8 +643,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -716,17 +652,13 @@ public Builder clearParent() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -736,8 +668,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -746,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -761,8 +691,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -771,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -786,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -796,22 +723,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -820,7 +743,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -830,8 +752,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -840,14 +760,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -855,10 +773,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -866,7 +782,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -874,8 +789,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -883,7 +796,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -895,8 +807,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -904,7 +814,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -913,9 +822,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListExclusionsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListExclusionsRequest) private static final com.google.logging.v2.ListExclusionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListExclusionsRequest(); } @@ -939,27 +848,27 @@ public static com.google.logging.v2.ListExclusionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExclusionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExclusionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java index 0ee5c0923..cd488a573 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListExclusionsRequestOrBuilder - extends +public interface ListExclusionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListExclusionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -36,16 +18,11 @@ public interface ListExclusionsRequestOrBuilder
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -55,17 +32,13 @@ public interface ListExclusionsRequestOrBuilder
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -74,13 +47,10 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -89,14 +59,12 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -104,7 +72,6 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java index 2121021c0..5bbbd3a20 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from `ListExclusions`.
  * 
* * Protobuf type {@code google.logging.v2.ListExclusionsResponse} */ -public final class ListExclusionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListExclusionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListExclusionsResponse) ListExclusionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListExclusionsResponse.newBuilder() to construct. private ListExclusionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListExclusionsResponse() { exclusions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListExclusionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExclusionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsResponse.class, - com.google.logging.v2.ListExclusionsResponse.Builder.class); + com.google.logging.v2.ListExclusionsResponse.class, com.google.logging.v2.ListExclusionsResponse.Builder.class); } public static final int EXCLUSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List exclusions_; /** - * - * *
    * A list of exclusions.
    * 
@@ -82,8 +60,6 @@ public java.util.List getExclusionsList() { return exclusions_; } /** - * - * *
    * A list of exclusions.
    * 
@@ -91,13 +67,11 @@ public java.util.List getExclusionsList() { * repeated .google.logging.v2.LogExclusion exclusions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExclusionsOrBuilderList() { return exclusions_; } /** - * - * *
    * A list of exclusions.
    * 
@@ -109,8 +83,6 @@ public int getExclusionsCount() { return exclusions_.size(); } /** - * - * *
    * A list of exclusions.
    * 
@@ -122,8 +94,6 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** - * - * *
    * A list of exclusions.
    * 
@@ -131,17 +101,15 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * repeated .google.logging.v2.LogExclusion exclusions = 1; */ @java.lang.Override - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index) { return exclusions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -149,7 +117,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < exclusions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exclusions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, exclusions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListExclusionsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListExclusionsResponse other = - (com.google.logging.v2.ListExclusionsResponse) obj; + com.google.logging.v2.ListExclusionsResponse other = (com.google.logging.v2.ListExclusionsResponse) obj; - if (!getExclusionsList().equals(other.getExclusionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExclusionsList() + .equals(other.getExclusionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListExclusionsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListExclusionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListExclusionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from `ListExclusions`.
    * 
* * Protobuf type {@code google.logging.v2.ListExclusionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListExclusionsResponse) com.google.logging.v2.ListExclusionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsResponse.class, - com.google.logging.v2.ListExclusionsResponse.Builder.class); + com.google.logging.v2.ListExclusionsResponse.class, com.google.logging.v2.ListExclusionsResponse.Builder.class); } // Construct using com.google.logging.v2.ListExclusionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override @@ -432,12 +397,9 @@ public com.google.logging.v2.ListExclusionsResponse build() { @java.lang.Override public com.google.logging.v2.ListExclusionsResponse buildPartial() { - com.google.logging.v2.ListExclusionsResponse result = - new com.google.logging.v2.ListExclusionsResponse(this); + com.google.logging.v2.ListExclusionsResponse result = new com.google.logging.v2.ListExclusionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListExclusionsResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListExclusionsResponse) { - return mergeFrom((com.google.logging.v2.ListExclusionsResponse) other); + return mergeFrom((com.google.logging.v2.ListExclusionsResponse)other); } else { super.mergeFrom(other); return this; @@ -524,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListExclusionsResponse other) { exclusionsBuilder_ = null; exclusions_ = other.exclusions_; bitField0_ = (bitField0_ & ~0x00000001); - exclusionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExclusionsFieldBuilder() - : null; + exclusionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExclusionsFieldBuilder() : null; } else { exclusionsBuilder_.addAllMessages(other.exclusions_); } @@ -564,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogExclusion m = - input.readMessage( - com.google.logging.v2.LogExclusion.parser(), extensionRegistry); - if (exclusionsBuilder_ == null) { - ensureExclusionsIsMutable(); - exclusions_.add(m); - } else { - exclusionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogExclusion m = + input.readMessage( + com.google.logging.v2.LogExclusion.parser(), + extensionRegistry); + if (exclusionsBuilder_ == null) { + ensureExclusionsIsMutable(); + exclusions_.add(m); + } else { + exclusionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List exclusions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExclusionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exclusions_ = new java.util.ArrayList(exclusions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> - exclusionsBuilder_; + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionsBuilder_; /** - * - * *
      * A list of exclusions.
      * 
@@ -635,8 +586,6 @@ public java.util.List getExclusionsList() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -651,8 +600,6 @@ public int getExclusionsCount() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -667,15 +614,14 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value) { + public Builder setExclusions( + int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,8 +635,6 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -709,8 +653,6 @@ public Builder setExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -731,15 +673,14 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value) { + public Builder addExclusions( + int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,15 +694,14 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder addExclusions( + com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); exclusions_.add(builderForValue.build()); @@ -772,8 +712,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -792,8 +730,6 @@ public Builder addExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -804,7 +740,8 @@ public Builder addAllExclusions( java.lang.Iterable values) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exclusions_); onChanged(); } else { exclusionsBuilder_.addAllMessages(values); @@ -812,8 +749,6 @@ public Builder addAllExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -831,8 +766,6 @@ public Builder clearExclusions() { return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -850,44 +783,39 @@ public Builder removeExclusions(int index) { return this; } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index) { + public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder( + int index) { return getExclusionsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index) { if (exclusionsBuilder_ == null) { - return exclusions_.get(index); - } else { + return exclusions_.get(index); } else { return exclusionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public java.util.List - getExclusionsOrBuilderList() { + public java.util.List + getExclusionsOrBuilderList() { if (exclusionsBuilder_ != null) { return exclusionsBuilder_.getMessageOrBuilderList(); } else { @@ -895,8 +823,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
      * A list of exclusions.
      * 
@@ -904,47 +830,42 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * repeated .google.logging.v2.LogExclusion exclusions = 1; */ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { - return getExclusionsFieldBuilder() - .addBuilder(com.google.logging.v2.LogExclusion.getDefaultInstance()); + return getExclusionsFieldBuilder().addBuilder( + com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index) { - return getExclusionsFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogExclusion.getDefaultInstance()); + public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( + int index) { + return getExclusionsFieldBuilder().addBuilder( + index, com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** - * - * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public java.util.List getExclusionsBuilderList() { + public java.util.List + getExclusionsBuilderList() { return getExclusionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> getExclusionsFieldBuilder() { if (exclusionsBuilder_ == null) { - exclusionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder>( - exclusions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + exclusionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( + exclusions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); exclusions_ = null; } return exclusionsBuilder_; @@ -952,8 +873,6 @@ public java.util.List getExclusionsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -961,13 +880,13 @@ public java.util.List getExclusionsB
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -976,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -985,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1000,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1009,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1032,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1051,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1077,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListExclusionsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListExclusionsResponse) private static final com.google.logging.v2.ListExclusionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListExclusionsResponse(); } @@ -1091,27 +998,27 @@ public static com.google.logging.v2.ListExclusionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExclusionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExclusionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java index 5b1b26362..929cd32b6 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListExclusionsResponseOrBuilder - extends +public interface ListExclusionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListExclusionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - java.util.List getExclusionsList(); + java.util.List + getExclusionsList(); /** - * - * *
    * A list of exclusions.
    * 
@@ -45,8 +26,6 @@ public interface ListExclusionsResponseOrBuilder */ com.google.logging.v2.LogExclusion getExclusions(int index); /** - * - * *
    * A list of exclusions.
    * 
@@ -55,30 +34,25 @@ public interface ListExclusionsResponseOrBuilder */ int getExclusionsCount(); /** - * - * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - java.util.List + java.util.List getExclusionsOrBuilderList(); /** - * - * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index); + com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -86,13 +60,10 @@ public interface ListExclusionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -100,8 +71,8 @@ public interface ListExclusionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java index be8cdf044..9de4ac7ea 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to ListLinks.
  * 
* * Protobuf type {@code google.logging.v2.ListLinksRequest} */ -public final class ListLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksRequest) ListLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinksRequest.newBuilder() to construct. private ListLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinksRequest() { parent_ = ""; pageToken_ = ""; @@ -45,32 +27,28 @@ private ListLinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinksRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksRequest.class, - com.google.logging.v2.ListLinksRequest.Builder.class); + com.google.logging.v2.ListLinksRequest.class, com.google.logging.v2.ListLinksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -110,18 +84,17 @@ public java.lang.String getParent() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,12 +103,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -152,15 +121,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -168,15 +136,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -187,14 +156,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -203,7 +169,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -241,7 +207,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,16 +218,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLinksRequest)) { return super.equals(obj); } com.google.logging.v2.ListLinksRequest other = (com.google.logging.v2.ListLinksRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,136 +253,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLinksRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLinksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLinksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to ListLinks.
    * 
* * Protobuf type {@code google.logging.v2.ListLinksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksRequest) com.google.logging.v2.ListLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksRequest.class, - com.google.logging.v2.ListLinksRequest.Builder.class); + com.google.logging.v2.ListLinksRequest.class, com.google.logging.v2.ListLinksRequest.Builder.class); } // Construct using com.google.logging.v2.ListLinksRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override @@ -445,11 +411,8 @@ public com.google.logging.v2.ListLinksRequest build() { @java.lang.Override public com.google.logging.v2.ListLinksRequest buildPartial() { - com.google.logging.v2.ListLinksRequest result = - new com.google.logging.v2.ListLinksRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListLinksRequest result = new com.google.logging.v2.ListLinksRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -471,39 +434,38 @@ private void buildPartial0(com.google.logging.v2.ListLinksRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLinksRequest) { - return mergeFrom((com.google.logging.v2.ListLinksRequest) other); + return mergeFrom((com.google.logging.v2.ListLinksRequest)other); } else { super.mergeFrom(other); return this; @@ -551,31 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,13 +543,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -601,16 +556,14 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -619,8 +572,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -630,17 +581,16 @@ public java.lang.String getParent() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -648,8 +598,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -659,25 +607,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -687,10 +629,7 @@ public Builder setParent(java.lang.String value) {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -700,8 +639,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -711,17 +648,13 @@ public Builder clearParent() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -731,8 +664,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -740,13 +671,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -755,8 +686,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -764,14 +693,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -779,8 +709,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -788,22 +716,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -811,7 +735,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -821,8 +744,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -830,14 +751,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -845,16 +764,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -862,14 +778,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -881,14 +794,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -897,9 +807,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLinksRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksRequest) private static final com.google.logging.v2.ListLinksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksRequest(); } @@ -923,27 +833,27 @@ public static com.google.logging.v2.ListLinksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +868,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java index 8b95b4012..59b0b5cad 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLinksRequestOrBuilder - extends +public interface ListLinksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -36,16 +18,11 @@ public interface ListLinksRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -55,17 +32,13 @@ public interface ListLinksRequestOrBuilder
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -73,13 +46,10 @@ public interface ListLinksRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -87,20 +57,17 @@ public interface ListLinksRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java index bf8a1355f..e48d5caa9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The response from ListLinks.
  * 
* * Protobuf type {@code google.logging.v2.ListLinksResponse} */ -public final class ListLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinksResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksResponse) ListLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinksResponse.newBuilder() to construct. private ListLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinksResponse() { links_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListLinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinksResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksResponse.class, - com.google.logging.v2.ListLinksResponse.Builder.class); + com.google.logging.v2.ListLinksResponse.class, com.google.logging.v2.ListLinksResponse.Builder.class); } public static final int LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List links_; /** - * - * *
    * A list of links.
    * 
@@ -82,8 +60,6 @@ public java.util.List getLinksList() { return links_; } /** - * - * *
    * A list of links.
    * 
@@ -91,12 +67,11 @@ public java.util.List getLinksList() { * repeated .google.logging.v2.Link links = 1; */ @java.lang.Override - public java.util.List getLinksOrBuilderList() { + public java.util.List + getLinksOrBuilderList() { return links_; } /** - * - * *
    * A list of links.
    * 
@@ -108,8 +83,6 @@ public int getLinksCount() { return links_.size(); } /** - * - * *
    * A list of links.
    * 
@@ -121,8 +94,6 @@ public com.google.logging.v2.Link getLinks(int index) { return links_.get(index); } /** - * - * *
    * A list of links.
    * 
@@ -130,17 +101,15 @@ public com.google.logging.v2.Link getLinks(int index) { * repeated .google.logging.v2.Link links = 1; */ @java.lang.Override - public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( + int index) { return links_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -148,7 +117,6 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -173,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < links_.size(); i++) { output.writeMessage(1, links_.get(i)); } @@ -219,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < links_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, links_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, links_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,15 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLinksResponse)) { return super.equals(obj); } com.google.logging.v2.ListLinksResponse other = (com.google.logging.v2.ListLinksResponse) obj; - if (!getLinksList().equals(other.getLinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getLinksList() + .equals(other.getLinksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLinksResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLinksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response from ListLinks.
    * 
* * Protobuf type {@code google.logging.v2.ListLinksResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksResponse) com.google.logging.v2.ListLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksResponse.class, - com.google.logging.v2.ListLinksResponse.Builder.class); + com.google.logging.v2.ListLinksResponse.class, com.google.logging.v2.ListLinksResponse.Builder.class); } // Construct using com.google.logging.v2.ListLinksResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListLinksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override @@ -430,12 +397,9 @@ public com.google.logging.v2.ListLinksResponse build() { @java.lang.Override public com.google.logging.v2.ListLinksResponse buildPartial() { - com.google.logging.v2.ListLinksResponse result = - new com.google.logging.v2.ListLinksResponse(this); + com.google.logging.v2.ListLinksResponse result = new com.google.logging.v2.ListLinksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListLinksResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLinksResponse) { - return mergeFrom((com.google.logging.v2.ListLinksResponse) other); + return mergeFrom((com.google.logging.v2.ListLinksResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListLinksResponse other) { linksBuilder_ = null; links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000001); - linksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLinksFieldBuilder() - : null; + linksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLinksFieldBuilder() : null; } else { linksBuilder_.addAllMessages(other.links_); } @@ -562,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.Link m = - input.readMessage(com.google.logging.v2.Link.parser(), extensionRegistry); - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(m); - } else { - linksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.Link m = + input.readMessage( + com.google.logging.v2.Link.parser(), + extensionRegistry); + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(m); + } else { + linksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,27 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List links_ = java.util.Collections.emptyList(); - + private java.util.List links_ = + java.util.Collections.emptyList(); private void ensureLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { links_ = new java.util.ArrayList(links_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder> - linksBuilder_; + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> linksBuilder_; /** - * - * *
      * A list of links.
      * 
@@ -631,8 +586,6 @@ public java.util.List getLinksList() { } } /** - * - * *
      * A list of links.
      * 
@@ -647,8 +600,6 @@ public int getLinksCount() { } } /** - * - * *
      * A list of links.
      * 
@@ -663,15 +614,14 @@ public com.google.logging.v2.Link getLinks(int index) { } } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder setLinks(int index, com.google.logging.v2.Link value) { + public Builder setLinks( + int index, com.google.logging.v2.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -685,15 +635,14 @@ public Builder setLinks(int index, com.google.logging.v2.Link value) { return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder setLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { + public Builder setLinks( + int index, com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.set(index, builderForValue.build()); @@ -704,8 +653,6 @@ public Builder setLinks(int index, com.google.logging.v2.Link.Builder builderFor return this; } /** - * - * *
      * A list of links.
      * 
@@ -726,15 +673,14 @@ public Builder addLinks(com.google.logging.v2.Link value) { return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks(int index, com.google.logging.v2.Link value) { + public Builder addLinks( + int index, com.google.logging.v2.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -748,15 +694,14 @@ public Builder addLinks(int index, com.google.logging.v2.Link value) { return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks(com.google.logging.v2.Link.Builder builderForValue) { + public Builder addLinks( + com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(builderForValue.build()); @@ -767,15 +712,14 @@ public Builder addLinks(com.google.logging.v2.Link.Builder builderForValue) { return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { + public Builder addLinks( + int index, com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(index, builderForValue.build()); @@ -786,18 +730,18 @@ public Builder addLinks(int index, com.google.logging.v2.Link.Builder builderFor return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addAllLinks(java.lang.Iterable values) { + public Builder addAllLinks( + java.lang.Iterable values) { if (linksBuilder_ == null) { ensureLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, links_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, links_); onChanged(); } else { linksBuilder_.addAllMessages(values); @@ -805,8 +749,6 @@ public Builder addAllLinks(java.lang.Iterable * A list of links. *
@@ -824,8 +766,6 @@ public Builder clearLinks() { return this; } /** - * - * *
      * A list of links.
      * 
@@ -843,43 +783,39 @@ public Builder removeLinks(int index) { return this; } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.Link.Builder getLinksBuilder(int index) { + public com.google.logging.v2.Link.Builder getLinksBuilder( + int index) { return getLinksFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( + int index) { if (linksBuilder_ == null) { - return links_.get(index); - } else { + return links_.get(index); } else { return linksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public java.util.List getLinksOrBuilderList() { + public java.util.List + getLinksOrBuilderList() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilderList(); } else { @@ -887,8 +823,6 @@ public java.util.List getLinksOrB } } /** - * - * *
      * A list of links.
      * 
@@ -896,46 +830,42 @@ public java.util.List getLinksOrB * repeated .google.logging.v2.Link links = 1; */ public com.google.logging.v2.Link.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder(com.google.logging.v2.Link.getDefaultInstance()); + return getLinksFieldBuilder().addBuilder( + com.google.logging.v2.Link.getDefaultInstance()); } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.Link.Builder addLinksBuilder(int index) { - return getLinksFieldBuilder() - .addBuilder(index, com.google.logging.v2.Link.getDefaultInstance()); + public com.google.logging.v2.Link.Builder addLinksBuilder( + int index) { + return getLinksFieldBuilder().addBuilder( + index, com.google.logging.v2.Link.getDefaultInstance()); } /** - * - * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public java.util.List getLinksBuilderList() { + public java.util.List + getLinksBuilderList() { return getLinksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder> + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { - linksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, - com.google.logging.v2.Link.Builder, - com.google.logging.v2.LinkOrBuilder>( - links_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder>( + links_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); links_ = null; } return linksBuilder_; @@ -943,8 +873,6 @@ public java.util.List getLinksBuilderList() private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -952,13 +880,13 @@ public java.util.List getLinksBuilderList()
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -967,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -976,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1000,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1023,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1033,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1042,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1068,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLinksResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksResponse) private static final com.google.logging.v2.ListLinksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksResponse(); } @@ -1082,27 +998,27 @@ public static com.google.logging.v2.ListLinksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1117,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java index 9f44ad1e0..7aefc3856 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLinksResponseOrBuilder - extends +public interface ListLinksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - java.util.List getLinksList(); + java.util.List + getLinksList(); /** - * - * *
    * A list of links.
    * 
@@ -45,8 +26,6 @@ public interface ListLinksResponseOrBuilder */ com.google.logging.v2.Link getLinks(int index); /** - * - * *
    * A list of links.
    * 
@@ -55,29 +34,25 @@ public interface ListLinksResponseOrBuilder */ int getLinksCount(); /** - * - * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - java.util.List getLinksOrBuilderList(); + java.util.List + getLinksOrBuilderList(); /** - * - * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index); + com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -85,13 +60,10 @@ public interface ListLinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -99,8 +71,8 @@ public interface ListLinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java similarity index 77% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java index be85882ae..9985b92c2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java @@ -1,45 +1,28 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `ListLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesRequest} */ -public final class ListLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogEntriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogEntriesRequest) ListLogEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogEntriesRequest.newBuilder() to construct. private ListLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogEntriesRequest() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; orderBy_ = ""; pageToken_ = ""; @@ -47,33 +30,29 @@ private ListLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesRequest.class, - com.google.logging.v2.ListLogEntriesRequest.Builder.class); + com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class); } public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -94,18 +73,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { return resourceNames_; } /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -126,18 +101,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -158,10 +128,7 @@ public int getResourceNamesCount() {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -169,8 +136,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -191,24 +156,19 @@ public java.lang.String getResourceNames(int index) {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -218,7 +178,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -227,15 +186,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -245,15 +203,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -262,12 +221,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -278,7 +234,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -287,15 +242,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -306,15 +260,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -325,8 +280,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -335,7 +288,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -344,12 +296,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -358,7 +307,6 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -367,15 +315,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -384,15 +331,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -401,7 +349,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,7 +360,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -445,7 +393,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -466,19 +415,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.ListLogEntriesRequest other = - (com.google.logging.v2.ListLogEntriesRequest) obj; - - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.logging.v2.ListLogEntriesRequest other = (com.google.logging.v2.ListLogEntriesRequest) obj; + + if (!getResourceNamesList() + .equals(other.getResourceNamesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -507,141 +460,138 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `ListLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogEntriesRequest) com.google.logging.v2.ListLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesRequest.class, - com.google.logging.v2.ListLogEntriesRequest.Builder.class); + com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogEntriesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; orderBy_ = ""; pageSize_ = 0; @@ -650,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override @@ -671,11 +621,8 @@ public com.google.logging.v2.ListLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.ListLogEntriesRequest buildPartial() { - com.google.logging.v2.ListLogEntriesRequest result = - new com.google.logging.v2.ListLogEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListLogEntriesRequest result = new com.google.logging.v2.ListLogEntriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -704,39 +651,38 @@ private void buildPartial0(com.google.logging.v2.ListLogEntriesRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.ListLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.ListLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -799,44 +745,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -846,12 +786,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -859,8 +797,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -881,19 +817,15 @@ private void ensureResourceNamesIsMutable() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -914,18 +846,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -946,10 +873,7 @@ public int getResourceNamesCount() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -957,8 +881,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -979,19 +901,15 @@ public java.lang.String getResourceNames(int index) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1012,18 +930,14 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000001; @@ -1031,8 +945,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1053,17 +965,13 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000001; @@ -1071,8 +979,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1093,23 +999,20 @@ public Builder addResourceNames(java.lang.String value) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames(java.lang.Iterable values) { + public Builder addAllResourceNames( + java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1130,22 +1033,17 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1166,17 +1064,13 @@ public Builder clearResourceNames() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -1187,8 +1081,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1198,13 +1090,13 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1213,8 +1105,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1224,14 +1114,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1239,8 +1130,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1250,22 +1139,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1275,7 +1160,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1285,8 +1169,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1296,14 +1178,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1313,8 +1193,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1325,13 +1203,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1340,8 +1218,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1352,14 +1228,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1367,8 +1244,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1379,22 +1254,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1405,7 +1276,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1415,8 +1285,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1427,14 +1295,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1442,10 +1308,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1454,7 +1318,6 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1462,8 +1325,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1472,7 +1333,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1484,8 +1344,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1494,7 +1352,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1506,8 +1363,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1516,13 +1371,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1531,8 +1386,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1541,14 +1394,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1556,8 +1410,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1566,22 +1418,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1590,7 +1438,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1600,8 +1447,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1610,23 +1455,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1636,12 +1479,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogEntriesRequest) private static final com.google.logging.v2.ListLogEntriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogEntriesRequest(); } @@ -1650,27 +1493,27 @@ public static com.google.logging.v2.ListLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1685,4 +1528,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java index 5f32c8ccb..170772c67 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogEntriesRequestOrBuilder - extends +public interface ListLogEntriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -47,16 +29,12 @@ public interface ListLogEntriesRequestOrBuilder
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - java.util.List getResourceNamesList(); + java.util.List + getResourceNamesList(); /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -77,16 +55,11 @@ public interface ListLogEntriesRequestOrBuilder
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ int getResourceNamesCount(); /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -107,17 +80,12 @@ public interface ListLogEntriesRequestOrBuilder
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** - * - * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -138,18 +106,14 @@ public interface ListLogEntriesRequestOrBuilder
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString getResourceNamesBytes(int index); + com.google.protobuf.ByteString + getResourceNamesBytes(int index); /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -159,13 +123,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -175,14 +136,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -193,13 +152,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -210,14 +166,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -226,14 +180,11 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -242,13 +193,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -257,8 +205,8 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java index a19fd536b..46e8034f3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from `ListLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesResponse} */ -public final class ListLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogEntriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogEntriesResponse) ListLogEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogEntriesResponse.newBuilder() to construct. private ListLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogEntriesResponse() { entries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesResponse.class, - com.google.logging.v2.ListLogEntriesResponse.Builder.class); + com.google.logging.v2.ListLogEntriesResponse.class, com.google.logging.v2.ListLogEntriesResponse.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List entries_; /** - * - * *
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -84,8 +62,6 @@ public java.util.List getEntriesList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -95,13 +71,11 @@ public java.util.List getEntriesList() {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -115,8 +89,6 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -130,8 +102,6 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
     return entries_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -141,17 +111,15 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
+  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+      int index) {
     return entries_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -166,7 +134,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -175,15 +142,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -198,15 +164,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -244,7 +211,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,16 +225,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.ListLogEntriesResponse other = - (com.google.logging.v2.ListLogEntriesResponse) obj; + com.google.logging.v2.ListLogEntriesResponse other = (com.google.logging.v2.ListLogEntriesResponse) obj; - if (!getEntriesList().equals(other.getEntriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,136 +258,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from `ListLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogEntriesResponse) com.google.logging.v2.ListLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesResponse.class, - com.google.logging.v2.ListLogEntriesResponse.Builder.class); + com.google.logging.v2.ListLogEntriesResponse.class, com.google.logging.v2.ListLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogEntriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override @@ -456,12 +421,9 @@ public com.google.logging.v2.ListLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.ListLogEntriesResponse buildPartial() { - com.google.logging.v2.ListLogEntriesResponse result = - new com.google.logging.v2.ListLogEntriesResponse(this); + com.google.logging.v2.ListLogEntriesResponse result = new com.google.logging.v2.ListLogEntriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -489,39 +451,38 @@ private void buildPartial0(com.google.logging.v2.ListLogEntriesResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.ListLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.ListLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -548,10 +509,9 @@ public Builder mergeFrom(com.google.logging.v2.ListLogEntriesResponse other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntriesFieldBuilder() - : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -588,31 +548,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogEntry m = - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogEntry m = + input.readMessage( + com.google.logging.v2.LogEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -622,28 +581,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List entries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, - com.google.logging.v2.LogEntry.Builder, - com.google.logging.v2.LogEntryOrBuilder> - entriesBuilder_; + com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_; /** - * - * *
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -660,8 +612,6 @@ public java.util.List getEntriesList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -678,8 +628,6 @@ public int getEntriesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -696,8 +644,6 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -706,7 +652,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
+    public Builder setEntries(
+        int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -720,8 +667,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -730,7 +675,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder setEntries(
+        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.set(index, builderForValue.build());
@@ -741,8 +687,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -765,8 +709,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -775,7 +717,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
+    public Builder addEntries(
+        int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -789,8 +732,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -799,7 +740,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(
+        com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(builderForValue.build());
@@ -810,8 +752,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -820,7 +760,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(
+        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(index, builderForValue.build());
@@ -831,8 +772,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -845,7 +784,8 @@ public Builder addAllEntries(
         java.lang.Iterable values) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, entries_);
         onChanged();
       } else {
         entriesBuilder_.addAllMessages(values);
@@ -853,8 +793,6 @@ public Builder addAllEntries(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -874,8 +812,6 @@ public Builder clearEntries() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -895,8 +831,6 @@ public Builder removeEntries(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -905,12 +839,11 @@ public Builder removeEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
+    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
+        int index) {
       return getEntriesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -919,16 +852,14 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
+    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+        int index) {
       if (entriesBuilder_ == null) {
-        return entries_.get(index);
-      } else {
+        return entries_.get(index);  } else {
         return entriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -937,8 +868,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List
-        getEntriesOrBuilderList() {
+    public java.util.List 
+         getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -946,8 +877,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -957,12 +886,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
     public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
-      return getEntriesFieldBuilder()
-          .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance());
+      return getEntriesFieldBuilder().addBuilder(
+          com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -971,13 +898,12 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
-      return getEntriesFieldBuilder()
-          .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance());
+    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
+        int index) {
+      return getEntriesFieldBuilder().addBuilder(
+          index, com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -986,22 +912,20 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List getEntriesBuilderList() {
+    public java.util.List 
+         getEntriesBuilderList() {
       return getEntriesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.LogEntry,
-            com.google.logging.v2.LogEntry.Builder,
-            com.google.logging.v2.LogEntryOrBuilder>
+        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> 
         getEntriesFieldBuilder() {
       if (entriesBuilder_ == null) {
-        entriesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.logging.v2.LogEntry,
-                com.google.logging.v2.LogEntry.Builder,
-                com.google.logging.v2.LogEntryOrBuilder>(
-                entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>(
+                entries_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         entries_ = null;
       }
       return entriesBuilder_;
@@ -1009,8 +933,6 @@ public java.util.List getEntriesBuilderL
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1025,13 +947,13 @@ public java.util.List getEntriesBuilderL
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1040,8 +962,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1056,14 +976,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1071,8 +992,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1087,22 +1006,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1117,7 +1032,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1127,8 +1041,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1143,23 +1055,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1169,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogEntriesResponse) private static final com.google.logging.v2.ListLogEntriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogEntriesResponse(); } @@ -1183,27 +1093,27 @@ public static com.google.logging.v2.ListLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java index 73195bf6a..6c6cbc8f3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogEntriesResponseOrBuilder - extends +public interface ListLogEntriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogEntriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -35,10 +17,9 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List getEntriesList();
+  java.util.List 
+      getEntriesList();
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -49,8 +30,6 @@ public interface ListLogEntriesResponseOrBuilder
    */
   com.google.logging.v2.LogEntry getEntries(int index);
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -61,8 +40,6 @@ public interface ListLogEntriesResponseOrBuilder
    */
   int getEntriesCount();
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -71,10 +48,9 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List getEntriesOrBuilderList();
+  java.util.List 
+      getEntriesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -83,11 +59,10 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index);
+  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -102,13 +77,10 @@ public interface ListLogEntriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -123,8 +95,8 @@ public interface ListLogEntriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java index 4c940d15d..118ee0d01 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to ListLogMetrics.
  * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsRequest} */ -public final class ListLogMetricsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogMetricsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogMetricsRequest) ListLogMetricsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogMetricsRequest.newBuilder() to construct. private ListLogMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogMetricsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListLogMetricsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogMetricsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsRequest.class, - com.google.logging.v2.ListLogMetricsRequest.Builder.class); + com.google.logging.v2.ListLogMetricsRequest.class, com.google.logging.v2.ListLogMetricsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -147,15 +116,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -164,15 +132,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -183,8 +152,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -192,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -201,7 +167,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,7 +205,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,17 +216,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogMetricsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListLogMetricsRequest other = - (com.google.logging.v2.ListLogMetricsRequest) obj; + com.google.logging.v2.ListLogMetricsRequest other = (com.google.logging.v2.ListLogMetricsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,136 +251,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogMetricsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to ListLogMetrics.
    * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogMetricsRequest) com.google.logging.v2.ListLogMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsRequest.class, - com.google.logging.v2.ListLogMetricsRequest.Builder.class); + com.google.logging.v2.ListLogMetricsRequest.class, com.google.logging.v2.ListLogMetricsRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogMetricsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override @@ -444,11 +409,8 @@ public com.google.logging.v2.ListLogMetricsRequest build() { @java.lang.Override public com.google.logging.v2.ListLogMetricsRequest buildPartial() { - com.google.logging.v2.ListLogMetricsRequest result = - new com.google.logging.v2.ListLogMetricsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListLogMetricsRequest result = new com.google.logging.v2.ListLogMetricsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -470,39 +432,38 @@ private void buildPartial0(com.google.logging.v2.ListLogMetricsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogMetricsRequest) { - return mergeFrom((com.google.logging.v2.ListLogMetricsRequest) other); + return mergeFrom((com.google.logging.v2.ListLogMetricsRequest)other); } else { super.mergeFrom(other); return this; @@ -550,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,29 +541,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,25 +567,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -641,43 +590,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -687,25 +625,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -715,8 +647,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -725,13 +655,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -740,8 +670,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -750,14 +678,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -765,8 +694,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -775,22 +702,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -799,7 +722,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -809,8 +731,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -819,14 +739,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -834,10 +752,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -845,7 +761,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -853,8 +768,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -862,7 +775,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -874,8 +786,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -883,7 +793,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -892,9 +801,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -904,12 +813,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogMetricsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogMetricsRequest) private static final com.google.logging.v2.ListLogMetricsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogMetricsRequest(); } @@ -918,27 +827,27 @@ public static com.google.logging.v2.ListLogMetricsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,4 +862,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java index 5888e2f52..8af3bc09d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java @@ -1,65 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogMetricsRequestOrBuilder - extends +public interface ListLogMetricsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogMetricsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -68,13 +41,10 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -83,14 +53,12 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -98,7 +66,6 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java index 10259790f..19fdb5520 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from ListLogMetrics.
  * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsResponse} */ -public final class ListLogMetricsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogMetricsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogMetricsResponse) ListLogMetricsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogMetricsResponse.newBuilder() to construct. private ListLogMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogMetricsResponse() { metrics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListLogMetricsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogMetricsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsResponse.class, - com.google.logging.v2.ListLogMetricsResponse.Builder.class); + com.google.logging.v2.ListLogMetricsResponse.class, com.google.logging.v2.ListLogMetricsResponse.Builder.class); } public static final int METRICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List metrics_; /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -82,8 +60,6 @@ public java.util.List getMetricsList() { return metrics_; } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -91,13 +67,11 @@ public java.util.List getMetricsList() { * repeated .google.logging.v2.LogMetric metrics = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -109,8 +83,6 @@ public int getMetricsCount() { return metrics_.size(); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -122,8 +94,6 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -131,17 +101,15 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { * repeated .google.logging.v2.LogMetric metrics = 1; */ @java.lang.Override - public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { + public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( + int index) { return metrics_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -149,7 +117,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, metrics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogMetricsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListLogMetricsResponse other = - (com.google.logging.v2.ListLogMetricsResponse) obj; + com.google.logging.v2.ListLogMetricsResponse other = (com.google.logging.v2.ListLogMetricsResponse) obj; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getMetricsList() + .equals(other.getMetricsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogMetricsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from ListLogMetrics.
    * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogMetricsResponse) com.google.logging.v2.ListLogMetricsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsResponse.class, - com.google.logging.v2.ListLogMetricsResponse.Builder.class); + com.google.logging.v2.ListLogMetricsResponse.class, com.google.logging.v2.ListLogMetricsResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogMetricsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override @@ -432,12 +397,9 @@ public com.google.logging.v2.ListLogMetricsResponse build() { @java.lang.Override public com.google.logging.v2.ListLogMetricsResponse buildPartial() { - com.google.logging.v2.ListLogMetricsResponse result = - new com.google.logging.v2.ListLogMetricsResponse(this); + com.google.logging.v2.ListLogMetricsResponse result = new com.google.logging.v2.ListLogMetricsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListLogMetricsResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogMetricsResponse) { - return mergeFrom((com.google.logging.v2.ListLogMetricsResponse) other); + return mergeFrom((com.google.logging.v2.ListLogMetricsResponse)other); } else { super.mergeFrom(other); return this; @@ -524,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListLogMetricsResponse other) { metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } @@ -564,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogMetric m = - input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogMetric m = + input.readMessage( + com.google.logging.v2.LogMetric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List metrics_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> - metricsBuilder_; + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricsBuilder_; /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -634,8 +586,6 @@ public java.util.List getMetricsList() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -650,8 +600,6 @@ public int getMetricsCount() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -666,15 +614,14 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { } } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder setMetrics(int index, com.google.logging.v2.LogMetric value) { + public Builder setMetrics( + int index, com.google.logging.v2.LogMetric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,15 +635,14 @@ public Builder setMetrics(int index, com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder setMetrics(int index, com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetrics( + int index, com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); @@ -707,8 +653,6 @@ public Builder setMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -729,15 +673,14 @@ public Builder addMetrics(com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics(int index, com.google.logging.v2.LogMetric value) { + public Builder addMetrics( + int index, com.google.logging.v2.LogMetric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,15 +694,14 @@ public Builder addMetrics(int index, com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics(com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder addMetrics( + com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); @@ -770,15 +712,14 @@ public Builder addMetrics(com.google.logging.v2.LogMetric.Builder builderForValu return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics(int index, com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder addMetrics( + int index, com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); @@ -789,8 +730,6 @@ public Builder addMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -801,7 +740,8 @@ public Builder addAllMetrics( java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -809,8 +749,6 @@ public Builder addAllMetrics( return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -828,8 +766,6 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -847,44 +783,39 @@ public Builder removeMetrics(int index) { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetric.Builder getMetricsBuilder(int index) { + public com.google.logging.v2.LogMetric.Builder getMetricsBuilder( + int index) { return getMetricsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { + public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( + int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { + return metrics_.get(index); } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -892,8 +823,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -901,47 +830,42 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { * repeated .google.logging.v2.LogMetric metrics = 1; */ public com.google.logging.v2.LogMetric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.logging.v2.LogMetric.getDefaultInstance()); + return getMetricsFieldBuilder().addBuilder( + com.google.logging.v2.LogMetric.getDefaultInstance()); } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogMetric.getDefaultInstance()); + public com.google.logging.v2.LogMetric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder().addBuilder( + index, com.google.logging.v2.LogMetric.getDefaultInstance()); } /** - * - * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public java.util.List getMetricsBuilderList() { + public java.util.List + getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); metrics_ = null; } return metricsBuilder_; @@ -949,8 +873,6 @@ public java.util.List getMetricsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -958,13 +880,13 @@ public java.util.List getMetricsBuilder
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -982,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -997,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -1006,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -1029,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1039,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -1048,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogMetricsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogMetricsResponse) private static final com.google.logging.v2.ListLogMetricsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogMetricsResponse(); } @@ -1088,27 +998,27 @@ public static com.google.logging.v2.ListLogMetricsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogMetricsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java index 48e2bb159..265df919d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogMetricsResponseOrBuilder - extends +public interface ListLogMetricsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogMetricsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - java.util.List getMetricsList(); + java.util.List + getMetricsList(); /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -45,8 +26,6 @@ public interface ListLogMetricsResponseOrBuilder */ com.google.logging.v2.LogMetric getMetrics(int index); /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -55,29 +34,25 @@ public interface ListLogMetricsResponseOrBuilder */ int getMetricsCount(); /** - * - * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - java.util.List getMetricsOrBuilderList(); + java.util.List + getMetricsOrBuilderList(); /** - * - * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index); + com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( + int index); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -85,13 +60,10 @@ public interface ListLogMetricsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -99,8 +71,8 @@ public interface ListLogMetricsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java index 714300ba7..44505c4a3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to ListLogs.
  * 
* * Protobuf type {@code google.logging.v2.ListLogsRequest} */ -public final class ListLogsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogsRequest) ListLogsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogsRequest.newBuilder() to construct. private ListLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogsRequest() { parent_ = ""; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsRequest.class, - com.google.logging.v2.ListLogsRequest.Builder.class); + com.google.logging.v2.ListLogsRequest.class, com.google.logging.v2.ListLogsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource name to list logs for:
    *
@@ -81,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * *  `folders/[FOLDER_ID]`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,15 +69,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name to list logs for:
    *
@@ -111,18 +86,17 @@ public java.lang.String getParent() {
    * *  `folders/[FOLDER_ID]`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -131,13 +105,10 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -156,18 +127,14 @@ public com.google.protobuf.ByteString getParentBytes() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { return resourceNames_; } /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -186,18 +153,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -216,10 +178,7 @@ public int getResourceNamesCount() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -227,8 +186,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -247,22 +204,18 @@ public java.lang.String getResourceNames(int index) {
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -270,7 +223,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -279,12 +231,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -293,7 +242,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -302,15 +250,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -319,15 +266,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -336,7 +284,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -374,7 +322,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -395,17 +344,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogsRequest)) { return super.equals(obj); } com.google.logging.v2.ListLogsRequest other = (com.google.logging.v2.ListLogsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getResourceNamesList() + .equals(other.getResourceNamesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -432,150 +385,148 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.ListLogsRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.ListLogsRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLogsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to ListLogs.
    * 
* * Protobuf type {@code google.logging.v2.ListLogsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogsRequest) com.google.logging.v2.ListLogsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsRequest.class, - com.google.logging.v2.ListLogsRequest.Builder.class); + com.google.logging.v2.ListLogsRequest.class, com.google.logging.v2.ListLogsRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); pageSize_ = 0; pageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override @@ -594,11 +545,8 @@ public com.google.logging.v2.ListLogsRequest build() { @java.lang.Override public com.google.logging.v2.ListLogsRequest buildPartial() { - com.google.logging.v2.ListLogsRequest result = - new com.google.logging.v2.ListLogsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListLogsRequest result = new com.google.logging.v2.ListLogsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -624,39 +572,38 @@ private void buildPartial0(com.google.logging.v2.ListLogsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogsRequest) { - return mergeFrom((com.google.logging.v2.ListLogsRequest) other); + return mergeFrom((com.google.logging.v2.ListLogsRequest)other); } else { super.mergeFrom(other); return this; @@ -714,38 +661,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -755,13 +697,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -771,16 +710,14 @@ public Builder mergeFrom(
      * *  `folders/[FOLDER_ID]`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -789,8 +726,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -800,17 +735,16 @@ public java.lang.String getParent() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -818,8 +752,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -829,25 +761,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -857,10 +783,7 @@ public Builder setParent(java.lang.String value) {
      * *  `folders/[FOLDER_ID]`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -870,8 +793,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -881,17 +802,13 @@ public Builder clearParent() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -901,7 +818,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -909,8 +825,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -929,19 +843,15 @@ private void ensureResourceNamesIsMutable() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -960,18 +870,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -990,10 +895,7 @@ public int getResourceNamesCount() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -1001,8 +903,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1021,19 +921,15 @@ public java.lang.String getResourceNames(int index) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1052,18 +948,14 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000002; @@ -1071,8 +963,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1091,17 +981,13 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000002; @@ -1109,8 +995,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1129,23 +1013,20 @@ public Builder addResourceNames(java.lang.String value) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames(java.lang.Iterable values) { + public Builder addAllResourceNames( + java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1164,22 +1045,17 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1198,17 +1074,13 @@ public Builder clearResourceNames() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -1217,10 +1089,8 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1228,7 +1098,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1236,8 +1105,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1245,7 +1112,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1257,8 +1123,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1266,7 +1130,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1278,8 +1141,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1288,13 +1149,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1303,8 +1164,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1313,14 +1172,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1328,8 +1188,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1338,22 +1196,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1362,7 +1216,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1372,8 +1225,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1382,23 +1233,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1408,12 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogsRequest) private static final com.google.logging.v2.ListLogsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogsRequest(); } @@ -1422,27 +1271,27 @@ public static com.google.logging.v2.ListLogsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1457,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java index 89e13da72..b2ad70664 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogsRequestOrBuilder - extends +public interface ListLogsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name to list logs for:
    *
@@ -36,16 +18,11 @@ public interface ListLogsRequestOrBuilder
    * *  `folders/[FOLDER_ID]`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name to list logs for:
    *
@@ -55,17 +32,13 @@ public interface ListLogsRequestOrBuilder
    * *  `folders/[FOLDER_ID]`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -84,16 +57,12 @@ public interface ListLogsRequestOrBuilder
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return A list containing the resourceNames. */ - java.util.List getResourceNamesList(); + java.util.List + getResourceNamesList(); /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -112,16 +81,11 @@ public interface ListLogsRequestOrBuilder
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The count of resourceNames. */ int getResourceNamesCount(); /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -140,17 +104,12 @@ public interface ListLogsRequestOrBuilder
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -169,18 +128,14 @@ public interface ListLogsRequestOrBuilder
    * The resource name in the `parent` field is added to this list.
    * 
* - * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString getResourceNamesBytes(int index); + com.google.protobuf.ByteString + getResourceNamesBytes(int index); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -188,14 +143,11 @@ public interface ListLogsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -204,13 +156,10 @@ public interface ListLogsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -219,8 +168,8 @@ public interface ListLogsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java index 0fece570b..d63aaeb6c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java @@ -1,77 +1,56 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from ListLogs.
  * 
* * Protobuf type {@code google.logging.v2.ListLogsResponse} */ -public final class ListLogsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLogsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogsResponse) ListLogsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLogsResponse.newBuilder() to construct. private ListLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLogsResponse() { - logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + logNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsResponse.class, - com.google.logging.v2.ListLogsResponse.Builder.class); + com.google.logging.v2.ListLogsResponse.class, com.google.logging.v2.ListLogsResponse.Builder.class); } public static final int LOG_NAMES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -79,15 +58,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string log_names = 3; - * * @return A list containing the logNames. */ - public com.google.protobuf.ProtocolStringList getLogNamesList() { + public com.google.protobuf.ProtocolStringList + getLogNamesList() { return logNames_; } /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -95,15 +72,12 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() {
    * 
* * repeated string log_names = 3; - * * @return The count of logNames. */ public int getLogNamesCount() { return logNames_.size(); } /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -111,7 +85,6 @@ public int getLogNamesCount() {
    * 
* * repeated string log_names = 3; - * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -119,8 +92,6 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -128,21 +99,18 @@ public java.lang.String getLogNames(int index) {
    * 
* * repeated string log_names = 3; - * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - public com.google.protobuf.ByteString getLogNamesBytes(int index) { + public com.google.protobuf.ByteString + getLogNamesBytes(int index) { return logNames_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -150,7 +118,6 @@ public com.google.protobuf.ByteString getLogNamesBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +126,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -175,15 +141,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,7 +159,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -239,15 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogsResponse)) { return super.equals(obj); } com.google.logging.v2.ListLogsResponse other = (com.google.logging.v2.ListLogsResponse) obj; - if (!getLogNamesList().equals(other.getLogNamesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getLogNamesList() + .equals(other.getLogNamesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,149 +239,146 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListLogsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLogsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListLogsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from ListLogs.
    * 
* * Protobuf type {@code google.logging.v2.ListLogsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogsResponse) com.google.logging.v2.ListLogsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsResponse.class, - com.google.logging.v2.ListLogsResponse.Builder.class); + com.google.logging.v2.ListLogsResponse.class, com.google.logging.v2.ListLogsResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + logNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListLogsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override @@ -431,11 +397,8 @@ public com.google.logging.v2.ListLogsResponse build() { @java.lang.Override public com.google.logging.v2.ListLogsResponse buildPartial() { - com.google.logging.v2.ListLogsResponse result = - new com.google.logging.v2.ListLogsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListLogsResponse result = new com.google.logging.v2.ListLogsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,39 +418,38 @@ private void buildPartial0(com.google.logging.v2.ListLogsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListLogsResponse) { - return mergeFrom((com.google.logging.v2.ListLogsResponse) other); + return mergeFrom((com.google.logging.v2.ListLogsResponse)other); } else { super.mergeFrom(other); return this; @@ -537,26 +499,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLogNamesIsMutable(); - logNames_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLogNamesIsMutable(); + logNames_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -566,12 +525,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLogNamesIsMutable() { if (!logNames_.isModifiable()) { logNames_ = new com.google.protobuf.LazyStringArrayList(logNames_); @@ -579,8 +536,6 @@ private void ensureLogNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -588,16 +543,14 @@ private void ensureLogNamesIsMutable() {
      * 
* * repeated string log_names = 3; - * * @return A list containing the logNames. */ - public com.google.protobuf.ProtocolStringList getLogNamesList() { + public com.google.protobuf.ProtocolStringList + getLogNamesList() { logNames_.makeImmutable(); return logNames_; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -605,15 +558,12 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() {
      * 
* * repeated string log_names = 3; - * * @return The count of logNames. */ public int getLogNamesCount() { return logNames_.size(); } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -621,7 +571,6 @@ public int getLogNamesCount() {
      * 
* * repeated string log_names = 3; - * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -629,8 +578,6 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -638,16 +585,14 @@ public java.lang.String getLogNames(int index) {
      * 
* * repeated string log_names = 3; - * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - public com.google.protobuf.ByteString getLogNamesBytes(int index) { + public com.google.protobuf.ByteString + getLogNamesBytes(int index) { return logNames_.getByteString(index); } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -655,15 +600,13 @@ public com.google.protobuf.ByteString getLogNamesBytes(int index) {
      * 
* * repeated string log_names = 3; - * * @param index The index to set the value at. * @param value The logNames to set. * @return This builder for chaining. */ - public Builder setLogNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLogNamesIsMutable(); logNames_.set(index, value); bitField0_ |= 0x00000001; @@ -671,8 +614,6 @@ public Builder setLogNames(int index, java.lang.String value) { return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -680,14 +621,12 @@ public Builder setLogNames(int index, java.lang.String value) {
      * 
* * repeated string log_names = 3; - * * @param value The logNames to add. * @return This builder for chaining. */ - public Builder addLogNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLogNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLogNamesIsMutable(); logNames_.add(value); bitField0_ |= 0x00000001; @@ -695,8 +634,6 @@ public Builder addLogNames(java.lang.String value) { return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -704,20 +641,19 @@ public Builder addLogNames(java.lang.String value) {
      * 
* * repeated string log_names = 3; - * * @param values The logNames to add. * @return This builder for chaining. */ - public Builder addAllLogNames(java.lang.Iterable values) { + public Builder addAllLogNames( + java.lang.Iterable values) { ensureLogNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -725,19 +661,16 @@ public Builder addAllLogNames(java.lang.Iterable values) {
      * 
* * repeated string log_names = 3; - * * @return This builder for chaining. */ public Builder clearLogNames() { - logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + logNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -745,14 +678,12 @@ public Builder clearLogNames() {
      * 
* * repeated string log_names = 3; - * * @param value The bytes of the logNames to add. * @return This builder for chaining. */ - public Builder addLogNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLogNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLogNamesIsMutable(); logNames_.add(value); @@ -763,8 +694,6 @@ public Builder addLogNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -772,13 +701,13 @@ public Builder addLogNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -787,8 +716,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -796,14 +723,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -811,8 +739,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -820,22 +746,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -843,7 +765,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -853,8 +774,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -862,23 +781,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogsResponse) private static final com.google.logging.v2.ListLogsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogsResponse(); } @@ -902,27 +819,27 @@ public static com.google.logging.v2.ListLogsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java index 1f7fd4bc1..a8c4d6010 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogsResponseOrBuilder - extends +public interface ListLogsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -34,13 +16,11 @@ public interface ListLogsResponseOrBuilder
    * 
* * repeated string log_names = 3; - * * @return A list containing the logNames. */ - java.util.List getLogNamesList(); + java.util.List + getLogNamesList(); /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -48,13 +28,10 @@ public interface ListLogsResponseOrBuilder
    * 
* * repeated string log_names = 3; - * * @return The count of logNames. */ int getLogNamesCount(); /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -62,14 +39,11 @@ public interface ListLogsResponseOrBuilder
    * 
* * repeated string log_names = 3; - * * @param index The index of the element to return. * @return The logNames at the given index. */ java.lang.String getLogNames(int index); /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -77,15 +51,13 @@ public interface ListLogsResponseOrBuilder
    * 
* * repeated string log_names = 3; - * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - com.google.protobuf.ByteString getLogNamesBytes(int index); + com.google.protobuf.ByteString + getLogNamesBytes(int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -93,13 +65,10 @@ public interface ListLogsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -107,8 +76,8 @@ public interface ListLogsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java index e31d7f165..13475eec8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java @@ -1,75 +1,52 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to ListMonitoredResourceDescriptors
  * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsRequest} */ -public final class ListMonitoredResourceDescriptorsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMonitoredResourceDescriptorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListMonitoredResourceDescriptorsRequest) ListMonitoredResourceDescriptorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsRequest.newBuilder() to construct. - private ListMonitoredResourceDescriptorsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMonitoredResourceDescriptorsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -77,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -86,12 +62,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -100,7 +73,6 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -109,15 +81,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -126,15 +97,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -143,7 +115,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +126,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -172,7 +144,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -185,16 +158,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other = - (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) obj; + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other = (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) obj; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,136 +190,131 @@ public int hashCode() { } public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest prototype) { + public static Builder newBuilder(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to ListMonitoredResourceDescriptors
    * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListMonitoredResourceDescriptorsRequest) com.google.logging.v2.ListMonitoredResourceDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); } // Construct using com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -356,14 +325,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest - getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance(); } @@ -378,17 +346,13 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest build() { @java.lang.Override public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest buildPartial() { - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = - new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result) { + private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.pageSize_ = pageSize_; @@ -402,39 +366,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) { - return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) other); + return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest)other); } else { super.mergeFrom(other); return this; @@ -442,9 +405,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other) { - if (other - == com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) - return this; + if (other == com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -479,25 +440,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -507,13 +465,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -521,7 +476,6 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -529,8 +483,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -538,7 +490,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -550,8 +501,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -559,7 +508,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -571,8 +519,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -581,13 +527,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -596,8 +542,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -606,14 +550,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -621,8 +566,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -631,22 +574,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -655,7 +594,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -665,8 +603,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -675,23 +611,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,13 +635,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListMonitoredResourceDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListMonitoredResourceDescriptorsRequest) - private static final com.google.logging.v2.ListMonitoredResourceDescriptorsRequest - DEFAULT_INSTANCE; - + private static final com.google.logging.v2.ListMonitoredResourceDescriptorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(); } @@ -716,27 +649,27 @@ public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,4 +684,6 @@ public com.google.protobuf.Parser getPa public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java index bbab7960f..c60d591d3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListMonitoredResourceDescriptorsRequestOrBuilder - extends +public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListMonitoredResourceDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -34,14 +16,11 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -50,13 +29,10 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -65,8 +41,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java index 3af656834..46a7bdd2e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java @@ -1,45 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from ListMonitoredResourceDescriptors.
  * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsResponse} */ -public final class ListMonitoredResourceDescriptorsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMonitoredResourceDescriptorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListMonitoredResourceDescriptorsResponse) ListMonitoredResourceDescriptorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsResponse.newBuilder() to construct. - private ListMonitoredResourceDescriptorsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMonitoredResourceDescriptorsResponse() { resourceDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,32 +27,28 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); } public static final int RESOURCE_DESCRIPTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List resourceDescriptors_; /** - * - * *
    * A list of resource descriptors.
    * 
@@ -84,8 +60,6 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -93,13 +67,11 @@ public java.util.List getResourceDes * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourceDescriptorsOrBuilderList() { return resourceDescriptors_; } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -111,8 +83,6 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -124,8 +94,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -139,12 +107,9 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -152,7 +117,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -161,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -177,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -223,8 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resourceDescriptors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resourceDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other = - (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) obj; + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other = (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) obj; - if (!getResourceDescriptorsList().equals(other.getResourceDescriptorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getResourceDescriptorsList() + .equals(other.getResourceDescriptorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +235,131 @@ public int hashCode() { } public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse prototype) { + public static Builder newBuilder(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from ListMonitoredResourceDescriptors.
    * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListMonitoredResourceDescriptorsResponse) com.google.logging.v2.ListMonitoredResourceDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); } // Construct using com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +376,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { return com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance(); } @@ -438,18 +397,14 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse build() { @java.lang.Override public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse buildPartial() { - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result = - new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(this); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result = new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartialRepeatedFields(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -461,8 +416,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -473,39 +427,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) { - return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) other); + return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsResponse)other); } else { super.mergeFrom(other); return this; @@ -513,9 +466,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other) { - if (other - == com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) - return this; + if (other == com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) return this; if (resourceDescriptorsBuilder_ == null) { if (!other.resourceDescriptors_.isEmpty()) { if (resourceDescriptors_.isEmpty()) { @@ -534,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsR resourceDescriptorsBuilder_ = null; resourceDescriptors_ = other.resourceDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - resourceDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceDescriptorsFieldBuilder() - : null; + resourceDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceDescriptorsFieldBuilder() : null; } else { resourceDescriptorsBuilder_.addAllMessages(other.resourceDescriptors_); } @@ -574,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.MonitoredResourceDescriptor m = - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry); - if (resourceDescriptorsBuilder_ == null) { - ensureResourceDescriptorsIsMutable(); - resourceDescriptors_.add(m); - } else { - resourceDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.MonitoredResourceDescriptor m = + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), + extensionRegistry); + if (resourceDescriptorsBuilder_ == null) { + ensureResourceDescriptorsIsMutable(); + resourceDescriptors_.add(m); + } else { + resourceDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,30 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List resourceDescriptors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourceDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = - new java.util.ArrayList( - resourceDescriptors_); + resourceDescriptors_ = new java.util.ArrayList(resourceDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, - com.google.api.MonitoredResourceDescriptor.Builder, - com.google.api.MonitoredResourceDescriptorOrBuilder> - resourceDescriptorsBuilder_; + com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> resourceDescriptorsBuilder_; /** - * - * *
      * A list of resource descriptors.
      * 
@@ -647,8 +586,6 @@ public java.util.List getResourceDes } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -663,8 +600,6 @@ public int getResourceDescriptorsCount() { } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -679,8 +614,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -702,8 +635,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -722,8 +653,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -744,8 +673,6 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -767,8 +694,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -787,8 +712,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -807,8 +730,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -819,7 +740,8 @@ public Builder addAllResourceDescriptors( java.lang.Iterable values) { if (resourceDescriptorsBuilder_ == null) { ensureResourceDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceDescriptors_); onChanged(); } else { resourceDescriptorsBuilder_.addAllMessages(values); @@ -827,8 +749,6 @@ public Builder addAllResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -846,8 +766,6 @@ public Builder clearResourceDescriptors() { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -865,8 +783,6 @@ public Builder removeResourceDescriptors(int index) { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -878,8 +794,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -889,22 +803,19 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder( int index) { if (resourceDescriptorsBuilder_ == null) { - return resourceDescriptors_.get(index); - } else { + return resourceDescriptors_.get(index); } else { return resourceDescriptorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of resource descriptors.
      * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - public java.util.List - getResourceDescriptorsOrBuilderList() { + public java.util.List + getResourceDescriptorsOrBuilderList() { if (resourceDescriptorsBuilder_ != null) { return resourceDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -912,8 +823,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -921,12 +830,10 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder() { - return getResourceDescriptorsFieldBuilder() - .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); + return getResourceDescriptorsFieldBuilder().addBuilder( + com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -935,34 +842,26 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors */ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder( int index) { - return getResourceDescriptorsFieldBuilder() - .addBuilder(index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); + return getResourceDescriptorsFieldBuilder().addBuilder( + index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); } /** - * - * *
      * A list of resource descriptors.
      * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - public java.util.List - getResourceDescriptorsBuilderList() { + public java.util.List + getResourceDescriptorsBuilderList() { return getResourceDescriptorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, - com.google.api.MonitoredResourceDescriptor.Builder, - com.google.api.MonitoredResourceDescriptorOrBuilder> + com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> getResourceDescriptorsFieldBuilder() { if (resourceDescriptorsBuilder_ == null) { - resourceDescriptorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, - com.google.api.MonitoredResourceDescriptor.Builder, - com.google.api.MonitoredResourceDescriptorOrBuilder>( + resourceDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>( resourceDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -974,8 +873,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -983,13 +880,13 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -998,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1007,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1022,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1031,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1054,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1064,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1073,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1099,43 +984,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListMonitoredResourceDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListMonitoredResourceDescriptorsResponse) - private static final com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - DEFAULT_INSTANCE; - + private static final com.google.logging.v2.ListMonitoredResourceDescriptorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - getDefaultInstance() { + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,8 +1030,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse - getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java index b9a29828a..4c80ba325 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListMonitoredResourceDescriptorsResponseOrBuilder - extends +public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListMonitoredResourceDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - java.util.List getResourceDescriptorsList(); + java.util.List + getResourceDescriptorsList(); /** - * - * *
    * A list of resource descriptors.
    * 
@@ -45,8 +26,6 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder */ com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index); /** - * - * *
    * A list of resource descriptors.
    * 
@@ -55,30 +34,25 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder */ int getResourceDescriptorsCount(); /** - * - * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - java.util.List + java.util.List getResourceDescriptorsOrBuilderList(); /** - * - * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(int index); + com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -86,13 +60,10 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -100,8 +71,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java index 03735620e..68d143c96 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `ListSinks`.
  * 
* * Protobuf type {@code google.logging.v2.ListSinksRequest} */ -public final class ListSinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSinksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListSinksRequest) ListSinksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSinksRequest.newBuilder() to construct. private ListSinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSinksRequest() { parent_ = ""; pageToken_ = ""; @@ -45,32 +27,28 @@ private ListSinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSinksRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksRequest.class, - com.google.logging.v2.ListSinksRequest.Builder.class); + com.google.logging.v2.ListSinksRequest.class, com.google.logging.v2.ListSinksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -110,18 +84,17 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,12 +103,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -144,7 +114,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -153,15 +122,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -170,15 +138,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -189,8 +158,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -207,7 +173,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +184,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -245,7 +211,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,16 +222,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListSinksRequest)) { return super.equals(obj); } com.google.logging.v2.ListSinksRequest other = (com.google.logging.v2.ListSinksRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,136 +257,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListSinksRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListSinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListSinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListSinksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListSinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListSinksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `ListSinks`.
    * 
* * Protobuf type {@code google.logging.v2.ListSinksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListSinksRequest) com.google.logging.v2.ListSinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksRequest.class, - com.google.logging.v2.ListSinksRequest.Builder.class); + com.google.logging.v2.ListSinksRequest.class, com.google.logging.v2.ListSinksRequest.Builder.class); } // Construct using com.google.logging.v2.ListSinksRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override @@ -449,11 +415,8 @@ public com.google.logging.v2.ListSinksRequest build() { @java.lang.Override public com.google.logging.v2.ListSinksRequest buildPartial() { - com.google.logging.v2.ListSinksRequest result = - new com.google.logging.v2.ListSinksRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListSinksRequest result = new com.google.logging.v2.ListSinksRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -475,39 +438,38 @@ private void buildPartial0(com.google.logging.v2.ListSinksRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListSinksRequest) { - return mergeFrom((com.google.logging.v2.ListSinksRequest) other); + return mergeFrom((com.google.logging.v2.ListSinksRequest)other); } else { super.mergeFrom(other); return this; @@ -555,31 +517,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,13 +547,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -605,16 +560,14 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -623,8 +576,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -634,17 +585,16 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -652,8 +602,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -663,25 +611,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -691,10 +633,7 @@ public Builder setParent(java.lang.String value) {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -704,8 +643,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -715,17 +652,13 @@ public Builder clearParent() {
      *     "folders/[FOLDER_ID]"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -735,8 +668,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -745,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -760,8 +691,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -770,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -785,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -795,22 +723,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -819,7 +743,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,8 +752,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -839,14 +760,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -854,10 +773,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -865,7 +782,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -873,8 +789,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -882,7 +796,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -894,8 +807,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -903,7 +814,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -912,9 +822,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -924,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListSinksRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListSinksRequest) private static final com.google.logging.v2.ListSinksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListSinksRequest(); } @@ -938,27 +848,27 @@ public static com.google.logging.v2.ListSinksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java index b27c1f3ea..14944f244 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListSinksRequestOrBuilder - extends +public interface ListSinksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListSinksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -36,16 +18,11 @@ public interface ListSinksRequestOrBuilder
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -55,17 +32,13 @@ public interface ListSinksRequestOrBuilder
    *     "folders/[FOLDER_ID]"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -74,13 +47,10 @@ public interface ListSinksRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -89,14 +59,12 @@ public interface ListSinksRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -104,7 +72,6 @@ public interface ListSinksRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java index 2defc92e5..7066d6f60 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from `ListSinks`.
  * 
* * Protobuf type {@code google.logging.v2.ListSinksResponse} */ -public final class ListSinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSinksResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListSinksResponse) ListSinksResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSinksResponse.newBuilder() to construct. private ListSinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSinksResponse() { sinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListSinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSinksResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksResponse.class, - com.google.logging.v2.ListSinksResponse.Builder.class); + com.google.logging.v2.ListSinksResponse.class, com.google.logging.v2.ListSinksResponse.Builder.class); } public static final int SINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List sinks_; /** - * - * *
    * A list of sinks.
    * 
@@ -82,8 +60,6 @@ public java.util.List getSinksList() { return sinks_; } /** - * - * *
    * A list of sinks.
    * 
@@ -91,12 +67,11 @@ public java.util.List getSinksList() { * repeated .google.logging.v2.LogSink sinks = 1; */ @java.lang.Override - public java.util.List getSinksOrBuilderList() { + public java.util.List + getSinksOrBuilderList() { return sinks_; } /** - * - * *
    * A list of sinks.
    * 
@@ -108,8 +83,6 @@ public int getSinksCount() { return sinks_.size(); } /** - * - * *
    * A list of sinks.
    * 
@@ -121,8 +94,6 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** - * - * *
    * A list of sinks.
    * 
@@ -130,17 +101,15 @@ public com.google.logging.v2.LogSink getSinks(int index) { * repeated .google.logging.v2.LogSink sinks = 1; */ @java.lang.Override - public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { + public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( + int index) { return sinks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -148,7 +117,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -173,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sinks_.size(); i++) { output.writeMessage(1, sinks_.get(i)); } @@ -219,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sinks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,15 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListSinksResponse)) { return super.equals(obj); } com.google.logging.v2.ListSinksResponse other = (com.google.logging.v2.ListSinksResponse) obj; - if (!getSinksList().equals(other.getSinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSinksList() + .equals(other.getSinksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListSinksResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListSinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListSinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListSinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListSinksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from `ListSinks`.
    * 
* * Protobuf type {@code google.logging.v2.ListSinksResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListSinksResponse) com.google.logging.v2.ListSinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksResponse.class, - com.google.logging.v2.ListSinksResponse.Builder.class); + com.google.logging.v2.ListSinksResponse.class, com.google.logging.v2.ListSinksResponse.Builder.class); } // Construct using com.google.logging.v2.ListSinksResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListSinksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override @@ -430,12 +397,9 @@ public com.google.logging.v2.ListSinksResponse build() { @java.lang.Override public com.google.logging.v2.ListSinksResponse buildPartial() { - com.google.logging.v2.ListSinksResponse result = - new com.google.logging.v2.ListSinksResponse(this); + com.google.logging.v2.ListSinksResponse result = new com.google.logging.v2.ListSinksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListSinksResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListSinksResponse) { - return mergeFrom((com.google.logging.v2.ListSinksResponse) other); + return mergeFrom((com.google.logging.v2.ListSinksResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListSinksResponse other) { sinksBuilder_ = null; sinks_ = other.sinks_; bitField0_ = (bitField0_ & ~0x00000001); - sinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSinksFieldBuilder() - : null; + sinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSinksFieldBuilder() : null; } else { sinksBuilder_.addAllMessages(other.sinks_); } @@ -562,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogSink m = - input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(m); - } else { - sinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogSink m = + input.readMessage( + com.google.logging.v2.LogSink.parser(), + extensionRegistry); + if (sinksBuilder_ == null) { + ensureSinksIsMutable(); + sinks_.add(m); + } else { + sinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List sinks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sinks_ = new java.util.ArrayList(sinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, - com.google.logging.v2.LogSink.Builder, - com.google.logging.v2.LogSinkOrBuilder> - sinksBuilder_; + com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinksBuilder_; /** - * - * *
      * A list of sinks.
      * 
@@ -632,8 +586,6 @@ public java.util.List getSinksList() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -648,8 +600,6 @@ public int getSinksCount() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -664,15 +614,14 @@ public com.google.logging.v2.LogSink getSinks(int index) { } } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder setSinks(int index, com.google.logging.v2.LogSink value) { + public Builder setSinks( + int index, com.google.logging.v2.LogSink value) { if (sinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,15 +635,14 @@ public Builder setSinks(int index, com.google.logging.v2.LogSink value) { return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder setSinks(int index, com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder setSinks( + int index, com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.set(index, builderForValue.build()); @@ -705,8 +653,6 @@ public Builder setSinks(int index, com.google.logging.v2.LogSink.Builder builder return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -727,15 +673,14 @@ public Builder addSinks(com.google.logging.v2.LogSink value) { return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks(int index, com.google.logging.v2.LogSink value) { + public Builder addSinks( + int index, com.google.logging.v2.LogSink value) { if (sinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -749,15 +694,14 @@ public Builder addSinks(int index, com.google.logging.v2.LogSink value) { return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks(com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder addSinks( + com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.add(builderForValue.build()); @@ -768,15 +712,14 @@ public Builder addSinks(com.google.logging.v2.LogSink.Builder builderForValue) { return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks(int index, com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder addSinks( + int index, com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.add(index, builderForValue.build()); @@ -787,18 +730,18 @@ public Builder addSinks(int index, com.google.logging.v2.LogSink.Builder builder return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addAllSinks(java.lang.Iterable values) { + public Builder addAllSinks( + java.lang.Iterable values) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sinks_); onChanged(); } else { sinksBuilder_.addAllMessages(values); @@ -806,8 +749,6 @@ public Builder addAllSinks(java.lang.Iterable * A list of sinks. *
@@ -825,8 +766,6 @@ public Builder clearSinks() { return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -844,44 +783,39 @@ public Builder removeSinks(int index) { return this; } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSink.Builder getSinksBuilder(int index) { + public com.google.logging.v2.LogSink.Builder getSinksBuilder( + int index) { return getSinksFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { + public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( + int index) { if (sinksBuilder_ == null) { - return sinks_.get(index); - } else { + return sinks_.get(index); } else { return sinksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public java.util.List - getSinksOrBuilderList() { + public java.util.List + getSinksOrBuilderList() { if (sinksBuilder_ != null) { return sinksBuilder_.getMessageOrBuilderList(); } else { @@ -889,8 +823,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { } } /** - * - * *
      * A list of sinks.
      * 
@@ -898,46 +830,42 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { * repeated .google.logging.v2.LogSink sinks = 1; */ public com.google.logging.v2.LogSink.Builder addSinksBuilder() { - return getSinksFieldBuilder().addBuilder(com.google.logging.v2.LogSink.getDefaultInstance()); + return getSinksFieldBuilder().addBuilder( + com.google.logging.v2.LogSink.getDefaultInstance()); } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSink.Builder addSinksBuilder(int index) { - return getSinksFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogSink.getDefaultInstance()); + public com.google.logging.v2.LogSink.Builder addSinksBuilder( + int index) { + return getSinksFieldBuilder().addBuilder( + index, com.google.logging.v2.LogSink.getDefaultInstance()); } /** - * - * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public java.util.List getSinksBuilderList() { + public java.util.List + getSinksBuilderList() { return getSinksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, - com.google.logging.v2.LogSink.Builder, - com.google.logging.v2.LogSinkOrBuilder> + com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> getSinksFieldBuilder() { if (sinksBuilder_ == null) { - sinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, - com.google.logging.v2.LogSink.Builder, - com.google.logging.v2.LogSinkOrBuilder>( - sinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>( + sinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sinks_ = null; } return sinksBuilder_; @@ -945,8 +873,6 @@ public java.util.List getSinksBuilderList private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -954,13 +880,13 @@ public java.util.List getSinksBuilderList
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -969,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -978,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -993,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1002,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1025,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1035,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1044,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1070,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListSinksResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListSinksResponse) private static final com.google.logging.v2.ListSinksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListSinksResponse(); } @@ -1084,27 +998,27 @@ public static com.google.logging.v2.ListSinksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java index 6a4fef5fb..501db2018 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListSinksResponseOrBuilder - extends +public interface ListSinksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListSinksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - java.util.List getSinksList(); + java.util.List + getSinksList(); /** - * - * *
    * A list of sinks.
    * 
@@ -45,8 +26,6 @@ public interface ListSinksResponseOrBuilder */ com.google.logging.v2.LogSink getSinks(int index); /** - * - * *
    * A list of sinks.
    * 
@@ -55,29 +34,25 @@ public interface ListSinksResponseOrBuilder */ int getSinksCount(); /** - * - * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - java.util.List getSinksOrBuilderList(); + java.util.List + getSinksOrBuilderList(); /** - * - * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index); + com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( + int index); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -85,13 +60,10 @@ public interface ListSinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -99,8 +71,8 @@ public interface ListSinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java index c4d99338b..66fd4ccf4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `ListViews`.
  * 
* * Protobuf type {@code google.logging.v2.ListViewsRequest} */ -public final class ListViewsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListViewsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListViewsRequest) ListViewsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListViewsRequest.newBuilder() to construct. private ListViewsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListViewsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,32 +27,28 @@ private ListViewsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListViewsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsRequest.class, - com.google.logging.v2.ListViewsRequest.Builder.class); + com.google.logging.v2.ListViewsRequest.class, com.google.logging.v2.ListViewsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -103,15 +79,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -134,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -143,15 +116,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -160,15 +132,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -179,8 +152,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    *
@@ -189,7 +160,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -198,7 +168,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,7 +206,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,16 +217,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListViewsRequest)) { return super.equals(obj); } com.google.logging.v2.ListViewsRequest other = (com.google.logging.v2.ListViewsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,136 +252,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListViewsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListViewsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListViewsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListViewsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListViewsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListViewsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListViewsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `ListViews`.
    * 
* * Protobuf type {@code google.logging.v2.ListViewsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListViewsRequest) com.google.logging.v2.ListViewsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsRequest.class, - com.google.logging.v2.ListViewsRequest.Builder.class); + com.google.logging.v2.ListViewsRequest.class, com.google.logging.v2.ListViewsRequest.Builder.class); } // Construct using com.google.logging.v2.ListViewsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override @@ -440,11 +410,8 @@ public com.google.logging.v2.ListViewsRequest build() { @java.lang.Override public com.google.logging.v2.ListViewsRequest buildPartial() { - com.google.logging.v2.ListViewsRequest result = - new com.google.logging.v2.ListViewsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.ListViewsRequest result = new com.google.logging.v2.ListViewsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -466,39 +433,38 @@ private void buildPartial0(com.google.logging.v2.ListViewsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListViewsRequest) { - return mergeFrom((com.google.logging.v2.ListViewsRequest) other); + return mergeFrom((com.google.logging.v2.ListViewsRequest)other); } else { super.mergeFrom(other); return this; @@ -546,31 +512,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,13 +542,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -594,13 +553,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -609,8 +568,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -618,14 +575,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -633,8 +591,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -642,22 +598,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -665,7 +617,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -675,8 +626,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -684,14 +633,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -701,8 +648,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -711,13 +656,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -726,8 +671,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -736,14 +679,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -751,8 +695,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -761,22 +703,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -785,7 +723,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -795,8 +732,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -805,14 +740,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -820,10 +753,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -832,7 +763,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -840,8 +770,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -850,7 +778,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -862,8 +789,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -872,7 +797,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -881,9 +805,9 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListViewsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListViewsRequest) private static final com.google.logging.v2.ListViewsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListViewsRequest(); } @@ -907,27 +831,27 @@ public static com.google.logging.v2.ListViewsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListViewsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListViewsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -942,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java index badf949e7..822ada548 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListViewsRequestOrBuilder - extends +public interface ListViewsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListViewsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -34,13 +16,10 @@ public interface ListViewsRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -48,14 +27,12 @@ public interface ListViewsRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -64,13 +41,10 @@ public interface ListViewsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -79,14 +53,12 @@ public interface ListViewsRequestOrBuilder
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    *
@@ -95,7 +67,6 @@ public interface ListViewsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java index 863ec3a13..78cfa104a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The response from ListViews.
  * 
* * Protobuf type {@code google.logging.v2.ListViewsResponse} */ -public final class ListViewsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListViewsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListViewsResponse) ListViewsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListViewsResponse.newBuilder() to construct. private ListViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListViewsResponse() { views_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListViewsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListViewsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsResponse.class, - com.google.logging.v2.ListViewsResponse.Builder.class); + com.google.logging.v2.ListViewsResponse.class, com.google.logging.v2.ListViewsResponse.Builder.class); } public static final int VIEWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List views_; /** - * - * *
    * A list of views.
    * 
@@ -82,8 +60,6 @@ public java.util.List getViewsList() { return views_; } /** - * - * *
    * A list of views.
    * 
@@ -91,12 +67,11 @@ public java.util.List getViewsList() { * repeated .google.logging.v2.LogView views = 1; */ @java.lang.Override - public java.util.List getViewsOrBuilderList() { + public java.util.List + getViewsOrBuilderList() { return views_; } /** - * - * *
    * A list of views.
    * 
@@ -108,8 +83,6 @@ public int getViewsCount() { return views_.size(); } /** - * - * *
    * A list of views.
    * 
@@ -121,8 +94,6 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** - * - * *
    * A list of views.
    * 
@@ -130,17 +101,15 @@ public com.google.logging.v2.LogView getViews(int index) { * repeated .google.logging.v2.LogView views = 1; */ @java.lang.Override - public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { + public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( + int index) { return views_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -148,7 +117,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -173,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < views_.size(); i++) { output.writeMessage(1, views_.get(i)); } @@ -219,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < views_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, views_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, views_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,15 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListViewsResponse)) { return super.equals(obj); } com.google.logging.v2.ListViewsResponse other = (com.google.logging.v2.ListViewsResponse) obj; - if (!getViewsList().equals(other.getViewsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getViewsList() + .equals(other.getViewsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListViewsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.ListViewsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.ListViewsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListViewsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListViewsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response from ListViews.
    * 
* * Protobuf type {@code google.logging.v2.ListViewsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListViewsResponse) com.google.logging.v2.ListViewsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsResponse.class, - com.google.logging.v2.ListViewsResponse.Builder.class); + com.google.logging.v2.ListViewsResponse.class, com.google.logging.v2.ListViewsResponse.Builder.class); } // Construct using com.google.logging.v2.ListViewsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_ListViewsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override @@ -430,12 +397,9 @@ public com.google.logging.v2.ListViewsResponse build() { @java.lang.Override public com.google.logging.v2.ListViewsResponse buildPartial() { - com.google.logging.v2.ListViewsResponse result = - new com.google.logging.v2.ListViewsResponse(this); + com.google.logging.v2.ListViewsResponse result = new com.google.logging.v2.ListViewsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +427,38 @@ private void buildPartial0(com.google.logging.v2.ListViewsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.ListViewsResponse) { - return mergeFrom((com.google.logging.v2.ListViewsResponse) other); + return mergeFrom((com.google.logging.v2.ListViewsResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +485,9 @@ public Builder mergeFrom(com.google.logging.v2.ListViewsResponse other) { viewsBuilder_ = null; views_ = other.views_; bitField0_ = (bitField0_ & ~0x00000001); - viewsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getViewsFieldBuilder() - : null; + viewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getViewsFieldBuilder() : null; } else { viewsBuilder_.addAllMessages(other.views_); } @@ -562,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogView m = - input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); - if (viewsBuilder_ == null) { - ensureViewsIsMutable(); - views_.add(m); - } else { - viewsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogView m = + input.readMessage( + com.google.logging.v2.LogView.parser(), + extensionRegistry); + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(m); + } else { + viewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List views_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureViewsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { views_ = new java.util.ArrayList(views_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> - viewsBuilder_; + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewsBuilder_; /** - * - * *
      * A list of views.
      * 
@@ -632,8 +586,6 @@ public java.util.List getViewsList() { } } /** - * - * *
      * A list of views.
      * 
@@ -648,8 +600,6 @@ public int getViewsCount() { } } /** - * - * *
      * A list of views.
      * 
@@ -664,15 +614,14 @@ public com.google.logging.v2.LogView getViews(int index) { } } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder setViews(int index, com.google.logging.v2.LogView value) { + public Builder setViews( + int index, com.google.logging.v2.LogView value) { if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,15 +635,14 @@ public Builder setViews(int index, com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder setViews(int index, com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setViews( + int index, com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.set(index, builderForValue.build()); @@ -705,8 +653,6 @@ public Builder setViews(int index, com.google.logging.v2.LogView.Builder builder return this; } /** - * - * *
      * A list of views.
      * 
@@ -727,15 +673,14 @@ public Builder addViews(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews(int index, com.google.logging.v2.LogView value) { + public Builder addViews( + int index, com.google.logging.v2.LogView value) { if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -749,15 +694,14 @@ public Builder addViews(int index, com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews(com.google.logging.v2.LogView.Builder builderForValue) { + public Builder addViews( + com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(builderForValue.build()); @@ -768,15 +712,14 @@ public Builder addViews(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews(int index, com.google.logging.v2.LogView.Builder builderForValue) { + public Builder addViews( + int index, com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(index, builderForValue.build()); @@ -787,18 +730,18 @@ public Builder addViews(int index, com.google.logging.v2.LogView.Builder builder return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addAllViews(java.lang.Iterable values) { + public Builder addAllViews( + java.lang.Iterable values) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, views_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, views_); onChanged(); } else { viewsBuilder_.addAllMessages(values); @@ -806,8 +749,6 @@ public Builder addAllViews(java.lang.Iterable * A list of views. *
@@ -825,8 +766,6 @@ public Builder clearViews() { return this; } /** - * - * *
      * A list of views.
      * 
@@ -844,44 +783,39 @@ public Builder removeViews(int index) { return this; } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogView.Builder getViewsBuilder(int index) { + public com.google.logging.v2.LogView.Builder getViewsBuilder( + int index) { return getViewsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { + public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( + int index) { if (viewsBuilder_ == null) { - return views_.get(index); - } else { + return views_.get(index); } else { return viewsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public java.util.List - getViewsOrBuilderList() { + public java.util.List + getViewsOrBuilderList() { if (viewsBuilder_ != null) { return viewsBuilder_.getMessageOrBuilderList(); } else { @@ -889,8 +823,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { } } /** - * - * *
      * A list of views.
      * 
@@ -898,46 +830,42 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { * repeated .google.logging.v2.LogView views = 1; */ public com.google.logging.v2.LogView.Builder addViewsBuilder() { - return getViewsFieldBuilder().addBuilder(com.google.logging.v2.LogView.getDefaultInstance()); + return getViewsFieldBuilder().addBuilder( + com.google.logging.v2.LogView.getDefaultInstance()); } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogView.Builder addViewsBuilder(int index) { - return getViewsFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogView.getDefaultInstance()); + public com.google.logging.v2.LogView.Builder addViewsBuilder( + int index) { + return getViewsFieldBuilder().addBuilder( + index, com.google.logging.v2.LogView.getDefaultInstance()); } /** - * - * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public java.util.List getViewsBuilderList() { + public java.util.List + getViewsBuilderList() { return getViewsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> getViewsFieldBuilder() { if (viewsBuilder_ == null) { - viewsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder>( - views_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + viewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( + views_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); views_ = null; } return viewsBuilder_; @@ -945,8 +873,6 @@ public java.util.List getViewsBuilderList private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -954,13 +880,13 @@ public java.util.List getViewsBuilderList
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -969,8 +895,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -978,14 +902,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -993,8 +918,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1002,22 +925,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1025,7 +944,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1035,8 +953,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1044,23 +960,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1070,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.ListViewsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListViewsResponse) private static final com.google.logging.v2.ListViewsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.ListViewsResponse(); } @@ -1084,27 +998,27 @@ public static com.google.logging.v2.ListViewsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListViewsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListViewsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java index 0e1a3b141..79cb7ab64 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListViewsResponseOrBuilder - extends +public interface ListViewsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListViewsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - java.util.List getViewsList(); + java.util.List + getViewsList(); /** - * - * *
    * A list of views.
    * 
@@ -45,8 +26,6 @@ public interface ListViewsResponseOrBuilder */ com.google.logging.v2.LogView getViews(int index); /** - * - * *
    * A list of views.
    * 
@@ -55,29 +34,25 @@ public interface ListViewsResponseOrBuilder */ int getViewsCount(); /** - * - * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - java.util.List getViewsOrBuilderList(); + java.util.List + getViewsOrBuilderList(); /** - * - * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index); + com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( + int index); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -85,13 +60,10 @@ public interface ListViewsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -99,8 +71,8 @@ public interface ListViewsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java index eb1710866..5fadf6985 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java @@ -1,78 +1,57 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Cloud Logging specific location metadata.
  * 
* * Protobuf type {@code google.logging.v2.LocationMetadata} */ -public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.LocationMetadata) LocationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationMetadata() {} + private LocationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LocationMetadata.class, - com.google.logging.v2.LocationMetadata.Builder.class); + com.google.logging.v2.LocationMetadata.class, com.google.logging.v2.LocationMetadata.Builder.class); } public static final int LOG_ANALYTICS_ENABLED_FIELD_NUMBER = 1; private boolean logAnalyticsEnabled_ = false; /** - * - * *
    * Indicates whether or not Log Analytics features are supported in the given
    * location.
    * 
* * bool log_analytics_enabled = 1; - * * @return The logAnalyticsEnabled. */ @java.lang.Override @@ -81,7 +60,6 @@ public boolean getLogAnalyticsEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,7 +71,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (logAnalyticsEnabled_ != false) { output.writeBool(1, logAnalyticsEnabled_); } @@ -107,7 +86,8 @@ public int getSerializedSize() { size = 0; if (logAnalyticsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, logAnalyticsEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, logAnalyticsEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -117,14 +97,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LocationMetadata)) { return super.equals(obj); } com.google.logging.v2.LocationMetadata other = (com.google.logging.v2.LocationMetadata) obj; - if (getLogAnalyticsEnabled() != other.getLogAnalyticsEnabled()) return false; + if (getLogAnalyticsEnabled() + != other.getLogAnalyticsEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -137,142 +118,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_ANALYTICS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogAnalyticsEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLogAnalyticsEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.LocationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LocationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LocationMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud Logging specific location metadata.
    * 
* * Protobuf type {@code google.logging.v2.LocationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LocationMetadata) com.google.logging.v2.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LocationMetadata.class, - com.google.logging.v2.LocationMetadata.Builder.class); + com.google.logging.v2.LocationMetadata.class, com.google.logging.v2.LocationMetadata.Builder.class); } // Construct using com.google.logging.v2.LocationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -282,9 +260,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override @@ -303,11 +281,8 @@ public com.google.logging.v2.LocationMetadata build() { @java.lang.Override public com.google.logging.v2.LocationMetadata buildPartial() { - com.google.logging.v2.LocationMetadata result = - new com.google.logging.v2.LocationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.LocationMetadata result = new com.google.logging.v2.LocationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -323,39 +298,38 @@ private void buildPartial0(com.google.logging.v2.LocationMetadata result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LocationMetadata) { - return mergeFrom((com.google.logging.v2.LocationMetadata) other); + return mergeFrom((com.google.logging.v2.LocationMetadata)other); } else { super.mergeFrom(other); return this; @@ -393,19 +367,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - logAnalyticsEnabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + logAnalyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,20 +387,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean logAnalyticsEnabled_; + private boolean logAnalyticsEnabled_ ; /** - * - * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; - * * @return The logAnalyticsEnabled. */ @java.lang.Override @@ -436,15 +404,12 @@ public boolean getLogAnalyticsEnabled() { return logAnalyticsEnabled_; } /** - * - * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; - * * @param value The logAnalyticsEnabled to set. * @return This builder for chaining. */ @@ -456,15 +421,12 @@ public Builder setLogAnalyticsEnabled(boolean value) { return this; } /** - * - * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; - * * @return This builder for chaining. */ public Builder clearLogAnalyticsEnabled() { @@ -473,9 +435,9 @@ public Builder clearLogAnalyticsEnabled() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -485,12 +447,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.LocationMetadata) private static final com.google.logging.v2.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LocationMetadata(); } @@ -499,27 +461,27 @@ public static com.google.logging.v2.LocationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -534,4 +496,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java new file mode 100644 index 000000000..133c32435 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface LocationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Indicates whether or not Log Analytics features are supported in the given
+   * location.
+   * 
+ * + * bool log_analytics_enabled = 1; + * @return The logAnalyticsEnabled. + */ + boolean getLogAnalyticsEnabled(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java index 77fc411f6..2d74b4602 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java @@ -1,79 +1,59 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a repository in which log entries are stored.
  * 
* * Protobuf type {@code google.logging.v2.LogBucket} */ -public final class LogBucket extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LogBucket extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogBucket) LogBucketOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LogBucket.newBuilder() to construct. private LogBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogBucket() { name_ = ""; description_ = ""; lifecycleState_ = 0; - restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); indexConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogBucket(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -91,7 +71,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -100,15 +79,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -126,15 +104,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -143,18 +122,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Describes this bucket.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -163,29 +138,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Describes this bucket.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -196,16 +171,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -213,16 +184,12 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -230,15 +197,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -248,15 +212,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -264,15 +224,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -280,14 +236,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -297,8 +250,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int RETENTION_DAYS_FIELD_NUMBER = 11; private int retentionDays_ = 0; /** - * - * *
    * Logs will be retained by default for this amount of time, after which they
    * will automatically be deleted. The minimum retention period is 1 day. If
@@ -307,7 +258,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ @java.lang.Override @@ -318,8 +268,6 @@ public int getRetentionDays() { public static final int LOCKED_FIELD_NUMBER = 9; private boolean locked_ = false; /** - * - * *
    * Whether the bucket is locked.
    *
@@ -328,7 +276,6 @@ public int getRetentionDays() {
    * 
* * bool locked = 9; - * * @return The locked. */ @java.lang.Override @@ -339,47 +286,32 @@ public boolean getLocked() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; private int lifecycleState_ = 0; /** - * - * *
    * Output only. The bucket lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
    * Output only. The bucket lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ - @java.lang.Override - public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } public static final int ANALYTICS_ENABLED_FIELD_NUMBER = 14; private boolean analyticsEnabled_ = false; /** - * - * *
    * Whether log analytics is enabled for this bucket.
    *
@@ -387,7 +319,6 @@ public com.google.logging.v2.LifecycleState getLifecycleState() {
    * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ @java.lang.Override @@ -396,13 +327,10 @@ public boolean getAnalyticsEnabled() { } public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -414,15 +342,13 @@ public boolean getAnalyticsEnabled() {
    * 
* * repeated string restricted_fields = 15; - * * @return A list containing the restrictedFields. */ - public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { + public com.google.protobuf.ProtocolStringList + getRestrictedFieldsList() { return restrictedFields_; } /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -434,15 +360,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() {
    * 
* * repeated string restricted_fields = 15; - * * @return The count of restrictedFields. */ public int getRestrictedFieldsCount() { return restrictedFields_.size(); } /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -454,7 +377,6 @@ public int getRestrictedFieldsCount() {
    * 
* * repeated string restricted_fields = 15; - * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -462,8 +384,6 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -475,21 +395,18 @@ public java.lang.String getRestrictedFields(int index) {
    * 
* * repeated string restricted_fields = 15; - * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedFieldsBytes(int index) { return restrictedFields_.getByteString(index); } public static final int INDEX_CONFIGS_FIELD_NUMBER = 17; - @SuppressWarnings("serial") private java.util.List indexConfigs_; /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -501,8 +418,6 @@ public java.util.List getIndexConfigsList() { return indexConfigs_; } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -510,13 +425,11 @@ public java.util.List getIndexConfigsList() { * repeated .google.logging.v2.IndexConfig index_configs = 17; */ @java.lang.Override - public java.util.List + public java.util.List getIndexConfigsOrBuilderList() { return indexConfigs_; } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -528,8 +441,6 @@ public int getIndexConfigsCount() { return indexConfigs_.size(); } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -541,8 +452,6 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { return indexConfigs_.get(index); } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -550,15 +459,14 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { * repeated .google.logging.v2.IndexConfig index_configs = 17; */ @java.lang.Override - public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( + int index) { return indexConfigs_.get(index); } public static final int CMEK_SETTINGS_FIELD_NUMBER = 19; private com.google.logging.v2.CmekSettings cmekSettings_; /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -568,7 +476,6 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -576,8 +483,6 @@ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -587,18 +492,13 @@ public boolean hasCmekSettings() {
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return The cmekSettings. */ @java.lang.Override public com.google.logging.v2.CmekSettings getCmekSettings() { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -611,13 +511,10 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
    */
   @java.lang.Override
   public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
-    return cmekSettings_ == null
-        ? com.google.logging.v2.CmekSettings.getDefaultInstance()
-        : cmekSettings_;
+    return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -629,7 +526,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -648,8 +546,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (retentionDays_ != 0) {
       output.writeInt32(11, retentionDays_);
     }
-    if (lifecycleState_
-        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(12, lifecycleState_);
     }
     if (analyticsEnabled_ != false) {
@@ -680,23 +577,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getCreateTime());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getUpdateTime());
     }
     if (locked_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, locked_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(9, locked_);
     }
     if (retentionDays_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, retentionDays_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(11, retentionDays_);
     }
-    if (lifecycleState_
-        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, lifecycleState_);
+    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(12, lifecycleState_);
     }
     if (analyticsEnabled_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, analyticsEnabled_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(14, analyticsEnabled_);
     }
     {
       int dataSize = 0;
@@ -707,10 +609,12 @@ public int getSerializedSize() {
       size += 1 * getRestrictedFieldsList().size();
     }
     for (int i = 0; i < indexConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, indexConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(17, indexConfigs_.get(i));
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getCmekSettings());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -720,32 +624,42 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.LogBucket)) {
       return super.equals(obj);
     }
     com.google.logging.v2.LogBucket other = (com.google.logging.v2.LogBucket) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
-    if (getRetentionDays() != other.getRetentionDays()) return false;
-    if (getLocked() != other.getLocked()) return false;
+    if (getRetentionDays()
+        != other.getRetentionDays()) return false;
+    if (getLocked()
+        != other.getLocked()) return false;
     if (lifecycleState_ != other.lifecycleState_) return false;
-    if (getAnalyticsEnabled() != other.getAnalyticsEnabled()) return false;
-    if (!getRestrictedFieldsList().equals(other.getRestrictedFieldsList())) return false;
-    if (!getIndexConfigsList().equals(other.getIndexConfigsList())) return false;
+    if (getAnalyticsEnabled()
+        != other.getAnalyticsEnabled()) return false;
+    if (!getRestrictedFieldsList()
+        .equals(other.getRestrictedFieldsList())) return false;
+    if (!getIndexConfigsList()
+        .equals(other.getIndexConfigsList())) return false;
     if (hasCmekSettings() != other.hasCmekSettings()) return false;
     if (hasCmekSettings()) {
-      if (!getCmekSettings().equals(other.getCmekSettings())) return false;
+      if (!getCmekSettings()
+          .equals(other.getCmekSettings())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -773,11 +687,13 @@ public int hashCode() {
     hash = (37 * hash) + RETENTION_DAYS_FIELD_NUMBER;
     hash = (53 * hash) + getRetentionDays();
     hash = (37 * hash) + LOCKED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getLocked());
     hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER;
     hash = (53 * hash) + lifecycleState_;
     hash = (37 * hash) + ANALYTICS_ENABLED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnalyticsEnabled());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getAnalyticsEnabled());
     if (getRestrictedFieldsCount() > 0) {
       hash = (37 * hash) + RESTRICTED_FIELDS_FIELD_NUMBER;
       hash = (53 * hash) + getRestrictedFieldsList().hashCode();
@@ -795,123 +711,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.LogBucket parseFrom(java.nio.ByteBuffer data)
+  public static com.google.logging.v2.LogBucket parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.logging.v2.LogBucket parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.logging.v2.LogBucket parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.LogBucket prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Describes a repository in which log entries are stored.
    * 
* * Protobuf type {@code google.logging.v2.LogBucket} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogBucket) com.google.logging.v2.LogBucketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); } @@ -921,20 +832,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getIndexConfigsFieldBuilder(); getCmekSettingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -955,7 +866,8 @@ public Builder clear() { locked_ = false; lifecycleState_ = 0; analyticsEnabled_ = false; - restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (indexConfigsBuilder_ == null) { indexConfigs_ = java.util.Collections.emptyList(); } else { @@ -972,9 +884,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override @@ -995,9 +907,7 @@ public com.google.logging.v2.LogBucket build() { public com.google.logging.v2.LogBucket buildPartial() { com.google.logging.v2.LogBucket result = new com.google.logging.v2.LogBucket(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1024,11 +934,15 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -1048,8 +962,9 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { result.restrictedFields_ = restrictedFields_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.cmekSettings_ = - cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build(); + result.cmekSettings_ = cmekSettingsBuilder_ == null + ? cmekSettings_ + : cmekSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -1059,39 +974,38 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LogBucket) { - return mergeFrom((com.google.logging.v2.LogBucket) other); + return mergeFrom((com.google.logging.v2.LogBucket)other); } else { super.mergeFrom(other); return this; @@ -1156,10 +1070,9 @@ public Builder mergeFrom(com.google.logging.v2.LogBucket other) { indexConfigsBuilder_ = null; indexConfigs_ = other.indexConfigs_; bitField0_ = (bitField0_ & ~0x00000200); - indexConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIndexConfigsFieldBuilder() - : null; + indexConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIndexConfigsFieldBuilder() : null; } else { indexConfigsBuilder_.addAllMessages(other.indexConfigs_); } @@ -1194,87 +1107,82 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 72: - { - locked_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 72 - case 88: - { - retentionDays_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 88 - case 96: - { - lifecycleState_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 112: - { - analyticsEnabled_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 112 - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedFieldsIsMutable(); - restrictedFields_.add(s); - break; - } // case 122 - case 138: - { - com.google.logging.v2.IndexConfig m = - input.readMessage( - com.google.logging.v2.IndexConfig.parser(), extensionRegistry); - if (indexConfigsBuilder_ == null) { - ensureIndexConfigsIsMutable(); - indexConfigs_.add(m); - } else { - indexConfigsBuilder_.addMessage(m); - } - break; - } // case 138 - case 154: - { - input.readMessage(getCmekSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 154 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 72: { + locked_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + case 88: { + retentionDays_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 88 + case 96: { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 112: { + analyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(s); + break; + } // case 122 + case 138: { + com.google.logging.v2.IndexConfig m = + input.readMessage( + com.google.logging.v2.IndexConfig.parser(), + extensionRegistry); + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.add(m); + } else { + indexConfigsBuilder_.addMessage(m); + } + break; + } // case 138 + case 154: { + input.readMessage( + getCmekSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 154 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1284,13 +1192,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1308,13 +1213,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1323,8 +1228,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1342,14 +1245,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1357,8 +1261,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1376,22 +1278,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1409,7 +1307,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1419,8 +1316,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1438,14 +1333,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1455,20 +1348,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Describes this bucket.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1477,21 +1368,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Describes this bucket.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1499,35 +1389,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Describes this bucket.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Describes this bucket.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1537,21 +1420,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Describes this bucket.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1561,61 +1440,42 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1631,18 +1491,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1653,22 +1510,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1683,16 +1536,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1705,16 +1554,12 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1722,50 +1567,38 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1773,58 +1606,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1840,17 +1654,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1861,21 +1672,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1890,15 +1697,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1911,15 +1714,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1927,57 +1726,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private int retentionDays_; + private int retentionDays_ ; /** - * - * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -1986,7 +1771,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ @java.lang.Override @@ -1994,8 +1778,6 @@ public int getRetentionDays() { return retentionDays_; } /** - * - * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -2004,7 +1786,6 @@ public int getRetentionDays() {
      * 
* * int32 retention_days = 11; - * * @param value The retentionDays to set. * @return This builder for chaining. */ @@ -2016,8 +1797,6 @@ public Builder setRetentionDays(int value) { return this; } /** - * - * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -2026,7 +1805,6 @@ public Builder setRetentionDays(int value) {
      * 
* * int32 retention_days = 11; - * * @return This builder for chaining. */ public Builder clearRetentionDays() { @@ -2036,10 +1814,8 @@ public Builder clearRetentionDays() { return this; } - private boolean locked_; + private boolean locked_ ; /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2048,7 +1824,6 @@ public Builder clearRetentionDays() {
      * 
* * bool locked = 9; - * * @return The locked. */ @java.lang.Override @@ -2056,8 +1831,6 @@ public boolean getLocked() { return locked_; } /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2066,7 +1839,6 @@ public boolean getLocked() {
      * 
* * bool locked = 9; - * * @param value The locked to set. * @return This builder for chaining. */ @@ -2078,8 +1850,6 @@ public Builder setLocked(boolean value) { return this; } /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2088,7 +1858,6 @@ public Builder setLocked(boolean value) {
      * 
* * bool locked = 9; - * * @return This builder for chaining. */ public Builder clearLocked() { @@ -2100,33 +1869,22 @@ public Builder clearLocked() { private int lifecycleState_ = 0; /** - * - * *
      * Output only. The bucket lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
      * Output only. The bucket lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for lifecycleState to set. * @return This builder for chaining. */ @@ -2137,35 +1895,24 @@ public Builder setLifecycleStateValue(int value) { return this; } /** - * - * *
      * Output only. The bucket lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The bucket lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The lifecycleState to set. * @return This builder for chaining. */ @@ -2179,16 +1926,11 @@ public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { return this; } /** - * - * *
      * Output only. The bucket lifecycle state.
      * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearLifecycleState() { @@ -2198,10 +1940,8 @@ public Builder clearLifecycleState() { return this; } - private boolean analyticsEnabled_; + private boolean analyticsEnabled_ ; /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2209,7 +1949,6 @@ public Builder clearLifecycleState() {
      * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ @java.lang.Override @@ -2217,8 +1956,6 @@ public boolean getAnalyticsEnabled() { return analyticsEnabled_; } /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2226,7 +1963,6 @@ public boolean getAnalyticsEnabled() {
      * 
* * bool analytics_enabled = 14; - * * @param value The analyticsEnabled to set. * @return This builder for chaining. */ @@ -2238,8 +1974,6 @@ public Builder setAnalyticsEnabled(boolean value) { return this; } /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2247,7 +1981,6 @@ public Builder setAnalyticsEnabled(boolean value) {
      * 
* * bool analytics_enabled = 14; - * * @return This builder for chaining. */ public Builder clearAnalyticsEnabled() { @@ -2259,7 +1992,6 @@ public Builder clearAnalyticsEnabled() { private com.google.protobuf.LazyStringArrayList restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRestrictedFieldsIsMutable() { if (!restrictedFields_.isModifiable()) { restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); @@ -2267,8 +1999,6 @@ private void ensureRestrictedFieldsIsMutable() { bitField0_ |= 0x00000100; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2280,16 +2010,14 @@ private void ensureRestrictedFieldsIsMutable() {
      * 
* * repeated string restricted_fields = 15; - * * @return A list containing the restrictedFields. */ - public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { + public com.google.protobuf.ProtocolStringList + getRestrictedFieldsList() { restrictedFields_.makeImmutable(); return restrictedFields_; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2301,15 +2029,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() {
      * 
* * repeated string restricted_fields = 15; - * * @return The count of restrictedFields. */ public int getRestrictedFieldsCount() { return restrictedFields_.size(); } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2321,7 +2046,6 @@ public int getRestrictedFieldsCount() {
      * 
* * repeated string restricted_fields = 15; - * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -2329,8 +2053,6 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2342,16 +2064,14 @@ public java.lang.String getRestrictedFields(int index) {
      * 
* * repeated string restricted_fields = 15; - * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedFieldsBytes(int index) { return restrictedFields_.getByteString(index); } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2363,15 +2083,13 @@ public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) {
      * 
* * repeated string restricted_fields = 15; - * * @param index The index to set the value at. * @param value The restrictedFields to set. * @return This builder for chaining. */ - public Builder setRestrictedFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRestrictedFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedFieldsIsMutable(); restrictedFields_.set(index, value); bitField0_ |= 0x00000100; @@ -2379,8 +2097,6 @@ public Builder setRestrictedFields(int index, java.lang.String value) { return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2392,14 +2108,12 @@ public Builder setRestrictedFields(int index, java.lang.String value) {
      * 
* * repeated string restricted_fields = 15; - * * @param value The restrictedFields to add. * @return This builder for chaining. */ - public Builder addRestrictedFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); bitField0_ |= 0x00000100; @@ -2407,8 +2121,6 @@ public Builder addRestrictedFields(java.lang.String value) { return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2420,20 +2132,19 @@ public Builder addRestrictedFields(java.lang.String value) {
      * 
* * repeated string restricted_fields = 15; - * * @param values The restrictedFields to add. * @return This builder for chaining. */ - public Builder addAllRestrictedFields(java.lang.Iterable values) { + public Builder addAllRestrictedFields( + java.lang.Iterable values) { ensureRestrictedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedFields_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2445,19 +2156,16 @@ public Builder addAllRestrictedFields(java.lang.Iterable value
      * 
* * repeated string restricted_fields = 15; - * * @return This builder for chaining. */ public Builder clearRestrictedFields() { - restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + restrictedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2469,14 +2177,12 @@ public Builder clearRestrictedFields() {
      * 
* * repeated string restricted_fields = 15; - * * @param value The bytes of the restrictedFields to add. * @return This builder for chaining. */ - public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); @@ -2486,24 +2192,18 @@ public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { } private java.util.List indexConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIndexConfigsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { indexConfigs_ = new java.util.ArrayList(indexConfigs_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, - com.google.logging.v2.IndexConfig.Builder, - com.google.logging.v2.IndexConfigOrBuilder> - indexConfigsBuilder_; + com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder> indexConfigsBuilder_; /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2518,8 +2218,6 @@ public java.util.List getIndexConfigsList() { } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2534,8 +2232,6 @@ public int getIndexConfigsCount() { } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2550,15 +2246,14 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder setIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { + public Builder setIndexConfigs( + int index, com.google.logging.v2.IndexConfig value) { if (indexConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2572,8 +2267,6 @@ public Builder setIndexConfigs(int index, com.google.logging.v2.IndexConfig valu return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2592,8 +2285,6 @@ public Builder setIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2614,15 +2305,14 @@ public Builder addIndexConfigs(com.google.logging.v2.IndexConfig value) { return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder addIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { + public Builder addIndexConfigs( + int index, com.google.logging.v2.IndexConfig value) { if (indexConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2636,15 +2326,14 @@ public Builder addIndexConfigs(int index, com.google.logging.v2.IndexConfig valu return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder addIndexConfigs(com.google.logging.v2.IndexConfig.Builder builderForValue) { + public Builder addIndexConfigs( + com.google.logging.v2.IndexConfig.Builder builderForValue) { if (indexConfigsBuilder_ == null) { ensureIndexConfigsIsMutable(); indexConfigs_.add(builderForValue.build()); @@ -2655,8 +2344,6 @@ public Builder addIndexConfigs(com.google.logging.v2.IndexConfig.Builder builder return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2675,8 +2362,6 @@ public Builder addIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2687,7 +2372,8 @@ public Builder addAllIndexConfigs( java.lang.Iterable values) { if (indexConfigsBuilder_ == null) { ensureIndexConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, indexConfigs_); onChanged(); } else { indexConfigsBuilder_.addAllMessages(values); @@ -2695,8 +2381,6 @@ public Builder addAllIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2714,8 +2398,6 @@ public Builder clearIndexConfigs() { return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2733,44 +2415,39 @@ public Builder removeIndexConfigs(int index) { return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfig.Builder getIndexConfigsBuilder(int index) { + public com.google.logging.v2.IndexConfig.Builder getIndexConfigsBuilder( + int index) { return getIndexConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( + int index) { if (indexConfigsBuilder_ == null) { - return indexConfigs_.get(index); - } else { + return indexConfigs_.get(index); } else { return indexConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public java.util.List - getIndexConfigsOrBuilderList() { + public java.util.List + getIndexConfigsOrBuilderList() { if (indexConfigsBuilder_ != null) { return indexConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2778,8 +2455,6 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2787,47 +2462,42 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i * repeated .google.logging.v2.IndexConfig index_configs = 17; */ public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder() { - return getIndexConfigsFieldBuilder() - .addBuilder(com.google.logging.v2.IndexConfig.getDefaultInstance()); + return getIndexConfigsFieldBuilder().addBuilder( + com.google.logging.v2.IndexConfig.getDefaultInstance()); } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder(int index) { - return getIndexConfigsFieldBuilder() - .addBuilder(index, com.google.logging.v2.IndexConfig.getDefaultInstance()); + public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder( + int index) { + return getIndexConfigsFieldBuilder().addBuilder( + index, com.google.logging.v2.IndexConfig.getDefaultInstance()); } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public java.util.List getIndexConfigsBuilderList() { + public java.util.List + getIndexConfigsBuilderList() { return getIndexConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, - com.google.logging.v2.IndexConfig.Builder, - com.google.logging.v2.IndexConfigOrBuilder> + com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder> getIndexConfigsFieldBuilder() { if (indexConfigsBuilder_ == null) { - indexConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, - com.google.logging.v2.IndexConfig.Builder, - com.google.logging.v2.IndexConfigOrBuilder>( - indexConfigs_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + indexConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder>( + indexConfigs_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); indexConfigs_ = null; } return indexConfigsBuilder_; @@ -2835,13 +2505,8 @@ public java.util.List getIndexConfigs private com.google.logging.v2.CmekSettings cmekSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, - com.google.logging.v2.CmekSettings.Builder, - com.google.logging.v2.CmekSettingsOrBuilder> - cmekSettingsBuilder_; + com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> cmekSettingsBuilder_; /** - * - * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2851,15 +2516,12 @@ public java.util.List getIndexConfigs
      * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2869,21 +2531,16 @@ public boolean hasCmekSettings() {
      * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return The cmekSettings. */ public com.google.logging.v2.CmekSettings getCmekSettings() { if (cmekSettingsBuilder_ == null) { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } else { return cmekSettingsBuilder_.getMessage(); } } /** - * - * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2908,8 +2565,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2920,7 +2575,8 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
      *
      * .google.logging.v2.CmekSettings cmek_settings = 19;
      */
-    public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) {
+    public Builder setCmekSettings(
+        com.google.logging.v2.CmekSettings.Builder builderForValue) {
       if (cmekSettingsBuilder_ == null) {
         cmekSettings_ = builderForValue.build();
       } else {
@@ -2931,8 +2587,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2945,9 +2599,9 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
      */
     public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
       if (cmekSettingsBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0)
-            && cmekSettings_ != null
-            && cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0) &&
+          cmekSettings_ != null &&
+          cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) {
           getCmekSettingsBuilder().mergeFrom(value);
         } else {
           cmekSettings_ = value;
@@ -2962,8 +2616,6 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2985,8 +2637,6 @@ public Builder clearCmekSettings() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -3003,8 +2653,6 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() {
       return getCmekSettingsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -3019,14 +2667,11 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
       if (cmekSettingsBuilder_ != null) {
         return cmekSettingsBuilder_.getMessageOrBuilder();
       } else {
-        return cmekSettings_ == null
-            ? com.google.logging.v2.CmekSettings.getDefaultInstance()
-            : cmekSettings_;
+        return cmekSettings_ == null ?
+            com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_;
       }
     }
     /**
-     *
-     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -3038,24 +2683,21 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * .google.logging.v2.CmekSettings cmek_settings = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.CmekSettings,
-            com.google.logging.v2.CmekSettings.Builder,
-            com.google.logging.v2.CmekSettingsOrBuilder>
+        com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> 
         getCmekSettingsFieldBuilder() {
       if (cmekSettingsBuilder_ == null) {
-        cmekSettingsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.logging.v2.CmekSettings,
-                com.google.logging.v2.CmekSettings.Builder,
-                com.google.logging.v2.CmekSettingsOrBuilder>(
-                getCmekSettings(), getParentForChildren(), isClean());
+        cmekSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder>(
+                getCmekSettings(),
+                getParentForChildren(),
+                isClean());
         cmekSettings_ = null;
       }
       return cmekSettingsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3065,12 +2707,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.logging.v2.LogBucket)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.LogBucket)
   private static final com.google.logging.v2.LogBucket DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.LogBucket();
   }
@@ -3079,27 +2721,27 @@ public static com.google.logging.v2.LogBucket getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LogBucket parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LogBucket parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3114,4 +2756,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.LogBucket getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
similarity index 100%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
similarity index 83%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
index 510e8504b..36b572204 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
-public interface LogBucketOrBuilder
-    extends
+public interface LogBucketOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.logging.v2.LogBucket)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. The resource name of the bucket.
    *
@@ -44,13 +26,10 @@ public interface LogBucketOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -68,118 +47,89 @@ public interface LogBucketOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Describes this bucket.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Describes this bucket.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Logs will be retained by default for this amount of time, after which they
    * will automatically be deleted. The minimum retention period is 1 day. If
@@ -188,14 +138,11 @@ public interface LogBucketOrBuilder
    * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ int getRetentionDays(); /** - * - * *
    * Whether the bucket is locked.
    *
@@ -204,43 +151,30 @@ public interface LogBucketOrBuilder
    * 
* * bool locked = 9; - * * @return The locked. */ boolean getLocked(); /** - * - * *
    * Output only. The bucket lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ int getLifecycleStateValue(); /** - * - * *
    * Output only. The bucket lifecycle state.
    * 
* - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ com.google.logging.v2.LifecycleState getLifecycleState(); /** - * - * *
    * Whether log analytics is enabled for this bucket.
    *
@@ -248,14 +182,11 @@ public interface LogBucketOrBuilder
    * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ boolean getAnalyticsEnabled(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -267,13 +198,11 @@ public interface LogBucketOrBuilder
    * 
* * repeated string restricted_fields = 15; - * * @return A list containing the restrictedFields. */ - java.util.List getRestrictedFieldsList(); + java.util.List + getRestrictedFieldsList(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -285,13 +214,10 @@ public interface LogBucketOrBuilder
    * 
* * repeated string restricted_fields = 15; - * * @return The count of restrictedFields. */ int getRestrictedFieldsCount(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -303,14 +229,11 @@ public interface LogBucketOrBuilder
    * 
* * repeated string restricted_fields = 15; - * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ java.lang.String getRestrictedFields(int index); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -322,25 +245,22 @@ public interface LogBucketOrBuilder
    * 
* * repeated string restricted_fields = 15; - * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - com.google.protobuf.ByteString getRestrictedFieldsBytes(int index); + com.google.protobuf.ByteString + getRestrictedFieldsBytes(int index); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - java.util.List getIndexConfigsList(); + java.util.List + getIndexConfigsList(); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -349,8 +269,6 @@ public interface LogBucketOrBuilder */ com.google.logging.v2.IndexConfig getIndexConfigs(int index); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -359,30 +277,25 @@ public interface LogBucketOrBuilder */ int getIndexConfigsCount(); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - java.util.List + java.util.List getIndexConfigsOrBuilderList(); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index); + com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( + int index); /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -392,13 +305,10 @@ public interface LogBucketOrBuilder
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return Whether the cmekSettings field is set. */ boolean hasCmekSettings(); /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -408,13 +318,10 @@ public interface LogBucketOrBuilder
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return The cmekSettings. */ com.google.logging.v2.CmekSettings getCmekSettings(); /** - * - * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
similarity index 76%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
index b2a1ae9ea..34d9f2e7a 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
@@ -1,43 +1,25 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/log_entry.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * An individual entry in a log.
  * 
* * Protobuf type {@code google.logging.v2.LogEntry} */ -public final class LogEntry extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LogEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntry) LogEntryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LogEntry.newBuilder() to construct. private LogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogEntry() { logName_ = ""; severity_ = 0; @@ -48,13 +30,14 @@ private LogEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogEntry(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -65,35 +48,30 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_fieldAccessorTable + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogEntry.class, com.google.logging.v2.LogEntry.Builder.class); } private int bitField0_; private int payloadCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object payload_; - public enum PayloadCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PROTO_PAYLOAD(2), TEXT_PAYLOAD(3), JSON_PAYLOAD(6), PAYLOAD_NOT_SET(0); private final int value; - private PayloadCase(int value) { this.value = value; } @@ -109,35 +87,28 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 2: - return PROTO_PAYLOAD; - case 3: - return TEXT_PAYLOAD; - case 6: - return JSON_PAYLOAD; - case 0: - return PAYLOAD_NOT_SET; - default: - return null; + case 2: return PROTO_PAYLOAD; + case 3: return TEXT_PAYLOAD; + case 6: return JSON_PAYLOAD; + case 0: return PAYLOAD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public static final int LOG_NAME_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** - * - * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -165,7 +136,6 @@ public PayloadCase getPayloadCase() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The logName. */ @java.lang.Override @@ -174,15 +144,14 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -210,15 +179,16 @@ public java.lang.String getLogName() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -229,8 +199,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { public static final int RESOURCE_FIELD_NUMBER = 8; private com.google.api.MonitoredResource resource_; /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -239,9 +207,7 @@ public com.google.protobuf.ByteString getLogNameBytes() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -249,8 +215,6 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -259,9 +223,7 @@ public boolean hasResource() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override @@ -269,8 +231,6 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -279,8 +239,7 @@ public com.google.api.MonitoredResource getResource() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { @@ -289,8 +248,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { public static final int PROTO_PAYLOAD_FIELD_NUMBER = 2; /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -303,7 +260,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -311,8 +267,6 @@ public boolean hasProtoPayload() { return payloadCase_ == 2; } /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -325,19 +279,16 @@ public boolean hasProtoPayload() {
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return The protoPayload. */ @java.lang.Override public com.google.protobuf.Any getProtoPayload() { if (payloadCase_ == 2) { - return (com.google.protobuf.Any) payload_; + return (com.google.protobuf.Any) payload_; } return com.google.protobuf.Any.getDefaultInstance(); } /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -354,35 +305,29 @@ public com.google.protobuf.Any getProtoPayload() {
   @java.lang.Override
   public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
     if (payloadCase_ == 2) {
-      return (com.google.protobuf.Any) payload_;
+       return (com.google.protobuf.Any) payload_;
     }
     return com.google.protobuf.Any.getDefaultInstance();
   }
 
   public static final int TEXT_PAYLOAD_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return Whether the textPayload field is set. */ public boolean hasTextPayload() { return payloadCase_ == 3; } /** - * - * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return The textPayload. */ public java.lang.String getTextPayload() { @@ -393,7 +338,8 @@ public java.lang.String getTextPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (payloadCase_ == 3) { payload_ = s; @@ -402,24 +348,23 @@ public java.lang.String getTextPayload() { } } /** - * - * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return The bytes for textPayload. */ - public com.google.protobuf.ByteString getTextPayloadBytes() { + public com.google.protobuf.ByteString + getTextPayloadBytes() { java.lang.Object ref = ""; if (payloadCase_ == 3) { ref = payload_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (payloadCase_ == 3) { payload_ = b; } @@ -431,15 +376,12 @@ public com.google.protobuf.ByteString getTextPayloadBytes() { public static final int JSON_PAYLOAD_FIELD_NUMBER = 6; /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; - * * @return Whether the jsonPayload field is set. */ @java.lang.Override @@ -447,27 +389,22 @@ public boolean hasJsonPayload() { return payloadCase_ == 6; } /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; - * * @return The jsonPayload. */ @java.lang.Override public com.google.protobuf.Struct getJsonPayload() { if (payloadCase_ == 6) { - return (com.google.protobuf.Struct) payload_; + return (com.google.protobuf.Struct) payload_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
@@ -478,7 +415,7 @@ public com.google.protobuf.Struct getJsonPayload() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
     if (payloadCase_ == 6) {
-      return (com.google.protobuf.Struct) payload_;
+       return (com.google.protobuf.Struct) payload_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
@@ -486,8 +423,6 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
   public static final int TIMESTAMP_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp timestamp_;
   /**
-   *
-   *
    * 
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -503,9 +438,7 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the timestamp field is set. */ @java.lang.Override @@ -513,8 +446,6 @@ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -530,9 +461,7 @@ public boolean hasTimestamp() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The timestamp. */ @java.lang.Override @@ -540,8 +469,6 @@ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** - * - * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -557,8 +484,7 @@ public com.google.protobuf.Timestamp getTimestamp() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { @@ -568,16 +494,11 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { public static final int RECEIVE_TIMESTAMP_FIELD_NUMBER = 24; private com.google.protobuf.Timestamp receiveTimestamp_; /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the receiveTimestamp field is set. */ @java.lang.Override @@ -585,88 +506,61 @@ public boolean hasReceiveTimestamp() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The receiveTimestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getReceiveTimestamp() { - return receiveTimestamp_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : receiveTimestamp_; + return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; } /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { - return receiveTimestamp_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : receiveTimestamp_; + return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; } public static final int SEVERITY_FIELD_NUMBER = 10; private int severity_ = 0; /** - * - * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ - @java.lang.Override - public com.google.logging.type.LogSeverity getSeverity() { - com.google.logging.type.LogSeverity result = - com.google.logging.type.LogSeverity.forNumber(severity_); + @java.lang.Override public com.google.logging.type.LogSeverity getSeverity() { + com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.forNumber(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } public static final int INSERT_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object insertId_ = ""; /** - * - * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -682,7 +576,6 @@ public com.google.logging.type.LogSeverity getSeverity() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The insertId. */ @java.lang.Override @@ -691,15 +584,14 @@ public java.lang.String getInsertId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); insertId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -715,15 +607,16 @@ public java.lang.String getInsertId() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for insertId. */ @java.lang.Override - public com.google.protobuf.ByteString getInsertIdBytes() { + public com.google.protobuf.ByteString + getInsertIdBytes() { java.lang.Object ref = insertId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); insertId_ = b; return b; } else { @@ -734,17 +627,12 @@ public com.google.protobuf.ByteString getInsertIdBytes() { public static final int HTTP_REQUEST_FIELD_NUMBER = 7; private com.google.logging.type.HttpRequest httpRequest_; /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -752,73 +640,58 @@ public boolean hasHttpRequest() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpRequest. */ @java.lang.Override public com.google.logging.type.HttpRequest getHttpRequest() { - return httpRequest_ == null - ? com.google.logging.type.HttpRequest.getDefaultInstance() - : httpRequest_; + return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; } /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { - return httpRequest_ == null - ? com.google.logging.type.HttpRequest.getDefaultInstance() - : httpRequest_; + return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; } public static final int LABELS_FIELD_NUMBER = 11; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -839,21 +712,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -878,8 +750,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -900,19 +770,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -933,11 +801,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -947,17 +815,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int OPERATION_FIELD_NUMBER = 15;
   private com.google.logging.v2.LogEntryOperation operation_;
   /**
-   *
-   *
    * 
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the operation field is set. */ @java.lang.Override @@ -965,51 +828,35 @@ public boolean hasOperation() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The operation. */ @java.lang.Override public com.google.logging.v2.LogEntryOperation getOperation() { - return operation_ == null - ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() - : operation_; + return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } /** - * - * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() { - return operation_ == null - ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() - : operation_; + return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } public static final int TRACE_FIELD_NUMBER = 22; - @SuppressWarnings("serial") private volatile java.lang.Object trace_ = ""; /** - * - * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -1023,7 +870,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ @java.lang.Override @@ -1032,15 +878,14 @@ public java.lang.String getTrace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trace_ = s; return s; } } /** - * - * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -1054,15 +899,16 @@ public java.lang.String getTrace() {
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trace. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceBytes() { + public com.google.protobuf.ByteString + getTraceBytes() { java.lang.Object ref = trace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trace_ = b; return b; } else { @@ -1071,12 +917,9 @@ public com.google.protobuf.ByteString getTraceBytes() { } public static final int SPAN_ID_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object spanId_ = ""; /** - * - * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -1111,7 +954,6 @@ public com.google.protobuf.ByteString getTraceBytes() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ @java.lang.Override @@ -1120,15 +962,14 @@ public java.lang.String getSpanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanId_ = s; return s; } } /** - * - * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -1163,15 +1004,16 @@ public java.lang.String getSpanId() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spanId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpanIdBytes() { + public com.google.protobuf.ByteString + getSpanIdBytes() { java.lang.Object ref = spanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spanId_ = b; return b; } else { @@ -1182,8 +1024,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { public static final int TRACE_SAMPLED_FIELD_NUMBER = 30; private boolean traceSampled_ = false; /** - * - * *
    * Optional. The sampling decision of the trace associated with the log entry.
    *
@@ -1195,7 +1035,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -1206,17 +1045,12 @@ public boolean getTraceSampled() { public static final int SOURCE_LOCATION_FIELD_NUMBER = 23; private com.google.logging.v2.LogEntrySourceLocation sourceLocation_; /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sourceLocation field is set. */ @java.lang.Override @@ -1224,56 +1058,40 @@ public boolean hasSourceLocation() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The sourceLocation. */ @java.lang.Override public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { - return sourceLocation_ == null - ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() - : sourceLocation_; + return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder() { - return sourceLocation_ == null - ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() - : sourceLocation_; + return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } public static final int SPLIT_FIELD_NUMBER = 35; private com.google.logging.v2.LogSplit split_; /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the split field is set. */ @java.lang.Override @@ -1281,15 +1099,12 @@ public boolean hasSplit() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The split. */ @java.lang.Override @@ -1297,8 +1112,6 @@ public com.google.logging.v2.LogSplit getSplit() { return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; } /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
@@ -1312,7 +1125,6 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1324,7 +1136,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (payloadCase_ == 2) {
       output.writeMessage(2, (com.google.protobuf.Any) payload_);
     }
@@ -1349,8 +1162,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (severity_ != com.google.logging.type.LogSeverity.DEFAULT.getNumber()) {
       output.writeEnum(10, severity_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        11);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 12, logName_);
     }
@@ -1385,9 +1202,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (payloadCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.protobuf.Any) payload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.protobuf.Any) payload_);
     }
     if (payloadCase_ == 3) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payload_);
@@ -1396,55 +1212,63 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, insertId_);
     }
     if (payloadCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.protobuf.Struct) payload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.protobuf.Struct) payload_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHttpRequest());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getHttpRequest());
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getResource());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTimestamp());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getTimestamp());
     }
     if (severity_ != com.google.logging.type.LogSeverity.DEFAULT.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, severity_);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(10, severity_);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(11, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, logName_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getOperation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(15, getOperation());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trace_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, trace_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSourceLocation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(23, getSourceLocation());
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getReceiveTimestamp());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(24, getReceiveTimestamp());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, spanId_);
     }
     if (traceSampled_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, traceSampled_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(30, traceSampled_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getSplit());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(35, getSplit());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1454,58 +1278,74 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.LogEntry)) {
       return super.equals(obj);
     }
     com.google.logging.v2.LogEntry other = (com.google.logging.v2.LogEntry) obj;
 
-    if (!getLogName().equals(other.getLogName())) return false;
+    if (!getLogName()
+        .equals(other.getLogName())) return false;
     if (hasResource() != other.hasResource()) return false;
     if (hasResource()) {
-      if (!getResource().equals(other.getResource())) return false;
+      if (!getResource()
+          .equals(other.getResource())) return false;
     }
     if (hasTimestamp() != other.hasTimestamp()) return false;
     if (hasTimestamp()) {
-      if (!getTimestamp().equals(other.getTimestamp())) return false;
+      if (!getTimestamp()
+          .equals(other.getTimestamp())) return false;
     }
     if (hasReceiveTimestamp() != other.hasReceiveTimestamp()) return false;
     if (hasReceiveTimestamp()) {
-      if (!getReceiveTimestamp().equals(other.getReceiveTimestamp())) return false;
+      if (!getReceiveTimestamp()
+          .equals(other.getReceiveTimestamp())) return false;
     }
     if (severity_ != other.severity_) return false;
-    if (!getInsertId().equals(other.getInsertId())) return false;
+    if (!getInsertId()
+        .equals(other.getInsertId())) return false;
     if (hasHttpRequest() != other.hasHttpRequest()) return false;
     if (hasHttpRequest()) {
-      if (!getHttpRequest().equals(other.getHttpRequest())) return false;
+      if (!getHttpRequest()
+          .equals(other.getHttpRequest())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (hasOperation() != other.hasOperation()) return false;
     if (hasOperation()) {
-      if (!getOperation().equals(other.getOperation())) return false;
-    }
-    if (!getTrace().equals(other.getTrace())) return false;
-    if (!getSpanId().equals(other.getSpanId())) return false;
-    if (getTraceSampled() != other.getTraceSampled()) return false;
+      if (!getOperation()
+          .equals(other.getOperation())) return false;
+    }
+    if (!getTrace()
+        .equals(other.getTrace())) return false;
+    if (!getSpanId()
+        .equals(other.getSpanId())) return false;
+    if (getTraceSampled()
+        != other.getTraceSampled()) return false;
     if (hasSourceLocation() != other.hasSourceLocation()) return false;
     if (hasSourceLocation()) {
-      if (!getSourceLocation().equals(other.getSourceLocation())) return false;
+      if (!getSourceLocation()
+          .equals(other.getSourceLocation())) return false;
     }
     if (hasSplit() != other.hasSplit()) return false;
     if (hasSplit()) {
-      if (!getSplit().equals(other.getSplit())) return false;
+      if (!getSplit()
+          .equals(other.getSplit())) return false;
     }
     if (!getPayloadCase().equals(other.getPayloadCase())) return false;
     switch (payloadCase_) {
       case 2:
-        if (!getProtoPayload().equals(other.getProtoPayload())) return false;
+        if (!getProtoPayload()
+            .equals(other.getProtoPayload())) return false;
         break;
       case 3:
-        if (!getTextPayload().equals(other.getTextPayload())) return false;
+        if (!getTextPayload()
+            .equals(other.getTextPayload())) return false;
         break;
       case 6:
-        if (!getJsonPayload().equals(other.getJsonPayload())) return false;
+        if (!getJsonPayload()
+            .equals(other.getJsonPayload())) return false;
         break;
       case 0:
       default:
@@ -1556,7 +1396,8 @@ public int hashCode() {
     hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
     hash = (53 * hash) + getSpanId().hashCode();
     hash = (37 * hash) + TRACE_SAMPLED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTraceSampled());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getTraceSampled());
     if (hasSourceLocation()) {
       hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER;
       hash = (53 * hash) + getSourceLocation().hashCode();
@@ -1586,116 +1427,112 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.LogEntry parseFrom(java.nio.ByteBuffer data)
+  public static com.google.logging.v2.LogEntry parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.logging.v2.LogEntry parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.logging.v2.LogEntry parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.LogEntry parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.LogEntry parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.logging.v2.LogEntry parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.logging.v2.LogEntry parseFrom(
+      com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.LogEntry parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.LogEntry prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * An individual entry in a log.
    * 
* * Protobuf type {@code google.logging.v2.LogEntry} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntry) com.google.logging.v2.LogEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1705,10 +1542,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -1716,15 +1553,14 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 11: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_fieldAccessorTable + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogEntry.class, com.google.logging.v2.LogEntry.Builder.class); } @@ -1734,13 +1570,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourceFieldBuilder(); getTimestampFieldBuilder(); getReceiveTimestampFieldBuilder(); @@ -1750,7 +1587,6 @@ private void maybeForceBuilderInitialization() { getSplitFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1809,9 +1645,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LogEntryProto - .internal_static_google_logging_v2_LogEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; } @java.lang.Override @@ -1831,9 +1667,7 @@ public com.google.logging.v2.LogEntry build() { @java.lang.Override public com.google.logging.v2.LogEntry buildPartial() { com.google.logging.v2.LogEntry result = new com.google.logging.v2.LogEntry(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1846,16 +1680,21 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); + result.timestamp_ = timestampBuilder_ == null + ? timestamp_ + : timestampBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.receiveTimestamp_ = - receiveTimestampBuilder_ == null ? receiveTimestamp_ : receiveTimestampBuilder_.build(); + result.receiveTimestamp_ = receiveTimestampBuilder_ == null + ? receiveTimestamp_ + : receiveTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -1865,8 +1704,9 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.insertId_ = insertId_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.httpRequest_ = - httpRequestBuilder_ == null ? httpRequest_ : httpRequestBuilder_.build(); + result.httpRequest_ = httpRequestBuilder_ == null + ? httpRequest_ + : httpRequestBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000400) != 0)) { @@ -1874,7 +1714,9 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + result.operation_ = operationBuilder_ == null + ? operation_ + : operationBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00001000) != 0)) { @@ -1887,12 +1729,15 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.traceSampled_ = traceSampled_; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.sourceLocation_ = - sourceLocationBuilder_ == null ? sourceLocation_ : sourceLocationBuilder_.build(); + result.sourceLocation_ = sourceLocationBuilder_ == null + ? sourceLocation_ + : sourceLocationBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.split_ = splitBuilder_ == null ? split_ : splitBuilder_.build(); + result.split_ = splitBuilder_ == null + ? split_ + : splitBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -1901,10 +1746,12 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { private void buildPartialOneofs(com.google.logging.v2.LogEntry result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; - if (payloadCase_ == 2 && protoPayloadBuilder_ != null) { + if (payloadCase_ == 2 && + protoPayloadBuilder_ != null) { result.payload_ = protoPayloadBuilder_.build(); } - if (payloadCase_ == 6 && jsonPayloadBuilder_ != null) { + if (payloadCase_ == 6 && + jsonPayloadBuilder_ != null) { result.payload_ = jsonPayloadBuilder_.build(); } } @@ -1913,39 +1760,38 @@ private void buildPartialOneofs(com.google.logging.v2.LogEntry result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LogEntry) { - return mergeFrom((com.google.logging.v2.LogEntry) other); + return mergeFrom((com.google.logging.v2.LogEntry)other); } else { super.mergeFrom(other); return this; @@ -1979,7 +1825,8 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000400; if (other.hasOperation()) { mergeOperation(other.getOperation()); @@ -2004,27 +1851,23 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { mergeSplit(other.getSplit()); } switch (other.getPayloadCase()) { - case PROTO_PAYLOAD: - { - mergeProtoPayload(other.getProtoPayload()); - break; - } - case TEXT_PAYLOAD: - { - payloadCase_ = 3; - payload_ = other.payload_; - onChanged(); - break; - } - case JSON_PAYLOAD: - { - mergeJsonPayload(other.getJsonPayload()); - break; - } - case PAYLOAD_NOT_SET: - { - break; - } + case PROTO_PAYLOAD: { + mergeProtoPayload(other.getProtoPayload()); + break; + } + case TEXT_PAYLOAD: { + payloadCase_ = 3; + payload_ = other.payload_; + onChanged(); + break; + } + case JSON_PAYLOAD: { + mergeJsonPayload(other.getJsonPayload()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2052,123 +1895,120 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getProtoPayloadFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - payloadCase_ = 3; - payload_ = s; - break; - } // case 26 - case 34: - { - insertId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 34 - case 50: - { - input.readMessage(getJsonPayloadFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 66 - case 74: - { - input.readMessage(getTimestampFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - case 80: - { - severity_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 80 - case 90: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 98 - case 122: - { - input.readMessage(getOperationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 122 - case 178: - { - trace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 178 - case 186: - { - input.readMessage(getSourceLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 186 - case 194: - { - input.readMessage( - getReceiveTimestampFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 194 - case 218: - { - spanId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 218 - case 240: - { - traceSampled_ = input.readBool(); - bitField0_ |= 0x00004000; - break; - } // case 240 - case 282: - { - input.readMessage(getSplitFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 282 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getProtoPayloadFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + payloadCase_ = 3; + payload_ = s; + break; + } // case 26 + case 34: { + insertId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: { + input.readMessage( + getJsonPayloadFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getHttpRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 + case 74: { + input.readMessage( + getTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 80: { + severity_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 + case 90: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + logName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 98 + case 122: { + input.readMessage( + getOperationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 122 + case 178: { + trace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 178 + case 186: { + input.readMessage( + getSourceLocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 186 + case 194: { + input.readMessage( + getReceiveTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 194 + case 218: { + spanId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 218 + case 240: { + traceSampled_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 240 + case 282: { + input.readMessage( + getSplitFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 282 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2178,12 +2018,12 @@ public Builder mergeFrom( } // finally return this; } - private int payloadCase_ = 0; private java.lang.Object payload_; - - public PayloadCase getPayloadCase() { - return PayloadCase.forNumber(payloadCase_); + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); } public Builder clearPayload() { @@ -2197,8 +2037,6 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2226,13 +2064,13 @@ public Builder clearPayload() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -2241,8 +2079,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2270,14 +2106,15 @@ public java.lang.String getLogName() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for logName. */ - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -2285,8 +2122,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2314,22 +2149,18 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2357,7 +2188,6 @@ public Builder setLogName(java.lang.String value) {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLogName() { @@ -2367,8 +2197,6 @@ public Builder clearLogName() { return this; } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2396,14 +2224,12 @@ public Builder clearLogName() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logName_ = value; bitField0_ |= 0x00000001; @@ -2413,13 +2239,8 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) { private com.google.api.MonitoredResource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> - resourceBuilder_; + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_; /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2428,17 +2249,13 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2447,23 +2264,17 @@ public boolean hasResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.api.MonitoredResource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2472,8 +2283,7 @@ public com.google.api.MonitoredResource getResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { @@ -2489,8 +2299,6 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2499,10 +2307,10 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setResource( + com.google.api.MonitoredResource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -2513,8 +2321,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2523,14 +2329,13 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && resource_ != null - && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + resource_ != null && + resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -2545,8 +2350,6 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2555,8 +2358,7 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2569,8 +2371,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2579,8 +2379,7 @@ public Builder clearResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.api.MonitoredResource.Builder getResourceBuilder() { bitField0_ |= 0x00000002; @@ -2588,8 +2387,6 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2598,21 +2395,17 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.api.MonitoredResource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.api.MonitoredResource.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2621,34 +2414,25 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - protoPayloadBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> protoPayloadBuilder_; /** - * - * *
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2661,7 +2445,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2669,8 +2452,6 @@ public boolean hasProtoPayload() { return payloadCase_ == 2; } /** - * - * *
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2683,7 +2464,6 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return The protoPayload. */ @java.lang.Override @@ -2701,8 +2481,6 @@ public com.google.protobuf.Any getProtoPayload() { } } /** - * - * *
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2730,8 +2508,6 @@ public Builder setProtoPayload(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2745,7 +2521,8 @@ public Builder setProtoPayload(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any proto_payload = 2;
      */
-    public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setProtoPayload(
+        com.google.protobuf.Any.Builder builderForValue) {
       if (protoPayloadBuilder_ == null) {
         payload_ = builderForValue.build();
         onChanged();
@@ -2756,8 +2533,6 @@ public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2773,11 +2548,10 @@ public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
      */
     public Builder mergeProtoPayload(com.google.protobuf.Any value) {
       if (protoPayloadBuilder_ == null) {
-        if (payloadCase_ == 2 && payload_ != com.google.protobuf.Any.getDefaultInstance()) {
-          payload_ =
-              com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) payload_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (payloadCase_ == 2 &&
+            payload_ != com.google.protobuf.Any.getDefaultInstance()) {
+          payload_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) payload_)
+              .mergeFrom(value).buildPartial();
         } else {
           payload_ = value;
         }
@@ -2793,8 +2567,6 @@ public Builder mergeProtoPayload(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2825,8 +2597,6 @@ public Builder clearProtoPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2844,8 +2614,6 @@ public com.google.protobuf.Any.Builder getProtoPayloadBuilder() {
       return getProtoPayloadFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2871,8 +2639,6 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2887,20 +2653,17 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
      * .google.protobuf.Any proto_payload = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any,
-            com.google.protobuf.Any.Builder,
-            com.google.protobuf.AnyOrBuilder>
+        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
         getProtoPayloadFieldBuilder() {
       if (protoPayloadBuilder_ == null) {
         if (!(payloadCase_ == 2)) {
           payload_ = com.google.protobuf.Any.getDefaultInstance();
         }
-        protoPayloadBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Any,
-                com.google.protobuf.Any.Builder,
-                com.google.protobuf.AnyOrBuilder>(
-                (com.google.protobuf.Any) payload_, getParentForChildren(), isClean());
+        protoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+                (com.google.protobuf.Any) payload_,
+                getParentForChildren(),
+                isClean());
         payload_ = null;
       }
       payloadCase_ = 2;
@@ -2909,14 +2672,11 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
     }
 
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -2924,14 +2684,11 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** - * - * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @return The textPayload. */ @java.lang.Override @@ -2941,7 +2698,8 @@ public java.lang.String getTextPayload() { ref = payload_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (payloadCase_ == 3) { payload_ = s; @@ -2952,25 +2710,24 @@ public java.lang.String getTextPayload() { } } /** - * - * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @return The bytes for textPayload. */ @java.lang.Override - public com.google.protobuf.ByteString getTextPayloadBytes() { + public com.google.protobuf.ByteString + getTextPayloadBytes() { java.lang.Object ref = ""; if (payloadCase_ == 3) { ref = payload_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (payloadCase_ == 3) { payload_ = b; } @@ -2980,35 +2737,28 @@ public com.google.protobuf.ByteString getTextPayloadBytes() { } } /** - * - * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @param value The textPayload to set. * @return This builder for chaining. */ - public Builder setTextPayload(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTextPayload( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payloadCase_ = 3; payload_ = value; onChanged(); return this; } /** - * - * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @return This builder for chaining. */ public Builder clearTextPayload() { @@ -3020,21 +2770,17 @@ public Builder clearTextPayload() { return this; } /** - * - * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; - * * @param value The bytes for textPayload to set. * @return This builder for chaining. */ - public Builder setTextPayloadBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTextPayloadBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payloadCase_ = 3; payload_ = value; @@ -3043,20 +2789,14 @@ public Builder setTextPayloadBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - jsonPayloadBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> jsonPayloadBuilder_; /** - * - * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
      * 
* * .google.protobuf.Struct json_payload = 6; - * * @return Whether the jsonPayload field is set. */ @java.lang.Override @@ -3064,15 +2804,12 @@ public boolean hasJsonPayload() { return payloadCase_ == 6; } /** - * - * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
      * 
* * .google.protobuf.Struct json_payload = 6; - * * @return The jsonPayload. */ @java.lang.Override @@ -3090,8 +2827,6 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** - * - * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3113,8 +2848,6 @@ public Builder setJsonPayload(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3122,7 +2855,8 @@ public Builder setJsonPayload(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct json_payload = 6;
      */
-    public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setJsonPayload(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (jsonPayloadBuilder_ == null) {
         payload_ = builderForValue.build();
         onChanged();
@@ -3133,8 +2867,6 @@ public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3144,11 +2876,10 @@ public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue
      */
     public Builder mergeJsonPayload(com.google.protobuf.Struct value) {
       if (jsonPayloadBuilder_ == null) {
-        if (payloadCase_ == 6 && payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          payload_ =
-              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) payload_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (payloadCase_ == 6 &&
+            payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          payload_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) payload_)
+              .mergeFrom(value).buildPartial();
         } else {
           payload_ = value;
         }
@@ -3164,8 +2895,6 @@ public Builder mergeJsonPayload(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3190,8 +2919,6 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3203,8 +2930,6 @@ public com.google.protobuf.Struct.Builder getJsonPayloadBuilder() {
       return getJsonPayloadFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3224,8 +2949,6 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3234,20 +2957,17 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
      * .google.protobuf.Struct json_payload = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getJsonPayloadFieldBuilder() {
       if (jsonPayloadBuilder_ == null) {
         if (!(payloadCase_ == 6)) {
           payload_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        jsonPayloadBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) payload_, getParentForChildren(), isClean());
+        jsonPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) payload_,
+                getParentForChildren(),
+                isClean());
         payload_ = null;
       }
       payloadCase_ = 6;
@@ -3257,13 +2977,8 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
 
     private com.google.protobuf.Timestamp timestamp_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        timestampBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
     /**
-     *
-     *
      * 
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3279,17 +2994,13 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3305,9 +3016,7 @@ public boolean hasTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { @@ -3318,8 +3027,6 @@ public com.google.protobuf.Timestamp getTimestamp() { } } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3335,8 +3042,7 @@ public com.google.protobuf.Timestamp getTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { @@ -3352,8 +3058,6 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3369,10 +3073,10 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { @@ -3383,8 +3087,6 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3400,14 +3102,13 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && timestamp_ != null - && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + timestamp_ != null && + timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; @@ -3422,8 +3123,6 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3439,8 +3138,7 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3453,8 +3151,6 @@ public Builder clearTimestamp() { return this; } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3470,8 +3166,7 @@ public Builder clearTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { bitField0_ |= 0x00000020; @@ -3479,8 +3174,6 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { return getTimestampFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3496,19 +3189,17 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + return timestamp_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** - * - * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3524,21 +3215,17 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { - timestampBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), getParentForChildren(), isClean()); + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), + getParentForChildren(), + isClean()); timestamp_ = null; } return timestampBuilder_; @@ -3546,58 +3233,39 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { private com.google.protobuf.Timestamp receiveTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - receiveTimestampBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> receiveTimestampBuilder_; /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the receiveTimestamp field is set. */ public boolean hasReceiveTimestamp() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The receiveTimestamp. */ public com.google.protobuf.Timestamp getReceiveTimestamp() { if (receiveTimestampBuilder_ == null) { - return receiveTimestamp_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : receiveTimestamp_; + return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; } else { return receiveTimestampBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp value) { if (receiveTimestampBuilder_ == null) { @@ -3613,17 +3281,14 @@ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReceiveTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { if (receiveTimestampBuilder_ == null) { receiveTimestamp_ = builderForValue.build(); } else { @@ -3634,21 +3299,17 @@ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeReceiveTimestamp(com.google.protobuf.Timestamp value) { if (receiveTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && receiveTimestamp_ != null - && receiveTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + receiveTimestamp_ != null && + receiveTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getReceiveTimestampBuilder().mergeFrom(value); } else { receiveTimestamp_ = value; @@ -3663,15 +3324,11 @@ public Builder mergeReceiveTimestamp(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearReceiveTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3684,15 +3341,11 @@ public Builder clearReceiveTimestamp() { return this; } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getReceiveTimestampBuilder() { bitField0_ |= 0x00000040; @@ -3700,48 +3353,36 @@ public com.google.protobuf.Timestamp.Builder getReceiveTimestampBuilder() { return getReceiveTimestampFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { if (receiveTimestampBuilder_ != null) { return receiveTimestampBuilder_.getMessageOrBuilder(); } else { - return receiveTimestamp_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : receiveTimestamp_; + return receiveTimestamp_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; } } /** - * - * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReceiveTimestampFieldBuilder() { if (receiveTimestampBuilder_ == null) { - receiveTimestampBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReceiveTimestamp(), getParentForChildren(), isClean()); + receiveTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReceiveTimestamp(), + getParentForChildren(), + isClean()); receiveTimestamp_ = null; } return receiveTimestampBuilder_; @@ -3749,35 +3390,24 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { private int severity_ = 0; /** - * - * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -3788,37 +3418,26 @@ public Builder setSeverityValue(int value) { return this; } /** - * - * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ @java.lang.Override public com.google.logging.type.LogSeverity getSeverity() { - com.google.logging.type.LogSeverity result = - com.google.logging.type.LogSeverity.forNumber(severity_); + com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.forNumber(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The severity to set. * @return This builder for chaining. */ @@ -3832,17 +3451,12 @@ public Builder setSeverity(com.google.logging.type.LogSeverity value) { return this; } /** - * - * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSeverity() { @@ -3854,8 +3468,6 @@ public Builder clearSeverity() { private java.lang.Object insertId_ = ""; /** - * - * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3871,13 +3483,13 @@ public Builder clearSeverity() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The insertId. */ public java.lang.String getInsertId() { java.lang.Object ref = insertId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); insertId_ = s; return s; @@ -3886,8 +3498,6 @@ public java.lang.String getInsertId() { } } /** - * - * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3903,14 +3513,15 @@ public java.lang.String getInsertId() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for insertId. */ - public com.google.protobuf.ByteString getInsertIdBytes() { + public com.google.protobuf.ByteString + getInsertIdBytes() { java.lang.Object ref = insertId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); insertId_ = b; return b; } else { @@ -3918,8 +3529,6 @@ public com.google.protobuf.ByteString getInsertIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3935,22 +3544,18 @@ public com.google.protobuf.ByteString getInsertIdBytes() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The insertId to set. * @return This builder for chaining. */ - public Builder setInsertId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInsertId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } insertId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3966,7 +3571,6 @@ public Builder setInsertId(java.lang.String value) {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInsertId() { @@ -3976,8 +3580,6 @@ public Builder clearInsertId() { return this; } /** - * - * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3993,14 +3595,12 @@ public Builder clearInsertId() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for insertId to set. * @return This builder for chaining. */ - public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInsertIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); insertId_ = value; bitField0_ |= 0x00000100; @@ -4010,61 +3610,42 @@ public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { private com.google.logging.type.HttpRequest httpRequest_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, - com.google.logging.type.HttpRequest.Builder, - com.google.logging.type.HttpRequestOrBuilder> - httpRequestBuilder_; + com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder> httpRequestBuilder_; /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpRequest field is set. */ public boolean hasHttpRequest() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpRequest. */ public com.google.logging.type.HttpRequest getHttpRequest() { if (httpRequestBuilder_ == null) { - return httpRequest_ == null - ? com.google.logging.type.HttpRequest.getDefaultInstance() - : httpRequest_; + return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; } else { return httpRequestBuilder_.getMessage(); } } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { if (httpRequestBuilder_ == null) { @@ -4080,18 +3661,15 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { return this; } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builderForValue) { + public Builder setHttpRequest( + com.google.logging.type.HttpRequest.Builder builderForValue) { if (httpRequestBuilder_ == null) { httpRequest_ = builderForValue.build(); } else { @@ -4102,22 +3680,18 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builde return this; } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { if (httpRequestBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && httpRequest_ != null - && httpRequest_ != com.google.logging.type.HttpRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + httpRequest_ != null && + httpRequest_ != com.google.logging.type.HttpRequest.getDefaultInstance()) { getHttpRequestBuilder().mergeFrom(value); } else { httpRequest_ = value; @@ -4132,16 +3706,12 @@ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { return this; } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHttpRequest() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4154,16 +3724,12 @@ public Builder clearHttpRequest() { return this; } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { bitField0_ |= 0x00000200; @@ -4171,68 +3737,58 @@ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { return getHttpRequestFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { if (httpRequestBuilder_ != null) { return httpRequestBuilder_.getMessageOrBuilder(); } else { - return httpRequest_ == null - ? com.google.logging.type.HttpRequest.getDefaultInstance() - : httpRequest_; + return httpRequest_ == null ? + com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; } } /** - * - * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, - com.google.logging.type.HttpRequest.Builder, - com.google.logging.type.HttpRequestOrBuilder> + com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder> getHttpRequestFieldBuilder() { if (httpRequestBuilder_ == null) { - httpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, - com.google.logging.type.HttpRequest.Builder, - com.google.logging.type.HttpRequestOrBuilder>( - getHttpRequest(), getParentForChildren(), isClean()); + httpRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder>( + getHttpRequest(), + getParentForChildren(), + isClean()); httpRequest_ = null; } return httpRequestBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4241,13 +3797,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4268,21 +3821,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4307,8 +3859,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4329,19 +3879,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4362,25 +3910,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4400,22 +3946,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000400;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4435,20 +3982,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4468,69 +4012,52 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private com.google.logging.v2.LogEntryOperation operation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.LogEntryOperation,
-            com.google.logging.v2.LogEntryOperation.Builder,
-            com.google.logging.v2.LogEntryOperationOrBuilder>
-        operationBuilder_;
+        com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder> operationBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The operation. */ public com.google.logging.v2.LogEntryOperation getOperation() { if (operationBuilder_ == null) { - return operation_ == null - ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() - : operation_; + return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOperation(com.google.logging.v2.LogEntryOperation value) { if (operationBuilder_ == null) { @@ -4546,18 +4073,15 @@ public Builder setOperation(com.google.logging.v2.LogEntryOperation value) { return this; } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setOperation(com.google.logging.v2.LogEntryOperation.Builder builderForValue) { + public Builder setOperation( + com.google.logging.v2.LogEntryOperation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { @@ -4568,22 +4092,18 @@ public Builder setOperation(com.google.logging.v2.LogEntryOperation.Builder buil return this; } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOperation(com.google.logging.v2.LogEntryOperation value) { if (operationBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && operation_ != null - && operation_ != com.google.logging.v2.LogEntryOperation.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + operation_ != null && + operation_ != com.google.logging.v2.LogEntryOperation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; @@ -4598,16 +4118,12 @@ public Builder mergeOperation(com.google.logging.v2.LogEntryOperation value) { return this; } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4620,16 +4136,12 @@ public Builder clearOperation() { return this; } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogEntryOperation.Builder getOperationBuilder() { bitField0_ |= 0x00000800; @@ -4637,50 +4149,38 @@ public com.google.logging.v2.LogEntryOperation.Builder getOperationBuilder() { return getOperationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { - return operation_ == null - ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() - : operation_; + return operation_ == null ? + com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } } /** - * - * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntryOperation, - com.google.logging.v2.LogEntryOperation.Builder, - com.google.logging.v2.LogEntryOperationOrBuilder> + com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { - operationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntryOperation, - com.google.logging.v2.LogEntryOperation.Builder, - com.google.logging.v2.LogEntryOperationOrBuilder>( - getOperation(), getParentForChildren(), isClean()); + operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder>( + getOperation(), + getParentForChildren(), + isClean()); operation_ = null; } return operationBuilder_; @@ -4688,8 +4188,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() private java.lang.Object trace_ = ""; /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4703,13 +4201,13 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ public java.lang.String getTrace() { java.lang.Object ref = trace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trace_ = s; return s; @@ -4718,8 +4216,6 @@ public java.lang.String getTrace() { } } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4733,14 +4229,15 @@ public java.lang.String getTrace() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trace. */ - public com.google.protobuf.ByteString getTraceBytes() { + public com.google.protobuf.ByteString + getTraceBytes() { java.lang.Object ref = trace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trace_ = b; return b; } else { @@ -4748,8 +4245,6 @@ public com.google.protobuf.ByteString getTraceBytes() { } } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4763,22 +4258,18 @@ public com.google.protobuf.ByteString getTraceBytes() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The trace to set. * @return This builder for chaining. */ - public Builder setTrace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } trace_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4792,7 +4283,6 @@ public Builder setTrace(java.lang.String value) {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTrace() { @@ -4802,8 +4292,6 @@ public Builder clearTrace() { return this; } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4817,14 +4305,12 @@ public Builder clearTrace() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for trace to set. * @return This builder for chaining. */ - public Builder setTraceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trace_ = value; bitField0_ |= 0x00001000; @@ -4834,8 +4320,6 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) { private java.lang.Object spanId_ = ""; /** - * - * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4870,13 +4354,13 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ public java.lang.String getSpanId() { java.lang.Object ref = spanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanId_ = s; return s; @@ -4885,8 +4369,6 @@ public java.lang.String getSpanId() { } } /** - * - * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4921,14 +4403,15 @@ public java.lang.String getSpanId() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spanId. */ - public com.google.protobuf.ByteString getSpanIdBytes() { + public com.google.protobuf.ByteString + getSpanIdBytes() { java.lang.Object ref = spanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spanId_ = b; return b; } else { @@ -4936,8 +4419,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { } } /** - * - * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4972,22 +4453,18 @@ public com.google.protobuf.ByteString getSpanIdBytes() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The spanId to set. * @return This builder for chaining. */ - public Builder setSpanId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpanId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spanId_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -5022,7 +4499,6 @@ public Builder setSpanId(java.lang.String value) {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpanId() { @@ -5032,8 +4508,6 @@ public Builder clearSpanId() { return this; } /** - * - * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -5068,14 +4542,12 @@ public Builder clearSpanId() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for spanId to set. * @return This builder for chaining. */ - public Builder setSpanIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpanIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spanId_ = value; bitField0_ |= 0x00002000; @@ -5083,10 +4555,8 @@ public Builder setSpanIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean traceSampled_; + private boolean traceSampled_ ; /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5098,7 +4568,6 @@ public Builder setSpanIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -5106,8 +4575,6 @@ public boolean getTraceSampled() { return traceSampled_; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5119,7 +4586,6 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The traceSampled to set. * @return This builder for chaining. */ @@ -5131,8 +4597,6 @@ public Builder setTraceSampled(boolean value) { return this; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5144,7 +4608,6 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTraceSampled() { @@ -5156,61 +4619,42 @@ public Builder clearTraceSampled() { private com.google.logging.v2.LogEntrySourceLocation sourceLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, - com.google.logging.v2.LogEntrySourceLocation.Builder, - com.google.logging.v2.LogEntrySourceLocationOrBuilder> - sourceLocationBuilder_; + com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder> sourceLocationBuilder_; /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sourceLocation field is set. */ public boolean hasSourceLocation() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The sourceLocation. */ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { if (sourceLocationBuilder_ == null) { - return sourceLocation_ == null - ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() - : sourceLocation_; + return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } else { return sourceLocationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSourceLocation(com.google.logging.v2.LogEntrySourceLocation value) { if (sourceLocationBuilder_ == null) { @@ -5226,16 +4670,12 @@ public Builder setSourceLocation(com.google.logging.v2.LogEntrySourceLocation va return this; } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSourceLocation( com.google.logging.v2.LogEntrySourceLocation.Builder builderForValue) { @@ -5249,23 +4689,18 @@ public Builder setSourceLocation( return this; } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSourceLocation(com.google.logging.v2.LogEntrySourceLocation value) { if (sourceLocationBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && sourceLocation_ != null - && sourceLocation_ - != com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + sourceLocation_ != null && + sourceLocation_ != com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance()) { getSourceLocationBuilder().mergeFrom(value); } else { sourceLocation_ = value; @@ -5280,16 +4715,12 @@ public Builder mergeSourceLocation(com.google.logging.v2.LogEntrySourceLocation return this; } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSourceLocation() { bitField0_ = (bitField0_ & ~0x00008000); @@ -5302,16 +4733,12 @@ public Builder clearSourceLocation() { return this; } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogEntrySourceLocation.Builder getSourceLocationBuilder() { bitField0_ |= 0x00008000; @@ -5319,50 +4746,38 @@ public com.google.logging.v2.LogEntrySourceLocation.Builder getSourceLocationBui return getSourceLocationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder() { if (sourceLocationBuilder_ != null) { return sourceLocationBuilder_.getMessageOrBuilder(); } else { - return sourceLocation_ == null - ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() - : sourceLocation_; + return sourceLocation_ == null ? + com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } } /** - * - * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, - com.google.logging.v2.LogEntrySourceLocation.Builder, - com.google.logging.v2.LogEntrySourceLocationOrBuilder> + com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder> getSourceLocationFieldBuilder() { if (sourceLocationBuilder_ == null) { - sourceLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, - com.google.logging.v2.LogEntrySourceLocation.Builder, - com.google.logging.v2.LogEntrySourceLocationOrBuilder>( - getSourceLocation(), getParentForChildren(), isClean()); + sourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder>( + getSourceLocation(), + getParentForChildren(), + isClean()); sourceLocation_ = null; } return sourceLocationBuilder_; @@ -5370,37 +4785,26 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr private com.google.logging.v2.LogSplit split_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, - com.google.logging.v2.LogSplit.Builder, - com.google.logging.v2.LogSplitOrBuilder> - splitBuilder_; + com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder> splitBuilder_; /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the split field is set. */ public boolean hasSplit() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; * @return The split. */ public com.google.logging.v2.LogSplit getSplit() { @@ -5411,15 +4815,12 @@ public com.google.logging.v2.LogSplit getSplit() { } } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSplit(com.google.logging.v2.LogSplit value) { if (splitBuilder_ == null) { @@ -5435,17 +4836,15 @@ public Builder setSplit(com.google.logging.v2.LogSplit value) { return this; } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) { + public Builder setSplit( + com.google.logging.v2.LogSplit.Builder builderForValue) { if (splitBuilder_ == null) { split_ = builderForValue.build(); } else { @@ -5456,21 +4855,18 @@ public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) return this; } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSplit(com.google.logging.v2.LogSplit value) { if (splitBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && split_ != null - && split_ != com.google.logging.v2.LogSplit.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + split_ != null && + split_ != com.google.logging.v2.LogSplit.getDefaultInstance()) { getSplitBuilder().mergeFrom(value); } else { split_ = value; @@ -5485,15 +4881,12 @@ public Builder mergeSplit(com.google.logging.v2.LogSplit value) { return this; } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSplit() { bitField0_ = (bitField0_ & ~0x00010000); @@ -5506,15 +4899,12 @@ public Builder clearSplit() { return this; } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { bitField0_ |= 0x00010000; @@ -5522,53 +4912,45 @@ public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { return getSplitFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { if (splitBuilder_ != null) { return splitBuilder_.getMessageOrBuilder(); } else { - return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + return split_ == null ? + com.google.logging.v2.LogSplit.getDefaultInstance() : split_; } } /** - * - * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, - com.google.logging.v2.LogSplit.Builder, - com.google.logging.v2.LogSplitOrBuilder> + com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder> getSplitFieldBuilder() { if (splitBuilder_ == null) { - splitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, - com.google.logging.v2.LogSplit.Builder, - com.google.logging.v2.LogSplitOrBuilder>( - getSplit(), getParentForChildren(), isClean()); + splitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder>( + getSplit(), + getParentForChildren(), + isClean()); split_ = null; } return splitBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5578,12 +4960,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntry) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntry) private static final com.google.logging.v2.LogEntry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntry(); } @@ -5592,27 +4974,27 @@ public static com.google.logging.v2.LogEntry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5627,4 +5009,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java index be582468b..4d021d46a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Additional information about a potentially long-running operation with which
  * a log entry is associated.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.logging.v2.LogEntryOperation}
  */
-public final class LogEntryOperation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogEntryOperation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntryOperation)
     LogEntryOperationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogEntryOperation.newBuilder() to construct.
   private LogEntryOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogEntryOperation() {
     id_ = "";
     producer_ = "";
@@ -46,39 +28,34 @@ private LogEntryOperation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogEntryOperation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogEntryOperation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogEntryOperation.class,
-            com.google.logging.v2.LogEntryOperation.Builder.class);
+            com.google.logging.v2.LogEntryOperation.class, com.google.logging.v2.LogEntryOperation.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object id_ = "";
   /**
-   *
-   *
    * 
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ @java.lang.Override @@ -87,30 +64,30 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -119,12 +96,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int PRODUCER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object producer_ = ""; /** - * - * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -132,7 +106,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The producer. */ @java.lang.Override @@ -141,15 +114,14 @@ public java.lang.String getProducer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producer_ = s; return s; } } /** - * - * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -157,15 +129,16 @@ public java.lang.String getProducer() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for producer. */ @java.lang.Override - public com.google.protobuf.ByteString getProducerBytes() { + public com.google.protobuf.ByteString + getProducerBytes() { java.lang.Object ref = producer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); producer_ = b; return b; } else { @@ -176,14 +149,11 @@ public com.google.protobuf.ByteString getProducerBytes() { public static final int FIRST_FIELD_NUMBER = 3; private boolean first_ = false; /** - * - * *
    * Optional. Set this to True if this is the first log entry in the operation.
    * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The first. */ @java.lang.Override @@ -194,14 +164,11 @@ public boolean getFirst() { public static final int LAST_FIELD_NUMBER = 4; private boolean last_ = false; /** - * - * *
    * Optional. Set this to True if this is the last log entry in the operation.
    * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The last. */ @java.lang.Override @@ -210,7 +177,6 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -251,10 +218,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producer_); } if (first_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, first_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, first_); } if (last_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, last_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, last_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,17 +233,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogEntryOperation)) { return super.equals(obj); } com.google.logging.v2.LogEntryOperation other = (com.google.logging.v2.LogEntryOperation) obj; - if (!getId().equals(other.getId())) return false; - if (!getProducer().equals(other.getProducer())) return false; - if (getFirst() != other.getFirst()) return false; - if (getLast() != other.getLast()) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getProducer() + .equals(other.getProducer())) return false; + if (getFirst() + != other.getFirst()) return false; + if (getLast() + != other.getLast()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,112 +264,109 @@ public int hashCode() { hash = (37 * hash) + PRODUCER_FIELD_NUMBER; hash = (53 * hash) + getProducer().hashCode(); hash = (37 * hash) + FIRST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirst()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFirst()); hash = (37 * hash) + LAST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLast()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLast()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.LogEntryOperation parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogEntryOperation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntryOperation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntryOperation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogEntryOperation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogEntryOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Additional information about a potentially long-running operation with which
    * a log entry is associated.
@@ -404,32 +374,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogEntryOperation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntryOperation)
       com.google.logging.v2.LogEntryOperationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntryOperation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogEntryOperation.class,
-              com.google.logging.v2.LogEntryOperation.Builder.class);
+              com.google.logging.v2.LogEntryOperation.class, com.google.logging.v2.LogEntryOperation.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogEntryOperation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +413,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntryOperation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
     }
 
     @java.lang.Override
@@ -463,11 +434,8 @@ public com.google.logging.v2.LogEntryOperation build() {
 
     @java.lang.Override
     public com.google.logging.v2.LogEntryOperation buildPartial() {
-      com.google.logging.v2.LogEntryOperation result =
-          new com.google.logging.v2.LogEntryOperation(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.LogEntryOperation result = new com.google.logging.v2.LogEntryOperation(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -492,39 +460,38 @@ private void buildPartial0(com.google.logging.v2.LogEntryOperation result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogEntryOperation) {
-        return mergeFrom((com.google.logging.v2.LogEntryOperation) other);
+        return mergeFrom((com.google.logging.v2.LogEntryOperation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -575,37 +542,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                id_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                producer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                first_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                last_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              id_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              producer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              first_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              last_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -615,26 +577,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
-     *
-     *
      * 
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -643,22 +602,21 @@ public java.lang.String getId() { } } /** - * - * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -666,37 +624,30 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -706,22 +657,18 @@ public Builder clearId() { return this; } /** - * - * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -731,8 +678,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object producer_ = ""; /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -740,13 +685,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The producer. */ public java.lang.String getProducer() { java.lang.Object ref = producer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producer_ = s; return s; @@ -755,8 +700,6 @@ public java.lang.String getProducer() { } } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -764,14 +707,15 @@ public java.lang.String getProducer() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for producer. */ - public com.google.protobuf.ByteString getProducerBytes() { + public com.google.protobuf.ByteString + getProducerBytes() { java.lang.Object ref = producer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); producer_ = b; return b; } else { @@ -779,8 +723,6 @@ public com.google.protobuf.ByteString getProducerBytes() { } } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -788,22 +730,18 @@ public com.google.protobuf.ByteString getProducerBytes() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The producer to set. * @return This builder for chaining. */ - public Builder setProducer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProducer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } producer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -811,7 +749,6 @@ public Builder setProducer(java.lang.String value) {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProducer() { @@ -821,8 +758,6 @@ public Builder clearProducer() { return this; } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -830,14 +765,12 @@ public Builder clearProducer() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for producer to set. * @return This builder for chaining. */ - public Builder setProducerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProducerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producer_ = value; bitField0_ |= 0x00000002; @@ -845,16 +778,13 @@ public Builder setProducerBytes(com.google.protobuf.ByteString value) { return this; } - private boolean first_; + private boolean first_ ; /** - * - * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The first. */ @java.lang.Override @@ -862,14 +792,11 @@ public boolean getFirst() { return first_; } /** - * - * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The first to set. * @return This builder for chaining. */ @@ -881,14 +808,11 @@ public Builder setFirst(boolean value) { return this; } /** - * - * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFirst() { @@ -898,16 +822,13 @@ public Builder clearFirst() { return this; } - private boolean last_; + private boolean last_ ; /** - * - * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The last. */ @java.lang.Override @@ -915,14 +836,11 @@ public boolean getLast() { return last_; } /** - * - * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The last to set. * @return This builder for chaining. */ @@ -934,14 +852,11 @@ public Builder setLast(boolean value) { return this; } /** - * - * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLast() { @@ -950,9 +865,9 @@ public Builder clearLast() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -962,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntryOperation) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntryOperation) private static final com.google.logging.v2.LogEntryOperation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntryOperation(); } @@ -976,27 +891,27 @@ public static com.google.logging.v2.LogEntryOperation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntryOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntryOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1011,4 +926,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntryOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java index f748137b9..49c3137d9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java @@ -1,59 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntryOperationOrBuilder - extends +public interface LogEntryOperationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntryOperation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -61,13 +38,10 @@ public interface LogEntryOperationOrBuilder
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The producer. */ java.lang.String getProducer(); /** - * - * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -75,33 +49,27 @@ public interface LogEntryOperationOrBuilder
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for producer. */ - com.google.protobuf.ByteString getProducerBytes(); + com.google.protobuf.ByteString + getProducerBytes(); /** - * - * *
    * Optional. Set this to True if this is the first log entry in the operation.
    * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The first. */ boolean getFirst(); /** - * - * *
    * Optional. Set this to True if this is the last log entry in the operation.
    * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The last. */ boolean getLast(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java similarity index 87% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java index 3e684fae0..70646a9b5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntryOrBuilder - extends +public interface LogEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntry) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -54,13 +36,10 @@ public interface LogEntryOrBuilder
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The logName. */ java.lang.String getLogName(); /** - * - * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -88,14 +67,12 @@ public interface LogEntryOrBuilder
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for logName. */ - com.google.protobuf.ByteString getLogNameBytes(); + com.google.protobuf.ByteString + getLogNameBytes(); /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -104,15 +81,11 @@ public interface LogEntryOrBuilder
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -121,15 +94,11 @@ public interface LogEntryOrBuilder
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.api.MonitoredResource getResource(); /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -138,14 +107,11 @@ public interface LogEntryOrBuilder
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; */ com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder(); /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -158,13 +124,10 @@ public interface LogEntryOrBuilder
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ boolean hasProtoPayload(); /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -177,13 +140,10 @@ public interface LogEntryOrBuilder
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return The protoPayload. */ com.google.protobuf.Any getProtoPayload(); /** - * - * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -200,71 +160,55 @@ public interface LogEntryOrBuilder
   com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder();
 
   /**
-   *
-   *
    * 
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** - * - * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return The textPayload. */ java.lang.String getTextPayload(); /** - * - * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; - * * @return The bytes for textPayload. */ - com.google.protobuf.ByteString getTextPayloadBytes(); + com.google.protobuf.ByteString + getTextPayloadBytes(); /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; - * * @return Whether the jsonPayload field is set. */ boolean hasJsonPayload(); /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; - * * @return The jsonPayload. */ com.google.protobuf.Struct getJsonPayload(); /** - * - * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
@@ -275,8 +219,6 @@ public interface LogEntryOrBuilder
   com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -292,15 +234,11 @@ public interface LogEntryOrBuilder
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** - * - * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -316,15 +254,11 @@ public interface LogEntryOrBuilder
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** - * - * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -340,84 +274,59 @@ public interface LogEntryOrBuilder
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the receiveTimestamp field is set. */ boolean hasReceiveTimestamp(); /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The receiveTimestamp. */ com.google.protobuf.Timestamp getReceiveTimestamp(); /** - * - * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder(); /** - * - * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ com.google.logging.type.LogSeverity getSeverity(); /** - * - * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -433,13 +342,10 @@ public interface LogEntryOrBuilder
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The insertId. */ java.lang.String getInsertId(); /** - * - * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -455,58 +361,42 @@ public interface LogEntryOrBuilder
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for insertId. */ - com.google.protobuf.ByteString getInsertIdBytes(); + com.google.protobuf.ByteString + getInsertIdBytes(); /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the httpRequest field is set. */ boolean hasHttpRequest(); /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The httpRequest. */ com.google.logging.type.HttpRequest getHttpRequest(); /** - * - * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder(); /** - * - * *
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -528,8 +418,6 @@ public interface LogEntryOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -549,13 +437,15 @@ public interface LogEntryOrBuilder
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -575,10 +465,9 @@ public interface LogEntryOrBuilder
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -599,13 +488,11 @@ public interface LogEntryOrBuilder
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -625,55 +512,40 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the operation field is set. */ boolean hasOperation(); /** - * - * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The operation. */ com.google.logging.v2.LogEntryOperation getOperation(); /** - * - * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder(); /** - * - * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -687,13 +559,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ java.lang.String getTrace(); /** - * - * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -707,14 +576,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trace. */ - com.google.protobuf.ByteString getTraceBytes(); + com.google.protobuf.ByteString + getTraceBytes(); /** - * - * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -749,13 +616,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ java.lang.String getSpanId(); /** - * - * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -790,14 +654,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spanId. */ - com.google.protobuf.ByteString getSpanIdBytes(); + com.google.protobuf.ByteString + getSpanIdBytes(); /** - * - * *
    * Optional. The sampling decision of the trace associated with the log entry.
    *
@@ -809,84 +671,61 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ boolean getTraceSampled(); /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sourceLocation field is set. */ boolean hasSourceLocation(); /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The sourceLocation. */ com.google.logging.v2.LogEntrySourceLocation getSourceLocation(); /** - * - * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder(); /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the split field is set. */ boolean hasSplit(); /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The split. */ com.google.logging.v2.LogSplit getSplit(); /** - * - * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
new file mode 100644
index 000000000..6337425b1
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
@@ -0,0 +1,157 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/logging/v2/log_entry.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.logging.v2;
+
+public final class LogEntryProto {
+  private LogEntryProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_logging_v2_LogEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_logging_v2_LogEntryOperation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_logging_v2_LogSplit_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogSplit_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/logging/v2/log_entry.proto\022\021goo" +
+      "gle.logging.v2\032\037google/api/field_behavio" +
+      "r.proto\032#google/api/monitored_resource.p" +
+      "roto\032\031google/api/resource.proto\032&google/" +
+      "logging/type/http_request.proto\032&google/" +
+      "logging/type/log_severity.proto\032\031google/" +
+      "protobuf/any.proto\032\034google/protobuf/stru" +
+      "ct.proto\032\037google/protobuf/timestamp.prot" +
+      "o\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" +
+      "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" +
+      "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" +
+      "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" +
+      "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" +
+      "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." +
+      "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" +
+      "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" +
+      "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" +
+      "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" +
+      "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" +
+      "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" +
+      "\0132\'.google.logging.v2.LogEntry.LabelsEnt" +
+      "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" +
+      "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" +
+      " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" +
+      "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" +
+      " \001(\0132).google.logging.v2.LogEntrySourceL" +
+      "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" +
+      "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" +
+      "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" +
+      "ging.googleapis.com/Log\022\035projects/{proje" +
+      "ct}/logs/{log}\022\'organizations/{organizat" +
+      "ion}/logs/{log}\022\033folders/{folder}/logs/{" +
+      "log}\022,billingAccounts/{billing_account}/" +
+      "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" +
+      "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" +
+      "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" +
+      "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" +
+      "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" +
+      "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " +
+      "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" +
+      "B\263\001\n\025com.google.logging.v2B\rLogEntryProt" +
+      "oP\001Z5cloud.google.com/go/logging/apiv2/l" +
+      "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" +
+      "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" +
+      "le::Cloud::Logging::V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.MonitoredResourceProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.logging.type.HttpRequestProto.getDescriptor(),
+          com.google.logging.type.LogSeverityProto.getDescriptor(),
+          com.google.protobuf.AnyProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_logging_v2_LogEntry_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_logging_v2_LogEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_logging_v2_LogEntry_descriptor,
+        new java.lang.String[] { "LogName", "Resource", "ProtoPayload", "TextPayload", "JsonPayload", "Timestamp", "ReceiveTimestamp", "Severity", "InsertId", "HttpRequest", "Labels", "Operation", "Trace", "SpanId", "TraceSampled", "SourceLocation", "Split", "Payload", });
+    internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor =
+      internal_static_google_logging_v2_LogEntry_descriptor.getNestedTypes().get(0);
+    internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_logging_v2_LogEntryOperation_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_logging_v2_LogEntryOperation_descriptor,
+        new java.lang.String[] { "Id", "Producer", "First", "Last", });
+    internal_static_google_logging_v2_LogEntrySourceLocation_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_logging_v2_LogEntrySourceLocation_descriptor,
+        new java.lang.String[] { "File", "Line", "Function", });
+    internal_static_google_logging_v2_LogSplit_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_logging_v2_LogSplit_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_logging_v2_LogSplit_descriptor,
+        new java.lang.String[] { "Uid", "Index", "TotalSplits", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.MonitoredResourceProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.logging.type.HttpRequestProto.getDescriptor();
+    com.google.logging.type.LogSeverityProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
index bb291e86d..f146f11d2 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
@@ -1,27 +1,10 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/log_entry.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * Additional information about the source code location that produced the log
  * entry.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.logging.v2.LogEntrySourceLocation}
  */
-public final class LogEntrySourceLocation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogEntrySourceLocation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntrySourceLocation)
     LogEntrySourceLocationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogEntrySourceLocation.newBuilder() to construct.
   private LogEntrySourceLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogEntrySourceLocation() {
     file_ = "";
     function_ = "";
@@ -46,39 +28,34 @@ private LogEntrySourceLocation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogEntrySourceLocation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogEntrySourceLocation.class,
-            com.google.logging.v2.LogEntrySourceLocation.Builder.class);
+            com.google.logging.v2.LogEntrySourceLocation.class, com.google.logging.v2.LogEntrySourceLocation.Builder.class);
   }
 
   public static final int FILE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object file_ = "";
   /**
-   *
-   *
    * 
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The file. */ @java.lang.Override @@ -87,30 +64,30 @@ public java.lang.String getFile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; } } /** - * - * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for file. */ @java.lang.Override - public com.google.protobuf.ByteString getFileBytes() { + public com.google.protobuf.ByteString + getFileBytes() { java.lang.Object ref = file_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); file_ = b; return b; } else { @@ -121,15 +98,12 @@ public com.google.protobuf.ByteString getFileBytes() { public static final int LINE_FIELD_NUMBER = 2; private long line_ = 0L; /** - * - * *
    * Optional. Line within the source file. 1-based; 0 indicates no line number
    * available.
    * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The line. */ @java.lang.Override @@ -138,12 +112,9 @@ public long getLine() { } public static final int FUNCTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object function_ = ""; /** - * - * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -154,7 +125,6 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The function. */ @java.lang.Override @@ -163,15 +133,14 @@ public java.lang.String getFunction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; } } /** - * - * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -182,15 +151,16 @@ public java.lang.String getFunction() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for function. */ @java.lang.Override - public com.google.protobuf.ByteString getFunctionBytes() { + public com.google.protobuf.ByteString + getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); function_ = b; return b; } else { @@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getFunctionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(file_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); } @@ -234,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, file_); } if (line_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, line_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, line_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, function_); @@ -247,17 +218,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogEntrySourceLocation)) { return super.equals(obj); } - com.google.logging.v2.LogEntrySourceLocation other = - (com.google.logging.v2.LogEntrySourceLocation) obj; + com.google.logging.v2.LogEntrySourceLocation other = (com.google.logging.v2.LogEntrySourceLocation) obj; - if (!getFile().equals(other.getFile())) return false; - if (getLine() != other.getLine()) return false; - if (!getFunction().equals(other.getFunction())) return false; + if (!getFile() + .equals(other.getFile())) return false; + if (getLine() + != other.getLine()) return false; + if (!getFunction() + .equals(other.getFunction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,7 +245,8 @@ public int hashCode() { hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLine()); hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -280,104 +254,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogEntrySourceLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Additional information about the source code location that produced the log
    * entry.
@@ -385,32 +354,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogEntrySourceLocation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntrySourceLocation)
       com.google.logging.v2.LogEntrySourceLocationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogEntrySourceLocation.class,
-              com.google.logging.v2.LogEntrySourceLocation.Builder.class);
+              com.google.logging.v2.LogEntrySourceLocation.class, com.google.logging.v2.LogEntrySourceLocation.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogEntrySourceLocation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +392,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
     }
 
     @java.lang.Override
@@ -443,11 +413,8 @@ public com.google.logging.v2.LogEntrySourceLocation build() {
 
     @java.lang.Override
     public com.google.logging.v2.LogEntrySourceLocation buildPartial() {
-      com.google.logging.v2.LogEntrySourceLocation result =
-          new com.google.logging.v2.LogEntrySourceLocation(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.LogEntrySourceLocation result = new com.google.logging.v2.LogEntrySourceLocation(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -469,39 +436,38 @@ private void buildPartial0(com.google.logging.v2.LogEntrySourceLocation result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogEntrySourceLocation) {
-        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation) other);
+        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,31 +515,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                file_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                line_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                function_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              file_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              line_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              function_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -583,26 +545,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object file_ = "";
     /**
-     *
-     *
      * 
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The file. */ public java.lang.String getFile() { java.lang.Object ref = file_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; @@ -611,22 +570,21 @@ public java.lang.String getFile() { } } /** - * - * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for file. */ - public com.google.protobuf.ByteString getFileBytes() { + public com.google.protobuf.ByteString + getFileBytes() { java.lang.Object ref = file_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); file_ = b; return b; } else { @@ -634,37 +592,30 @@ public com.google.protobuf.ByteString getFileBytes() { } } /** - * - * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The file to set. * @return This builder for chaining. */ - public Builder setFile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFile( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } file_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFile() { @@ -674,22 +625,18 @@ public Builder clearFile() { return this; } /** - * - * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for file to set. * @return This builder for chaining. */ - public Builder setFileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); file_ = value; bitField0_ |= 0x00000001; @@ -697,17 +644,14 @@ public Builder setFileBytes(com.google.protobuf.ByteString value) { return this; } - private long line_; + private long line_ ; /** - * - * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The line. */ @java.lang.Override @@ -715,15 +659,12 @@ public long getLine() { return line_; } /** - * - * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The line to set. * @return This builder for chaining. */ @@ -735,15 +676,12 @@ public Builder setLine(long value) { return this; } /** - * - * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLine() { @@ -755,8 +693,6 @@ public Builder clearLine() { private java.lang.Object function_ = ""; /** - * - * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -767,13 +703,13 @@ public Builder clearLine() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; @@ -782,8 +718,6 @@ public java.lang.String getFunction() { } } /** - * - * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -794,14 +728,15 @@ public java.lang.String getFunction() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for function. */ - public com.google.protobuf.ByteString getFunctionBytes() { + public com.google.protobuf.ByteString + getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); function_ = b; return b; } else { @@ -809,8 +744,6 @@ public com.google.protobuf.ByteString getFunctionBytes() { } } /** - * - * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -821,22 +754,18 @@ public com.google.protobuf.ByteString getFunctionBytes() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The function to set. * @return This builder for chaining. */ - public Builder setFunction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFunction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } function_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -847,7 +776,6 @@ public Builder setFunction(java.lang.String value) {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFunction() { @@ -857,8 +785,6 @@ public Builder clearFunction() { return this; } /** - * - * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -869,23 +795,21 @@ public Builder clearFunction() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for function to set. * @return This builder for chaining. */ - public Builder setFunctionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFunctionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); function_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntrySourceLocation) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntrySourceLocation) private static final com.google.logging.v2.LogEntrySourceLocation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntrySourceLocation(); } @@ -909,27 +833,27 @@ public static com.google.logging.v2.LogEntrySourceLocation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntrySourceLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntrySourceLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +868,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntrySourceLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java index baa0c6af4..38d4bd198 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java @@ -1,73 +1,47 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntrySourceLocationOrBuilder - extends +public interface LogEntrySourceLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntrySourceLocation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The file. */ java.lang.String getFile(); /** - * - * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for file. */ - com.google.protobuf.ByteString getFileBytes(); + com.google.protobuf.ByteString + getFileBytes(); /** - * - * *
    * Optional. Line within the source file. 1-based; 0 indicates no line number
    * available.
    * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The line. */ long getLine(); /** - * - * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -78,13 +52,10 @@ public interface LogEntrySourceLocationOrBuilder
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The function. */ java.lang.String getFunction(); /** - * - * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -95,8 +66,8 @@ public interface LogEntrySourceLocationOrBuilder
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for function. */ - com.google.protobuf.ByteString getFunctionBytes(); + com.google.protobuf.ByteString + getFunctionBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java index aa14bb05f..4b8aab37c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Specifies a set of log entries that are filtered out by a sink. If
  * your Google Cloud resource receives a large volume of log entries, you can
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.logging.v2.LogExclusion}
  */
-public final class LogExclusion extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogExclusion extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogExclusion)
     LogExclusionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogExclusion.newBuilder() to construct.
   private LogExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogExclusion() {
     name_ = "";
     description_ = "";
@@ -50,33 +32,29 @@ private LogExclusion() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogExclusion();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_LogExclusion_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogExclusion.class,
-            com.google.logging.v2.LogExclusion.Builder.class);
+            com.google.logging.v2.LogExclusion.class, com.google.logging.v2.LogExclusion.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -85,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -94,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -111,15 +87,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,18 +105,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -148,29 +121,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -179,12 +152,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -231,15 +199,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -250,8 +219,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DISABLED_FIELD_NUMBER = 4; private boolean disabled_ = false; /** - * - * *
    * Optional. If set to True, then this exclusion is disabled and it does not
    * exclude any log entries. You can [update an
@@ -260,7 +227,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -271,17 +237,13 @@ public boolean getDisabled() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -289,17 +251,13 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -307,16 +265,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -326,17 +281,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -344,17 +295,13 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -362,16 +309,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -379,7 +323,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +334,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -429,13 +373,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, disabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -445,24 +392,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogExclusion)) { return super.equals(obj); } com.google.logging.v2.LogExclusion other = (com.google.logging.v2.LogExclusion) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getDisabled() != other.getDisabled()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getDisabled() + != other.getDisabled()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -482,7 +435,8 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -496,103 +450,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogExclusion parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogExclusion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogExclusion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LogExclusion parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LogExclusion parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogExclusion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogExclusion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogExclusion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogExclusion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogExclusion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogExclusion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogExclusion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogExclusion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogExclusion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogExclusion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies a set of log entries that are filtered out by a sink. If
    * your Google Cloud resource receives a large volume of log entries, you can
@@ -603,23 +553,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogExclusion}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogExclusion)
       com.google.logging.v2.LogExclusionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogExclusion_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogExclusion.class,
-              com.google.logging.v2.LogExclusion.Builder.class);
+              com.google.logging.v2.LogExclusion.class, com.google.logging.v2.LogExclusion.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogExclusion.newBuilder()
@@ -627,18 +575,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -661,9 +609,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogExclusion_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
     }
 
     @java.lang.Override
@@ -683,9 +631,7 @@ public com.google.logging.v2.LogExclusion build() {
     @java.lang.Override
     public com.google.logging.v2.LogExclusion buildPartial() {
       com.google.logging.v2.LogExclusion result = new com.google.logging.v2.LogExclusion(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -706,11 +652,15 @@ private void buildPartial0(com.google.logging.v2.LogExclusion result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -720,39 +670,38 @@ private void buildPartial0(com.google.logging.v2.LogExclusion result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogExclusion) {
-        return mergeFrom((com.google.logging.v2.LogExclusion) other);
+        return mergeFrom((com.google.logging.v2.LogExclusion)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -811,49 +760,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                disabled_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              disabled_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -863,13 +809,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -878,13 +821,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -893,8 +836,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -903,14 +844,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -918,8 +860,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -928,22 +868,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -952,7 +888,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -962,8 +897,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -972,14 +905,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -989,20 +920,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1011,21 +940,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1033,35 +961,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1071,21 +992,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1095,8 +1012,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1111,13 +1026,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1126,8 +1041,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1142,14 +1055,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1157,8 +1071,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1173,22 +1085,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1203,7 +1111,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1213,8 +1120,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1229,14 +1134,12 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -1244,10 +1147,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean disabled_; + private boolean disabled_ ; /** - * - * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1256,7 +1157,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -1264,8 +1164,6 @@ public boolean getDisabled() { return disabled_; } /** - * - * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1274,7 +1172,6 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disabled to set. * @return This builder for chaining. */ @@ -1286,8 +1183,6 @@ public Builder setDisabled(boolean value) { return this; } /** - * - * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1296,7 +1191,6 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -1308,64 +1202,45 @@ public Builder clearDisabled() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1381,19 +1256,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1404,23 +1276,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1435,17 +1303,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1458,17 +1322,13 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1476,52 +1336,40 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1529,64 +1377,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1602,19 +1431,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1625,23 +1451,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1656,17 +1478,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1679,17 +1497,13 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1697,59 +1511,47 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1759,12 +1561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogExclusion) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogExclusion) private static final com.google.logging.v2.LogExclusion DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogExclusion(); } @@ -1773,27 +1575,27 @@ public static com.google.logging.v2.LogExclusion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogExclusion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogExclusion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1808,4 +1610,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogExclusion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java index 4cb408537..420c8cd0a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogExclusionOrBuilder - extends +public interface LogExclusionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogExclusion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -35,13 +17,10 @@ public interface LogExclusionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -50,39 +29,32 @@ public interface LogExclusionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -97,13 +69,10 @@ public interface LogExclusionOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -118,14 +87,12 @@ public interface LogExclusionOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. If set to True, then this exclusion is disabled and it does not
    * exclude any log entries. You can [update an
@@ -134,96 +101,73 @@ public interface LogExclusionOrBuilder
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ boolean getDisabled(); /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java index 5e03027fa..25b13295a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a logs-based metric. The value of the metric is the number of log
  * entries that match a logs filter in a given time interval.
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.logging.v2.LogMetric}
  */
-public final class LogMetric extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogMetric extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogMetric)
     LogMetricOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogMetric.newBuilder() to construct.
   private LogMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogMetric() {
     name_ = "";
     description_ = "";
@@ -55,13 +37,14 @@ private LogMetric() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogMetric();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingMetricsProto
-        .internal_static_google_logging_v2_LogMetric_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -72,32 +55,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 7:
         return internalGetLabelExtractors();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingMetricsProto
-        .internal_static_google_logging_v2_LogMetric_fieldAccessorTable
+    return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogMetric.class, com.google.logging.v2.LogMetric.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Logging API version.
    * 
* * Protobuf enum {@code google.logging.v2.LogMetric.ApiVersion} */ - public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Logging API v2.
      * 
@@ -106,8 +85,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ V2(0), /** - * - * *
      * Logging API v1.
      * 
@@ -119,8 +96,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Logging API v2.
      * 
@@ -129,8 +104,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 0; /** - * - * *
      * Logging API v1.
      * 
@@ -139,6 +112,7 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V1_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,47 +137,48 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: - return V2; - case 1: - return V1; - default: - return null; + case 0: return V2; + case 1: return V1; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ApiVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApiVersion findValueByNumber(int number) { + return ApiVersion.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.logging.v2.LogMetric.getDescriptor().getEnumTypes().get(0); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -222,12 +197,9 @@ private ApiVersion(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -245,7 +217,6 @@ private ApiVersion(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -254,15 +225,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -280,15 +250,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -297,19 +268,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -318,30 +285,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -350,12 +317,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -367,7 +331,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -376,15 +339,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -396,15 +358,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -413,12 +376,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int BUCKET_NAME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object bucketName_ = ""; /** - * - * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -432,7 +392,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bucketName. */ @java.lang.Override @@ -441,15 +400,14 @@ public java.lang.String getBucketName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; } } /** - * - * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -463,15 +421,16 @@ public java.lang.String getBucketName() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bucketName. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketNameBytes() { + public com.google.protobuf.ByteString + getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketName_ = b; return b; } else { @@ -482,15 +441,12 @@ public com.google.protobuf.ByteString getBucketNameBytes() { public static final int DISABLED_FIELD_NUMBER = 12; private boolean disabled_ = false; /** - * - * *
    * Optional. If set to True, then this metric is disabled and it does not
    * generate any points.
    * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -501,8 +457,6 @@ public boolean getDisabled() { public static final int METRIC_DESCRIPTOR_FIELD_NUMBER = 5; private com.google.api.MetricDescriptor metricDescriptor_; /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -527,10 +481,7 @@ public boolean getDisabled() {
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metricDescriptor field is set. */ @java.lang.Override @@ -538,8 +489,6 @@ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -564,21 +513,14 @@ public boolean hasMetricDescriptor() {
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The metricDescriptor. */ @java.lang.Override public com.google.api.MetricDescriptor getMetricDescriptor() { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -603,24 +545,17 @@ public com.google.api.MetricDescriptor getMetricDescriptor() {
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } public static final int VALUE_EXTRACTOR_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object valueExtractor_ = ""; /** - * - * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -645,7 +580,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The valueExtractor. */ @java.lang.Override @@ -654,15 +588,14 @@ public java.lang.String getValueExtractor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueExtractor_ = s; return s; } } /** - * - * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -687,15 +620,16 @@ public java.lang.String getValueExtractor() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for valueExtractor. */ @java.lang.Override - public com.google.protobuf.ByteString getValueExtractorBytes() { + public com.google.protobuf.ByteString + getValueExtractorBytes() { java.lang.Object ref = valueExtractor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); valueExtractor_ = b; return b; } else { @@ -704,36 +638,32 @@ public com.google.protobuf.ByteString getValueExtractorBytes() { } public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 7; - private static final class LabelExtractorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labelExtractors_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labelExtractors_; private com.google.protobuf.MapField - internalGetLabelExtractors() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); } return labelExtractors_; } - public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -751,25 +681,23 @@ public int getLabelExtractorsCount() {
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabelExtractors().getMap().containsKey(key); } - /** Use {@link #getLabelExtractorsMap()} instead. */ + /** + * Use {@link #getLabelExtractorsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelExtractors() { return getLabelExtractorsMap(); } /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -787,16 +715,13 @@ public java.util.Map getLabelExtractors() {
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelExtractorsMap() { return internalGetLabelExtractors().getMap(); } /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -814,23 +739,20 @@ public java.util.Map getLabelExtractorsMap()
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelExtractorsOrDefault( + public /* nullable */ +java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabelExtractors().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -848,15 +770,14 @@ public java.util.Map getLabelExtractorsMap()
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -866,18 +787,13 @@ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { public static final int BUCKET_OPTIONS_FIELD_NUMBER = 8; private com.google.api.Distribution.BucketOptions bucketOptions_; /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bucketOptions field is set. */ @java.lang.Override @@ -885,60 +801,43 @@ public boolean hasBucketOptions() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The bucketOptions. */ @java.lang.Override public com.google.api.Distribution.BucketOptions getBucketOptions() { - return bucketOptions_ == null - ? com.google.api.Distribution.BucketOptions.getDefaultInstance() - : bucketOptions_; + return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; } /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() { - return bucketOptions_ == null - ? com.google.api.Distribution.BucketOptions.getDefaultInstance() - : bucketOptions_; + return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -946,17 +845,13 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -964,16 +859,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -983,17 +875,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1001,17 +889,13 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1019,16 +903,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1038,48 +919,36 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private int version_ = 0; /** - * - * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Override - @java.lang.Deprecated - public int getVersionValue() { + @java.lang.Override @java.lang.Deprecated public int getVersionValue() { return version_; } /** - * - * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogMetric.ApiVersion getVersion() { - com.google.logging.v2.LogMetric.ApiVersion result = - com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); + @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); return result == null ? com.google.logging.v2.LogMetric.ApiVersion.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1091,7 +960,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1110,8 +980,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueExtractor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, valueExtractor_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabelExtractors(), LabelExtractorsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabelExtractors(), + LabelExtractorsDefaultEntryHolder.defaultEntry, + 7); if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getBucketOptions()); } @@ -1146,35 +1020,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (version_ != com.google.logging.v2.LogMetric.ApiVersion.V2.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, version_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, version_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetricDescriptor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMetricDescriptor()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueExtractor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, valueExtractor_); } - for (java.util.Map.Entry entry : - internalGetLabelExtractors().getMap().entrySet()) { - com.google.protobuf.MapEntry labelExtractors__ = - LabelExtractorsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labelExtractors__); + for (java.util.Map.Entry entry + : internalGetLabelExtractors().getMap().entrySet()) { + com.google.protobuf.MapEntry + labelExtractors__ = LabelExtractorsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labelExtractors__); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBucketOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getBucketOptions()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, disabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, bucketName_); @@ -1187,35 +1067,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogMetric)) { return super.equals(obj); } com.google.logging.v2.LogMetric other = (com.google.logging.v2.LogMetric) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getBucketName().equals(other.getBucketName())) return false; - if (getDisabled() != other.getDisabled()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getBucketName() + .equals(other.getBucketName())) return false; + if (getDisabled() + != other.getDisabled()) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { - if (!getMetricDescriptor().equals(other.getMetricDescriptor())) return false; + if (!getMetricDescriptor() + .equals(other.getMetricDescriptor())) return false; } - if (!getValueExtractor().equals(other.getValueExtractor())) return false; - if (!internalGetLabelExtractors().equals(other.internalGetLabelExtractors())) return false; + if (!getValueExtractor() + .equals(other.getValueExtractor())) return false; + if (!internalGetLabelExtractors().equals( + other.internalGetLabelExtractors())) return false; if (hasBucketOptions() != other.hasBucketOptions()) return false; if (hasBucketOptions()) { - if (!getBucketOptions().equals(other.getBucketOptions())) return false; + if (!getBucketOptions() + .equals(other.getBucketOptions())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (version_ != other.version_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1238,7 +1129,8 @@ public int hashCode() { hash = (37 * hash) + BUCKET_NAME_FIELD_NUMBER; hash = (53 * hash) + getBucketName().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); if (hasMetricDescriptor()) { hash = (37 * hash) + METRIC_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getMetricDescriptor().hashCode(); @@ -1268,103 +1160,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogMetric parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogMetric parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogMetric parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LogMetric parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LogMetric parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogMetric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogMetric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogMetric parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogMetric parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogMetric parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogMetric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogMetric parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogMetric prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a logs-based metric. The value of the metric is the number of log
    * entries that match a logs filter in a given time interval.
@@ -1377,13 +1265,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogMetric}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogMetric)
       com.google.logging.v2.LogMetricOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingMetricsProto
-          .internal_static_google_logging_v2_LogMetric_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -1393,10 +1281,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 7:
           return internalGetLabelExtractors();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -1404,15 +1292,14 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 7:
           return internalGetMutableLabelExtractors();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingMetricsProto
-          .internal_static_google_logging_v2_LogMetric_fieldAccessorTable
+      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogMetric.class, com.google.logging.v2.LogMetric.Builder.class);
     }
@@ -1422,20 +1309,20 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getMetricDescriptorFieldBuilder();
         getBucketOptionsFieldBuilder();
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1472,9 +1359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingMetricsProto
-          .internal_static_google_logging_v2_LogMetric_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
     }
 
     @java.lang.Override
@@ -1494,9 +1381,7 @@ public com.google.logging.v2.LogMetric build() {
     @java.lang.Override
     public com.google.logging.v2.LogMetric buildPartial() {
       com.google.logging.v2.LogMetric result = new com.google.logging.v2.LogMetric(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1520,8 +1405,9 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.metricDescriptor_ =
-            metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build();
+        result.metricDescriptor_ = metricDescriptorBuilder_ == null
+            ? metricDescriptor_
+            : metricDescriptorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
@@ -1532,16 +1418,21 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
         result.labelExtractors_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.bucketOptions_ =
-            bucketOptionsBuilder_ == null ? bucketOptions_ : bucketOptionsBuilder_.build();
+        result.bucketOptions_ = bucketOptionsBuilder_ == null
+            ? bucketOptions_
+            : bucketOptionsBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
@@ -1554,39 +1445,38 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogMetric) {
-        return mergeFrom((com.google.logging.v2.LogMetric) other);
+        return mergeFrom((com.google.logging.v2.LogMetric)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1626,7 +1516,8 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
         bitField0_ |= 0x00000040;
         onChanged();
       }
-      internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors());
+      internalGetMutableLabelExtractors().mergeFrom(
+          other.internalGetLabelExtractors());
       bitField0_ |= 0x00000080;
       if (other.hasBucketOptions()) {
         mergeBucketOptions(other.getBucketOptions());
@@ -1666,92 +1557,84 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                version_ = input.readEnum();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(
-                    getMetricDescriptorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 50:
-              {
-                valueExtractor_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.protobuf.MapEntry labelExtractors__ =
-                    input.readMessage(
-                        LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabelExtractors()
-                    .getMutableMap()
-                    .put(labelExtractors__.getKey(), labelExtractors__.getValue());
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getBucketOptionsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 96:
-              {
-                disabled_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 96
-            case 106:
-              {
-                bucketName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 106
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              version_ = input.readEnum();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getMetricDescriptorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 50: {
+              valueExtractor_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              com.google.protobuf.MapEntry
+              labelExtractors__ = input.readMessage(
+                  LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabelExtractors().getMutableMap().put(
+                  labelExtractors__.getKey(), labelExtractors__.getValue());
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getBucketOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 96: {
+              disabled_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 96
+            case 106: {
+              bucketName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 106
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1761,13 +1644,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1785,13 +1665,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1800,8 +1680,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1819,14 +1697,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1834,8 +1713,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1853,22 +1730,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1886,7 +1759,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1896,8 +1768,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1915,14 +1785,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1932,21 +1800,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1955,22 +1821,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1978,37 +1843,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2018,22 +1876,18 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -2043,8 +1897,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2056,13 +1908,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -2071,8 +1923,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2084,14 +1934,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -2099,8 +1950,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2112,22 +1961,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2139,7 +1984,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -2149,8 +1993,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2162,14 +2004,12 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -2179,8 +2019,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object bucketName_ = ""; /** - * - * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2194,13 +2032,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bucketName. */ public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; @@ -2209,8 +2047,6 @@ public java.lang.String getBucketName() { } } /** - * - * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2224,14 +2060,15 @@ public java.lang.String getBucketName() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bucketName. */ - public com.google.protobuf.ByteString getBucketNameBytes() { + public com.google.protobuf.ByteString + getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketName_ = b; return b; } else { @@ -2239,8 +2076,6 @@ public com.google.protobuf.ByteString getBucketNameBytes() { } } /** - * - * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2254,22 +2089,18 @@ public com.google.protobuf.ByteString getBucketNameBytes() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bucketName to set. * @return This builder for chaining. */ - public Builder setBucketName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2283,7 +2114,6 @@ public Builder setBucketName(java.lang.String value) {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -2293,8 +2123,6 @@ public Builder clearBucketName() { return this; } /** - * - * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2308,14 +2136,12 @@ public Builder clearBucketName() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for bucketName to set. * @return This builder for chaining. */ - public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketName_ = value; bitField0_ |= 0x00000008; @@ -2323,17 +2149,14 @@ public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean disabled_; + private boolean disabled_ ; /** - * - * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -2341,15 +2164,12 @@ public boolean getDisabled() { return disabled_; } /** - * - * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disabled to set. * @return This builder for chaining. */ @@ -2361,15 +2181,12 @@ public Builder setDisabled(boolean value) { return this; } /** - * - * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -2381,13 +2198,8 @@ public Builder clearDisabled() { private com.google.api.MetricDescriptor metricDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder> - metricDescriptorBuilder_; + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorBuilder_; /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2412,18 +2224,13 @@ public Builder clearDisabled() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2448,24 +2255,17 @@ public boolean hasMetricDescriptor() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The metricDescriptor. */ public com.google.api.MetricDescriptor getMetricDescriptor() { if (metricDescriptorBuilder_ == null) { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } else { return metricDescriptorBuilder_.getMessage(); } } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2490,9 +2290,7 @@ public com.google.api.MetricDescriptor getMetricDescriptor() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { @@ -2508,8 +2306,6 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2534,11 +2330,10 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder setMetricDescriptor( + com.google.api.MetricDescriptor.Builder builderForValue) { if (metricDescriptorBuilder_ == null) { metricDescriptor_ = builderForValue.build(); } else { @@ -2549,8 +2344,6 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build return this; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2575,15 +2368,13 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && metricDescriptor_ != null - && metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + metricDescriptor_ != null && + metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { getMetricDescriptorBuilder().mergeFrom(value); } else { metricDescriptor_ = value; @@ -2598,8 +2389,6 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2624,9 +2413,7 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMetricDescriptor() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2639,8 +2426,6 @@ public Builder clearMetricDescriptor() { return this; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2665,9 +2450,7 @@ public Builder clearMetricDescriptor() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { bitField0_ |= 0x00000020; @@ -2675,8 +2458,6 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { return getMetricDescriptorFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2701,22 +2482,17 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { if (metricDescriptorBuilder_ != null) { return metricDescriptorBuilder_.getMessageOrBuilder(); } else { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? + com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2741,22 +2517,17 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
      * their description.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder> + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> getMetricDescriptorFieldBuilder() { if (metricDescriptorBuilder_ == null) { - metricDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder>( - getMetricDescriptor(), getParentForChildren(), isClean()); + metricDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( + getMetricDescriptor(), + getParentForChildren(), + isClean()); metricDescriptor_ = null; } return metricDescriptorBuilder_; @@ -2764,8 +2535,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { private java.lang.Object valueExtractor_ = ""; /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2790,13 +2559,13 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The valueExtractor. */ public java.lang.String getValueExtractor() { java.lang.Object ref = valueExtractor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueExtractor_ = s; return s; @@ -2805,8 +2574,6 @@ public java.lang.String getValueExtractor() { } } /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2831,14 +2598,15 @@ public java.lang.String getValueExtractor() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for valueExtractor. */ - public com.google.protobuf.ByteString getValueExtractorBytes() { + public com.google.protobuf.ByteString + getValueExtractorBytes() { java.lang.Object ref = valueExtractor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); valueExtractor_ = b; return b; } else { @@ -2846,8 +2614,6 @@ public com.google.protobuf.ByteString getValueExtractorBytes() { } } /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2872,22 +2638,18 @@ public com.google.protobuf.ByteString getValueExtractorBytes() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The valueExtractor to set. * @return This builder for chaining. */ - public Builder setValueExtractor(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueExtractor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueExtractor_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2912,7 +2674,6 @@ public Builder setValueExtractor(java.lang.String value) {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValueExtractor() { @@ -2922,8 +2683,6 @@ public Builder clearValueExtractor() { return this; } /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2948,14 +2707,12 @@ public Builder clearValueExtractor() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for valueExtractor to set. * @return This builder for chaining. */ - public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueExtractorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueExtractor_ = value; bitField0_ |= 0x00000040; @@ -2963,8 +2720,8 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labelExtractors_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labelExtractors_; private com.google.protobuf.MapField internalGetLabelExtractors() { if (labelExtractors_ == null) { @@ -2973,13 +2730,11 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { } return labelExtractors_; } - private com.google.protobuf.MapField internalGetMutableLabelExtractors() { if (labelExtractors_ == null) { - labelExtractors_ = - com.google.protobuf.MapField.newMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); + labelExtractors_ = com.google.protobuf.MapField.newMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); } if (!labelExtractors_.isMutable()) { labelExtractors_ = labelExtractors_.copy(); @@ -2988,13 +2743,10 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { onChanged(); return labelExtractors_; } - public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3012,26 +2764,23 @@ public int getLabelExtractorsCount() {
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabelExtractors().getMap().containsKey(key); } - /** Use {@link #getLabelExtractorsMap()} instead. */ + /** + * Use {@link #getLabelExtractorsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelExtractors() { return getLabelExtractorsMap(); } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3049,17 +2798,13 @@ public java.util.Map getLabelExtractors() {
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelExtractorsMap() { return internalGetLabelExtractors().getMap(); } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3077,24 +2822,20 @@ public java.util.Map getLabelExtractorsMap()
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelExtractorsOrDefault( + public /* nullable */ +java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabelExtractors().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3112,30 +2853,26 @@ public java.util.Map getLabelExtractorsMap()
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabelExtractors() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableLabelExtractors().getMutableMap().clear(); + internalGetMutableLabelExtractors().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3153,26 +2890,25 @@ public Builder clearLabelExtractors() {
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabelExtractors().getMutableMap().remove(key); + public Builder removeLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabelExtractors().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabelExtractors() { + public java.util.Map + getMutableLabelExtractors() { bitField0_ |= 0x00000080; return internalGetMutableLabelExtractors().getMutableMap(); } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3190,24 +2926,19 @@ public java.util.Map getMutableLabelExtracto
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabelExtractors(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabelExtractors().getMutableMap().put(key, value); + public Builder putLabelExtractors( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabelExtractors().getMutableMap() + .put(key, value); bitField0_ |= 0x00000080; return this; } /** - * - * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -3225,76 +2956,57 @@ public Builder putLabelExtractors(java.lang.String key, java.lang.String value)
      * number of active time series that are allowed in a project.
      * 
* - * - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabelExtractors(java.util.Map values) { - internalGetMutableLabelExtractors().getMutableMap().putAll(values); + public Builder putAllLabelExtractors( + java.util.Map values) { + internalGetMutableLabelExtractors().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.api.Distribution.BucketOptions bucketOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, - com.google.api.Distribution.BucketOptions.Builder, - com.google.api.Distribution.BucketOptionsOrBuilder> - bucketOptionsBuilder_; + com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder> bucketOptionsBuilder_; /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bucketOptions field is set. */ public boolean hasBucketOptions() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The bucketOptions. */ public com.google.api.Distribution.BucketOptions getBucketOptions() { if (bucketOptionsBuilder_ == null) { - return bucketOptions_ == null - ? com.google.api.Distribution.BucketOptions.getDefaultInstance() - : bucketOptions_; + return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; } else { return bucketOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value) { if (bucketOptionsBuilder_ == null) { @@ -3310,17 +3022,13 @@ public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value) return this; } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBucketOptions( com.google.api.Distribution.BucketOptions.Builder builderForValue) { @@ -3334,23 +3042,19 @@ public Builder setBucketOptions( return this; } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions value) { if (bucketOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && bucketOptions_ != null - && bucketOptions_ != com.google.api.Distribution.BucketOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + bucketOptions_ != null && + bucketOptions_ != com.google.api.Distribution.BucketOptions.getDefaultInstance()) { getBucketOptionsBuilder().mergeFrom(value); } else { bucketOptions_ = value; @@ -3365,17 +3069,13 @@ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions valu return this; } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBucketOptions() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3388,17 +3088,13 @@ public Builder clearBucketOptions() { return this; } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder() { bitField0_ |= 0x00000100; @@ -3406,52 +3102,40 @@ public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder return getBucketOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() { if (bucketOptionsBuilder_ != null) { return bucketOptionsBuilder_.getMessageOrBuilder(); } else { - return bucketOptions_ == null - ? com.google.api.Distribution.BucketOptions.getDefaultInstance() - : bucketOptions_; + return bucketOptions_ == null ? + com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; } } /** - * - * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, - com.google.api.Distribution.BucketOptions.Builder, - com.google.api.Distribution.BucketOptionsOrBuilder> + com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder> getBucketOptionsFieldBuilder() { if (bucketOptionsBuilder_ == null) { - bucketOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, - com.google.api.Distribution.BucketOptions.Builder, - com.google.api.Distribution.BucketOptionsOrBuilder>( - getBucketOptions(), getParentForChildren(), isClean()); + bucketOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder>( + getBucketOptions(), + getParentForChildren(), + isClean()); bucketOptions_ = null; } return bucketOptionsBuilder_; @@ -3459,64 +3143,45 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3532,19 +3197,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3555,23 +3217,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3586,17 +3244,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3609,17 +3263,13 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3627,52 +3277,40 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3680,64 +3318,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3753,19 +3372,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3776,23 +3392,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3807,17 +3419,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3830,17 +3438,13 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3848,52 +3452,40 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3901,84 +3493,66 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int version_ = 0; /** - * - * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Override - @java.lang.Deprecated - public int getVersionValue() { + @java.lang.Override @java.lang.Deprecated public int getVersionValue() { return version_; } /** - * - * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @param value The enum numeric value on the wire for version to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setVersionValue(int value) { + @java.lang.Deprecated public Builder setVersionValue(int value) { version_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogMetric.ApiVersion getVersion() { - com.google.logging.v2.LogMetric.ApiVersion result = - com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); + @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); return result == null ? com.google.logging.v2.LogMetric.ApiVersion.UNRECOGNIZED : result; } /** - * - * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @param value The version to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { + @java.lang.Deprecated public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { if (value == null) { throw new NullPointerException(); } @@ -3988,29 +3562,25 @@ public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { return this; } /** - * - * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearVersion() { + @java.lang.Deprecated public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000800); version_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4020,12 +3590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogMetric) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogMetric) private static final com.google.logging.v2.LogMetric DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogMetric(); } @@ -4034,27 +3604,27 @@ public static com.google.logging.v2.LogMetric getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4069,4 +3639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java similarity index 85% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java index f9eaa3741..e88120cf6 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogMetricOrBuilder - extends +public interface LogMetricOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogMetric) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -44,13 +26,10 @@ public interface LogMetricOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -68,41 +47,34 @@ public interface LogMetricOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -114,13 +86,10 @@ public interface LogMetricOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -132,14 +101,12 @@ public interface LogMetricOrBuilder
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -153,13 +120,10 @@ public interface LogMetricOrBuilder
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bucketName. */ java.lang.String getBucketName(); /** - * - * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -173,28 +137,23 @@ public interface LogMetricOrBuilder
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bucketName. */ - com.google.protobuf.ByteString getBucketNameBytes(); + com.google.protobuf.ByteString + getBucketNameBytes(); /** - * - * *
    * Optional. If set to True, then this metric is disabled and it does not
    * generate any points.
    * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ boolean getDisabled(); /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -219,16 +178,11 @@ public interface LogMetricOrBuilder
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metricDescriptor field is set. */ boolean hasMetricDescriptor(); /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -253,16 +207,11 @@ public interface LogMetricOrBuilder
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The metricDescriptor. */ com.google.api.MetricDescriptor getMetricDescriptor(); /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -287,15 +236,11 @@ public interface LogMetricOrBuilder
    * their description.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder(); /** - * - * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -320,13 +265,10 @@ public interface LogMetricOrBuilder
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The valueExtractor. */ java.lang.String getValueExtractor(); /** - * - * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -351,14 +293,12 @@ public interface LogMetricOrBuilder
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for valueExtractor. */ - com.google.protobuf.ByteString getValueExtractorBytes(); + com.google.protobuf.ByteString + getValueExtractorBytes(); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -376,13 +316,10 @@ public interface LogMetricOrBuilder
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelExtractorsCount(); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -400,16 +337,17 @@ public interface LogMetricOrBuilder
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabelExtractors( + java.lang.String key); + /** + * Use {@link #getLabelExtractorsMap()} instead. */ - boolean containsLabelExtractors(java.lang.String key); - /** Use {@link #getLabelExtractorsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabelExtractors(); + java.util.Map + getLabelExtractors(); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -427,13 +365,11 @@ public interface LogMetricOrBuilder
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelExtractorsMap(); + java.util.Map + getLabelExtractorsMap(); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -451,17 +387,14 @@ public interface LogMetricOrBuilder
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getLabelExtractorsOrDefault( +java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -479,176 +412,132 @@ java.lang.String getLabelExtractorsOrDefault(
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelExtractorsOrThrow(java.lang.String key); + java.lang.String getLabelExtractorsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bucketOptions field is set. */ boolean hasBucketOptions(); /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The bucketOptions. */ com.google.api.Distribution.BucketOptions getBucketOptions(); /** - * - * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder(); /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Deprecated - int getVersionValue(); + @java.lang.Deprecated int getVersionValue(); /** - * - * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * - * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=237 + * @deprecated google.logging.v2.LogMetric.version is deprecated. + * See google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ - @java.lang.Deprecated - com.google.logging.v2.LogMetric.ApiVersion getVersion(); + @java.lang.Deprecated com.google.logging.v2.LogMetric.ApiVersion getVersion(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java index b42cd681b..5b86b5c46 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a sink used to export log entries to one of the following
  * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.logging.v2.LogSink}
  */
-public final class LogSink extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogSink extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogSink)
     LogSinkOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogSink.newBuilder() to construct.
   private LogSink(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogSink() {
     name_ = "";
     destination_ = "";
@@ -54,37 +36,34 @@ private LogSink() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogSink();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_LogSink_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_LogSink_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogSink.class, com.google.logging.v2.LogSink.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Deprecated. This is unused.
    * 
* * Protobuf enum {@code google.logging.v2.LogSink.VersionFormat} */ - public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { + public enum VersionFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * An unspecified format version that will default to V2.
      * 
@@ -93,8 +72,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ VERSION_FORMAT_UNSPECIFIED(0), /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -103,8 +80,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ V2(1), /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -116,8 +91,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * An unspecified format version that will default to V2.
      * 
@@ -126,8 +99,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -136,8 +107,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 1; /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -146,6 +115,7 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V1_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -170,49 +140,49 @@ public static VersionFormat valueOf(int value) { */ public static VersionFormat forNumber(int value) { switch (value) { - case 0: - return VERSION_FORMAT_UNSPECIFIED; - case 1: - return V2; - case 2: - return V1; - default: - return null; + case 0: return VERSION_FORMAT_UNSPECIFIED; + case 1: return V2; + case 2: return V1; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + VersionFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VersionFormat findValueByNumber(int number) { + return VersionFormat.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VersionFormat findValueByNumber(int number) { - return VersionFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.logging.v2.LogSink.getDescriptor().getEnumTypes().get(0); } private static final VersionFormat[] VALUES = values(); - public static VersionFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VersionFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -231,18 +201,14 @@ private VersionFormat(int value) { private int bitField0_; private int optionsCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object options_; - public enum OptionsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGQUERY_OPTIONS(12), OPTIONS_NOT_SET(0); private final int value; - private OptionsCase(int value) { this.value = value; } @@ -258,31 +224,26 @@ public static OptionsCase valueOf(int value) { public static OptionsCase forNumber(int value) { switch (value) { - case 12: - return BIGQUERY_OPTIONS; - case 0: - return OPTIONS_NOT_SET; - default: - return null; + case 12: return BIGQUERY_OPTIONS; + case 0: return OPTIONS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OptionsCase getOptionsCase() { - return OptionsCase.forNumber(optionsCase_); + public OptionsCase + getOptionsCase() { + return OptionsCase.forNumber( + optionsCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -293,7 +254,6 @@ public OptionsCase getOptionsCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -302,15 +262,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -321,15 +280,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -338,12 +298,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESTINATION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object destination_ = ""; /** - * - * *
    * Required. The export destination:
    *
@@ -358,10 +315,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destination. */ @java.lang.Override @@ -370,15 +324,14 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** - * - * *
    * Required. The export destination:
    *
@@ -393,18 +346,17 @@ public java.lang.String getDestination() {
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destination_ = b; return b; } else { @@ -413,12 +365,9 @@ public com.google.protobuf.ByteString getDestinationBytes() { } public static final int FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -431,7 +380,6 @@ public com.google.protobuf.ByteString getDestinationBytes() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -440,15 +388,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -461,15 +408,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -478,12 +426,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 18; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. A description of this sink.
    *
@@ -491,7 +436,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -500,15 +444,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A description of this sink.
    *
@@ -516,15 +459,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -535,15 +479,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int DISABLED_FIELD_NUMBER = 19; private boolean disabled_ = false; /** - * - * *
    * Optional. If set to true, then this sink is disabled and it does not export
    * any log entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -552,12 +493,9 @@ public boolean getDisabled() { } public static final int EXCLUSIONS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private java.util.List exclusions_; /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -566,17 +504,13 @@ public boolean getDisabled() {
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getExclusionsList() { return exclusions_; } /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -585,18 +519,14 @@ public java.util.List getExclusionsList() {
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getExclusionsOrBuilderList() { return exclusions_; } /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -605,17 +535,13 @@ public java.util.List getExclusionsList() {
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getExclusionsCount() { return exclusions_.size(); } /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -624,17 +550,13 @@ public int getExclusionsCount() {
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -643,65 +565,48 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) {
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index) { return exclusions_.get(index); } public static final int OUTPUT_VERSION_FORMAT_FIELD_NUMBER = 6; private int outputVersionFormat_ = 0; /** - * - * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Override - @java.lang.Deprecated - public int getOutputVersionFormatValue() { + @java.lang.Override @java.lang.Deprecated public int getOutputVersionFormatValue() { return outputVersionFormat_; } /** - * - * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { - com.google.logging.v2.LogSink.VersionFormat result = - com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); + @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } public static final int WRITER_IDENTITY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object writerIdentity_ = ""; /** - * - * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -724,7 +629,6 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() {
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The writerIdentity. */ @java.lang.Override @@ -733,15 +637,14 @@ public java.lang.String getWriterIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; } } /** - * - * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -764,15 +667,16 @@ public java.lang.String getWriterIdentity() {
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for writerIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString getWriterIdentityBytes() { + public com.google.protobuf.ByteString + getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -783,8 +687,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { public static final int INCLUDE_CHILDREN_FIELD_NUMBER = 9; private boolean includeChildren_ = false; /** - * - * *
    * Optional. This field applies only to sinks owned by organizations and
    * folders. If the field is false, the default, only the logs owned by the
@@ -806,7 +708,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -816,16 +717,11 @@ public boolean getIncludeChildren() { public static final int BIGQUERY_OPTIONS_FIELD_NUMBER = 12; /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bigqueryOptions field is set. */ @java.lang.Override @@ -833,40 +729,31 @@ public boolean hasBigqueryOptions() { return optionsCase_ == 12; } /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bigqueryOptions. */ @java.lang.Override public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { if (optionsCase_ == 12) { - return (com.google.logging.v2.BigQueryOptions) options_; + return (com.google.logging.v2.BigQueryOptions) options_; } return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { if (optionsCase_ == 12) { - return (com.google.logging.v2.BigQueryOptions) options_; + return (com.google.logging.v2.BigQueryOptions) options_; } return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } @@ -874,17 +761,13 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -892,17 +775,13 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -910,16 +789,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -929,17 +805,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -947,17 +819,13 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -965,16 +833,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -982,7 +847,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -994,7 +858,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1004,8 +869,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } - if (outputVersionFormat_ - != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { + if (outputVersionFormat_ != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(6, outputVersionFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { @@ -1050,35 +914,39 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } - if (outputVersionFormat_ - != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, outputVersionFormat_); + if (outputVersionFormat_ != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, outputVersionFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, writerIdentity_); } if (includeChildren_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, includeChildren_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, includeChildren_); } if (optionsCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.logging.v2.BigQueryOptions) options_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.logging.v2.BigQueryOptions) options_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getUpdateTime()); } for (int i = 0; i < exclusions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, exclusions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, exclusions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, description_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, disabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, disabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1088,34 +956,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogSink)) { return super.equals(obj); } com.google.logging.v2.LogSink other = (com.google.logging.v2.LogSink) obj; - if (!getName().equals(other.getName())) return false; - if (!getDestination().equals(other.getDestination())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getDisabled() != other.getDisabled()) return false; - if (!getExclusionsList().equals(other.getExclusionsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDestination() + .equals(other.getDestination())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getDisabled() + != other.getDisabled()) return false; + if (!getExclusionsList() + .equals(other.getExclusionsList())) return false; if (outputVersionFormat_ != other.outputVersionFormat_) return false; - if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; - if (getIncludeChildren() != other.getIncludeChildren()) return false; + if (!getWriterIdentity() + .equals(other.getWriterIdentity())) return false; + if (getIncludeChildren() + != other.getIncludeChildren()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getOptionsCase().equals(other.getOptionsCase())) return false; switch (optionsCase_) { case 12: - if (!getBigqueryOptions().equals(other.getBigqueryOptions())) return false; + if (!getBigqueryOptions() + .equals(other.getBigqueryOptions())) return false; break; case 0: default: @@ -1140,7 +1019,8 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); if (getExclusionsCount() > 0) { hash = (37 * hash) + EXCLUSIONS_FIELD_NUMBER; hash = (53 * hash) + getExclusionsList().hashCode(); @@ -1150,7 +1030,8 @@ public int hashCode() { hash = (37 * hash) + WRITER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getWriterIdentity().hashCode(); hash = (37 * hash) + INCLUDE_CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeChildren()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeChildren()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -1172,103 +1053,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogSink parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogSink parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSink parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LogSink parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LogSink parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSink parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSink parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogSink parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogSink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogSink parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.logging.v2.LogSink parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.logging.v2.LogSink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogSink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogSink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a sink used to export log entries to one of the following
    * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
@@ -1279,20 +1156,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogSink}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSink)
       com.google.logging.v2.LogSinkOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogSink_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogSink_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogSink.class, com.google.logging.v2.LogSink.Builder.class);
     }
@@ -1302,19 +1178,19 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getExclusionsFieldBuilder();
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1353,9 +1229,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_LogSink_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
     }
 
     @java.lang.Override
@@ -1376,9 +1252,7 @@ public com.google.logging.v2.LogSink build() {
     public com.google.logging.v2.LogSink buildPartial() {
       com.google.logging.v2.LogSink result = new com.google.logging.v2.LogSink(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1424,11 +1298,15 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1437,7 +1315,8 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
     private void buildPartialOneofs(com.google.logging.v2.LogSink result) {
       result.optionsCase_ = optionsCase_;
       result.options_ = this.options_;
-      if (optionsCase_ == 12 && bigqueryOptionsBuilder_ != null) {
+      if (optionsCase_ == 12 &&
+          bigqueryOptionsBuilder_ != null) {
         result.options_ = bigqueryOptionsBuilder_.build();
       }
     }
@@ -1446,39 +1325,38 @@ private void buildPartialOneofs(com.google.logging.v2.LogSink result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogSink) {
-        return mergeFrom((com.google.logging.v2.LogSink) other);
+        return mergeFrom((com.google.logging.v2.LogSink)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1528,10 +1406,9 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) {
             exclusionsBuilder_ = null;
             exclusions_ = other.exclusions_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            exclusionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getExclusionsFieldBuilder()
-                    : null;
+            exclusionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getExclusionsFieldBuilder() : null;
           } else {
             exclusionsBuilder_.addAllMessages(other.exclusions_);
           }
@@ -1555,15 +1432,13 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) {
         mergeUpdateTime(other.getUpdateTime());
       }
       switch (other.getOptionsCase()) {
-        case BIGQUERY_OPTIONS:
-          {
-            mergeBigqueryOptions(other.getBigqueryOptions());
-            break;
-          }
-        case OPTIONS_NOT_SET:
-          {
-            break;
-          }
+        case BIGQUERY_OPTIONS: {
+          mergeBigqueryOptions(other.getBigqueryOptions());
+          break;
+        }
+        case OPTIONS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1591,92 +1466,86 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                destination_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 42:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            case 48:
-              {
-                outputVersionFormat_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 48
-            case 66:
-              {
-                writerIdentity_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 72:
-              {
-                includeChildren_ = input.readBool();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 72
-            case 98:
-              {
-                input.readMessage(getBigqueryOptionsFieldBuilder().getBuilder(), extensionRegistry);
-                optionsCase_ = 12;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 114
-            case 130:
-              {
-                com.google.logging.v2.LogExclusion m =
-                    input.readMessage(
-                        com.google.logging.v2.LogExclusion.parser(), extensionRegistry);
-                if (exclusionsBuilder_ == null) {
-                  ensureExclusionsIsMutable();
-                  exclusions_.add(m);
-                } else {
-                  exclusionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 130
-            case 146:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 146
-            case 152:
-              {
-                disabled_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 152
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              destination_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 42: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            case 48: {
+              outputVersionFormat_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 48
+            case 66: {
+              writerIdentity_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 72: {
+              includeChildren_ = input.readBool();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 72
+            case 98: {
+              input.readMessage(
+                  getBigqueryOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              optionsCase_ = 12;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 114
+            case 130: {
+              com.google.logging.v2.LogExclusion m =
+                  input.readMessage(
+                      com.google.logging.v2.LogExclusion.parser(),
+                      extensionRegistry);
+              if (exclusionsBuilder_ == null) {
+                ensureExclusionsIsMutable();
+                exclusions_.add(m);
+              } else {
+                exclusionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 130
+            case 146: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 146
+            case 152: {
+              disabled_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 152
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1686,12 +1555,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int optionsCase_ = 0;
     private java.lang.Object options_;
-
-    public OptionsCase getOptionsCase() {
-      return OptionsCase.forNumber(optionsCase_);
+    public OptionsCase
+        getOptionsCase() {
+      return OptionsCase.forNumber(
+          optionsCase_);
     }
 
     public Builder clearOptions() {
@@ -1705,8 +1574,6 @@ public Builder clearOptions() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1717,13 +1584,13 @@ public Builder clearOptions() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1732,8 +1599,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1744,14 +1609,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1759,8 +1625,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1771,22 +1635,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1797,7 +1657,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1807,8 +1666,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1819,14 +1676,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1836,8 +1691,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destination_ = ""; /** - * - * *
      * Required. The export destination:
      *
@@ -1852,16 +1705,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destination. */ public java.lang.String getDestination() { java.lang.Object ref = destination_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; @@ -1870,8 +1721,6 @@ public java.lang.String getDestination() { } } /** - * - * *
      * Required. The export destination:
      *
@@ -1886,17 +1735,16 @@ public java.lang.String getDestination() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destination. */ - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destination_ = b; return b; } else { @@ -1904,8 +1752,6 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * Required. The export destination:
      *
@@ -1920,25 +1766,19 @@ public com.google.protobuf.ByteString getDestinationBytes() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestination( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destination_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The export destination:
      *
@@ -1953,10 +1793,7 @@ public Builder setDestination(java.lang.String value) {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDestination() { @@ -1966,8 +1803,6 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Required. The export destination:
      *
@@ -1982,17 +1817,13 @@ public Builder clearDestination() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destination_ = value; bitField0_ |= 0x00000002; @@ -2002,8 +1833,6 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2016,13 +1845,13 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -2031,8 +1860,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2045,14 +1872,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -2060,8 +1888,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2074,22 +1900,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2102,7 +1924,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -2112,8 +1933,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2126,14 +1945,12 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -2143,8 +1960,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2152,13 +1967,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2167,8 +1982,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2176,14 +1989,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2191,8 +2005,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2200,22 +2012,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2223,7 +2031,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2233,8 +2040,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2242,14 +2047,12 @@ public Builder clearDescription() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -2257,17 +2060,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private boolean disabled_; + private boolean disabled_ ; /** - * - * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -2275,15 +2075,12 @@ public boolean getDisabled() { return disabled_; } /** - * - * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disabled to set. * @return This builder for chaining. */ @@ -2295,15 +2092,12 @@ public Builder setDisabled(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -2314,24 +2108,18 @@ public Builder clearDisabled() { } private java.util.List exclusions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExclusionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { exclusions_ = new java.util.ArrayList(exclusions_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> - exclusionsBuilder_; + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionsBuilder_; /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2340,9 +2128,7 @@ private void ensureExclusionsIsMutable() {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getExclusionsList() { if (exclusionsBuilder_ == null) { @@ -2352,8 +2138,6 @@ public java.util.List getExclusionsList() { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2362,9 +2146,7 @@ public java.util.List getExclusionsList() {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public int getExclusionsCount() { if (exclusionsBuilder_ == null) { @@ -2374,8 +2156,6 @@ public int getExclusionsCount() { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2384,9 +2164,7 @@ public int getExclusionsCount() {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogExclusion getExclusions(int index) { if (exclusionsBuilder_ == null) { @@ -2396,8 +2174,6 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2406,11 +2182,10 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value) { + public Builder setExclusions( + int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2424,8 +2199,6 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2434,9 +2207,7 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExclusions( int index, com.google.logging.v2.LogExclusion.Builder builderForValue) { @@ -2450,8 +2221,6 @@ public Builder setExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2460,9 +2229,7 @@ public Builder setExclusions(
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { @@ -2478,8 +2245,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2488,11 +2253,10 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value) { + public Builder addExclusions( + int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2506,8 +2270,6 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2516,11 +2278,10 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder addExclusions( + com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); exclusions_.add(builderForValue.build()); @@ -2531,8 +2292,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2541,9 +2300,7 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addExclusions( int index, com.google.logging.v2.LogExclusion.Builder builderForValue) { @@ -2557,8 +2314,6 @@ public Builder addExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2567,15 +2322,14 @@ public Builder addExclusions(
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllExclusions( java.lang.Iterable values) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exclusions_); onChanged(); } else { exclusionsBuilder_.addAllMessages(values); @@ -2583,8 +2337,6 @@ public Builder addAllExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2593,9 +2345,7 @@ public Builder addAllExclusions(
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExclusions() { if (exclusionsBuilder_ == null) { @@ -2608,8 +2358,6 @@ public Builder clearExclusions() { return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2618,9 +2366,7 @@ public Builder clearExclusions() {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeExclusions(int index) { if (exclusionsBuilder_ == null) { @@ -2633,8 +2379,6 @@ public Builder removeExclusions(int index) { return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2643,16 +2387,13 @@ public Builder removeExclusions(int index) {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index) { + public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder( + int index) { return getExclusionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2661,20 +2402,16 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index) { if (exclusionsBuilder_ == null) { - return exclusions_.get(index); - } else { + return exclusions_.get(index); } else { return exclusionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2683,12 +2420,10 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getExclusionsOrBuilderList() { + public java.util.List + getExclusionsOrBuilderList() { if (exclusionsBuilder_ != null) { return exclusionsBuilder_.getMessageOrBuilderList(); } else { @@ -2696,8 +2431,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2706,17 +2439,13 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { - return getExclusionsFieldBuilder() - .addBuilder(com.google.logging.v2.LogExclusion.getDefaultInstance()); + return getExclusionsFieldBuilder().addBuilder( + com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2725,17 +2454,14 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() {
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index) { - return getExclusionsFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogExclusion.getDefaultInstance()); + public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( + int index) { + return getExclusionsFieldBuilder().addBuilder( + index, com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2744,26 +2470,22 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index
      * it will not be exported.
      * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List getExclusionsBuilderList() { + public java.util.List + getExclusionsBuilderList() { return getExclusionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> getExclusionsFieldBuilder() { if (exclusionsBuilder_ == null) { - exclusionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder>( - exclusions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + exclusionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( + exclusions_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); exclusions_ = null; } return exclusionsBuilder_; @@ -2771,84 +2493,62 @@ public java.util.List getExclusionsB private int outputVersionFormat_ = 0; /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Override - @java.lang.Deprecated - public int getOutputVersionFormatValue() { + @java.lang.Override @java.lang.Deprecated public int getOutputVersionFormatValue() { return outputVersionFormat_; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @param value The enum numeric value on the wire for outputVersionFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setOutputVersionFormatValue(int value) { + @java.lang.Deprecated public Builder setOutputVersionFormatValue(int value) { outputVersionFormat_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { - com.google.logging.v2.LogSink.VersionFormat result = - com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); + @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @param value The outputVersionFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionFormat value) { + @java.lang.Deprecated public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionFormat value) { if (value == null) { throw new NullPointerException(); } @@ -2858,21 +2558,16 @@ public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionForma return this; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearOutputVersionFormat() { + @java.lang.Deprecated public Builder clearOutputVersionFormat() { bitField0_ = (bitField0_ & ~0x00000040); outputVersionFormat_ = 0; onChanged(); @@ -2881,8 +2576,6 @@ public Builder clearOutputVersionFormat() { private java.lang.Object writerIdentity_ = ""; /** - * - * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2905,13 +2598,13 @@ public Builder clearOutputVersionFormat() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The writerIdentity. */ public java.lang.String getWriterIdentity() { java.lang.Object ref = writerIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; @@ -2920,8 +2613,6 @@ public java.lang.String getWriterIdentity() { } } /** - * - * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2944,14 +2635,15 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for writerIdentity. */ - public com.google.protobuf.ByteString getWriterIdentityBytes() { + public com.google.protobuf.ByteString + getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -2959,8 +2651,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } } /** - * - * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2983,22 +2673,18 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriterIdentity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writerIdentity_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -3021,7 +2707,6 @@ public Builder setWriterIdentity(java.lang.String value) {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -3031,8 +2716,6 @@ public Builder clearWriterIdentity() { return this; } /** - * - * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -3055,14 +2738,12 @@ public Builder clearWriterIdentity() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriterIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writerIdentity_ = value; bitField0_ |= 0x00000080; @@ -3070,10 +2751,8 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { return this; } - private boolean includeChildren_; + private boolean includeChildren_ ; /** - * - * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -3095,7 +2774,6 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -3103,8 +2781,6 @@ public boolean getIncludeChildren() { return includeChildren_; } /** - * - * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -3126,7 +2802,6 @@ public boolean getIncludeChildren() {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The includeChildren to set. * @return This builder for chaining. */ @@ -3138,8 +2813,6 @@ public Builder setIncludeChildren(boolean value) { return this; } /** - * - * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -3161,7 +2834,6 @@ public Builder setIncludeChildren(boolean value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIncludeChildren() { @@ -3172,21 +2844,13 @@ public Builder clearIncludeChildren() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, - com.google.logging.v2.BigQueryOptions.Builder, - com.google.logging.v2.BigQueryOptionsOrBuilder> - bigqueryOptionsBuilder_; + com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder> bigqueryOptionsBuilder_; /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bigqueryOptions field is set. */ @java.lang.Override @@ -3194,16 +2858,11 @@ public boolean hasBigqueryOptions() { return optionsCase_ == 12; } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bigqueryOptions. */ @java.lang.Override @@ -3221,15 +2880,11 @@ public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { } } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { if (bigqueryOptionsBuilder_ == null) { @@ -3245,15 +2900,11 @@ public Builder setBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { return this; } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBigqueryOptions( com.google.logging.v2.BigQueryOptions.Builder builderForValue) { @@ -3267,25 +2918,18 @@ public Builder setBigqueryOptions( return this; } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { if (bigqueryOptionsBuilder_ == null) { - if (optionsCase_ == 12 - && options_ != com.google.logging.v2.BigQueryOptions.getDefaultInstance()) { - options_ = - com.google.logging.v2.BigQueryOptions.newBuilder( - (com.google.logging.v2.BigQueryOptions) options_) - .mergeFrom(value) - .buildPartial(); + if (optionsCase_ == 12 && + options_ != com.google.logging.v2.BigQueryOptions.getDefaultInstance()) { + options_ = com.google.logging.v2.BigQueryOptions.newBuilder((com.google.logging.v2.BigQueryOptions) options_) + .mergeFrom(value).buildPartial(); } else { options_ = value; } @@ -3301,15 +2945,11 @@ public Builder mergeBigqueryOptions(com.google.logging.v2.BigQueryOptions value) return this; } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBigqueryOptions() { if (bigqueryOptionsBuilder_ == null) { @@ -3328,29 +2968,21 @@ public Builder clearBigqueryOptions() { return this; } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.logging.v2.BigQueryOptions.Builder getBigqueryOptionsBuilder() { return getBigqueryOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { @@ -3364,30 +2996,21 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde } } /** - * - * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, - com.google.logging.v2.BigQueryOptions.Builder, - com.google.logging.v2.BigQueryOptionsOrBuilder> + com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder> getBigqueryOptionsFieldBuilder() { if (bigqueryOptionsBuilder_ == null) { if (!(optionsCase_ == 12)) { options_ = com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } - bigqueryOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, - com.google.logging.v2.BigQueryOptions.Builder, - com.google.logging.v2.BigQueryOptionsOrBuilder>( + bigqueryOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder>( (com.google.logging.v2.BigQueryOptions) options_, getParentForChildren(), isClean()); @@ -3400,64 +3023,45 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3473,19 +3077,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3496,23 +3097,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3527,17 +3124,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3550,17 +3143,13 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3568,52 +3157,40 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3621,64 +3198,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3694,19 +3252,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3717,23 +3272,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3748,17 +3299,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3771,17 +3318,13 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000800; @@ -3789,59 +3332,47 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3851,12 +3382,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogSink) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogSink) private static final com.google.logging.v2.LogSink DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogSink(); } @@ -3865,27 +3396,27 @@ public static com.google.logging.v2.LogSink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogSink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogSink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3900,4 +3431,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java index 3eec17c0f..56602b597 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogSinkOrBuilder - extends +public interface LogSinkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogSink) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -37,13 +19,10 @@ public interface LogSinkOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -54,14 +33,12 @@ public interface LogSinkOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The export destination:
    *
@@ -76,16 +53,11 @@ public interface LogSinkOrBuilder
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destination. */ java.lang.String getDestination(); /** - * - * *
    * Required. The export destination:
    *
@@ -100,17 +72,13 @@ public interface LogSinkOrBuilder
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destination. */ - com.google.protobuf.ByteString getDestinationBytes(); + com.google.protobuf.ByteString + getDestinationBytes(); /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -123,13 +91,10 @@ public interface LogSinkOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -142,14 +107,12 @@ public interface LogSinkOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. A description of this sink.
    *
@@ -157,13 +120,10 @@ public interface LogSinkOrBuilder
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of this sink.
    *
@@ -171,28 +131,23 @@ public interface LogSinkOrBuilder
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. If set to true, then this sink is disabled and it does not export
    * any log entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ boolean getDisabled(); /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -201,14 +156,11 @@ public interface LogSinkOrBuilder
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getExclusionsList(); + java.util.List + getExclusionsList(); /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -217,14 +169,10 @@ public interface LogSinkOrBuilder
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.logging.v2.LogExclusion getExclusions(int index); /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -233,14 +181,10 @@ public interface LogSinkOrBuilder
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ int getExclusionsCount(); /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -249,15 +193,11 @@ public interface LogSinkOrBuilder
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getExclusionsOrBuilderList(); /** - * - * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -266,48 +206,35 @@ public interface LogSinkOrBuilder
    * it will not be exported.
    * 
* - * - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index); + com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( + int index); /** - * - * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Deprecated - int getOutputVersionFormatValue(); + @java.lang.Deprecated int getOutputVersionFormatValue(); /** - * - * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. + * See google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ - @java.lang.Deprecated - com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat(); + @java.lang.Deprecated com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat(); /** - * - * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -330,13 +257,10 @@ public interface LogSinkOrBuilder
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The writerIdentity. */ java.lang.String getWriterIdentity(); /** - * - * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -359,14 +283,12 @@ public interface LogSinkOrBuilder
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for writerIdentity. */ - com.google.protobuf.ByteString getWriterIdentityBytes(); + com.google.protobuf.ByteString + getWriterIdentityBytes(); /** - * - * *
    * Optional. This field applies only to sinks owned by organizations and
    * folders. If the field is false, the default, only the logs owned by the
@@ -388,137 +310,100 @@ public interface LogSinkOrBuilder
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ boolean getIncludeChildren(); /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bigqueryOptions field is set. */ boolean hasBigqueryOptions(); /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bigqueryOptions. */ com.google.logging.v2.BigQueryOptions getBigqueryOptions(); /** - * - * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder(); /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java index a044f6d25..e39577bee 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Additional information used to correlate multiple log entries. Used when a
  * single LogEntry would exceed the Google Cloud Logging size limit and is
@@ -30,47 +13,43 @@
  *
  * Protobuf type {@code google.logging.v2.LogSplit}
  */
-public final class LogSplit extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogSplit extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogSplit)
     LogSplitOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogSplit.newBuilder() to construct.
   private LogSplit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogSplit() {
     uid_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogSplit();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogSplit_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto
-        .internal_static_google_logging_v2_LogSplit_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class);
   }
 
   public static final int UID_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object uid_ = "";
   /**
-   *
-   *
    * 
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -78,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uid = 1; - * * @return The uid. */ @java.lang.Override @@ -87,15 +65,14 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -103,15 +80,16 @@ public java.lang.String getUid() {
    * 
* * string uid = 1; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -122,8 +100,6 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int INDEX_FIELD_NUMBER = 2; private int index_ = 0; /** - * - * *
    * The index of this LogEntry in the sequence of split log entries. Log
    * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -131,7 +107,6 @@ public com.google.protobuf.ByteString getUidBytes() {
    * 
* * int32 index = 2; - * * @return The index. */ @java.lang.Override @@ -142,14 +117,11 @@ public int getIndex() { public static final int TOTAL_SPLITS_FIELD_NUMBER = 3; private int totalSplits_ = 0; /** - * - * *
    * The total number of log entries that the original LogEntry was split into.
    * 
* * int32 total_splits = 3; - * * @return The totalSplits. */ @java.lang.Override @@ -158,7 +130,6 @@ public int getTotalSplits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,7 +141,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); } @@ -193,10 +165,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); } if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, index_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, index_); } if (totalSplits_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSplits_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSplits_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,16 +180,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogSplit)) { return super.equals(obj); } com.google.logging.v2.LogSplit other = (com.google.logging.v2.LogSplit) obj; - if (!getUid().equals(other.getUid())) return false; - if (getIndex() != other.getIndex()) return false; - if (getTotalSplits() != other.getTotalSplits()) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getIndex() + != other.getIndex()) return false; + if (getTotalSplits() + != other.getTotalSplits()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,103 +215,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogSplit parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogSplit parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSplit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LogSplit parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSplit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSplit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogSplit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSplit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogSplit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogSplit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogSplit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.logging.v2.LogSplit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogSplit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogSplit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Additional information used to correlate multiple log entries. Used when a
    * single LogEntry would exceed the Google Cloud Logging size limit and is
@@ -343,31 +316,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.LogSplit}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSplit)
       com.google.logging.v2.LogSplitOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogSplit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogSplit_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogSplit.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -379,9 +354,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto
-          .internal_static_google_logging_v2_LogSplit_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
     }
 
     @java.lang.Override
@@ -401,9 +376,7 @@ public com.google.logging.v2.LogSplit build() {
     @java.lang.Override
     public com.google.logging.v2.LogSplit buildPartial() {
       com.google.logging.v2.LogSplit result = new com.google.logging.v2.LogSplit(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -425,39 +398,38 @@ private void buildPartial0(com.google.logging.v2.LogSplit result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.LogSplit) {
-        return mergeFrom((com.google.logging.v2.LogSplit) other);
+        return mergeFrom((com.google.logging.v2.LogSplit)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,31 +475,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                index_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                totalSplits_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              index_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              totalSplits_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -537,13 +505,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object uid_ = "";
     /**
-     *
-     *
      * 
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -551,13 +516,13 @@ public Builder mergeFrom(
      * 
* * string uid = 1; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -566,8 +531,6 @@ public java.lang.String getUid() { } } /** - * - * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -575,14 +538,15 @@ public java.lang.String getUid() {
      * 
* * string uid = 1; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -590,8 +554,6 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -599,22 +561,18 @@ public com.google.protobuf.ByteString getUidBytes() {
      * 
* * string uid = 1; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -622,7 +580,6 @@ public Builder setUid(java.lang.String value) {
      * 
* * string uid = 1; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -632,8 +589,6 @@ public Builder clearUid() { return this; } /** - * - * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -641,14 +596,12 @@ public Builder clearUid() {
      * 
* * string uid = 1; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000001; @@ -656,10 +609,8 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private int index_; + private int index_ ; /** - * - * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -667,7 +618,6 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 index = 2; - * * @return The index. */ @java.lang.Override @@ -675,8 +625,6 @@ public int getIndex() { return index_; } /** - * - * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -684,7 +632,6 @@ public int getIndex() {
      * 
* * int32 index = 2; - * * @param value The index to set. * @return This builder for chaining. */ @@ -696,8 +643,6 @@ public Builder setIndex(int value) { return this; } /** - * - * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -705,7 +650,6 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 2; - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -715,16 +659,13 @@ public Builder clearIndex() { return this; } - private int totalSplits_; + private int totalSplits_ ; /** - * - * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; - * * @return The totalSplits. */ @java.lang.Override @@ -732,14 +673,11 @@ public int getTotalSplits() { return totalSplits_; } /** - * - * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; - * * @param value The totalSplits to set. * @return This builder for chaining. */ @@ -751,14 +689,11 @@ public Builder setTotalSplits(int value) { return this; } /** - * - * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; - * * @return This builder for chaining. */ public Builder clearTotalSplits() { @@ -767,9 +702,9 @@ public Builder clearTotalSplits() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogSplit) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogSplit) private static final com.google.logging.v2.LogSplit DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogSplit(); } @@ -793,27 +728,27 @@ public static com.google.logging.v2.LogSplit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogSplit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogSplit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSplit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java index 9d2e251b4..703fd5092 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogSplitOrBuilder - extends +public interface LogSplitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogSplit) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -34,13 +16,10 @@ public interface LogSplitOrBuilder
    * 
* * string uid = 1; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -48,14 +27,12 @@ public interface LogSplitOrBuilder
    * 
* * string uid = 1; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * The index of this LogEntry in the sequence of split log entries. Log
    * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -63,20 +40,16 @@ public interface LogSplitOrBuilder
    * 
* * int32 index = 2; - * * @return The index. */ int getIndex(); /** - * - * *
    * The total number of log entries that the original LogEntry was split into.
    * 
* * int32 total_splits = 3; - * * @return The totalSplits. */ int getTotalSplits(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java index cab222c75..016546a6f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes a view over log entries in a bucket.
  * 
* * Protobuf type {@code google.logging.v2.LogView} */ -public final class LogView extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LogView extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogView) LogViewOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LogView.newBuilder() to construct. private LogView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogView() { name_ = ""; description_ = ""; @@ -46,32 +28,29 @@ private LogView() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogView(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogView_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogView_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogView.class, com.google.logging.v2.LogView.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the view.
    *
@@ -81,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -90,15 +68,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the view.
    *
@@ -108,15 +85,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,18 +103,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Describes this view.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -145,29 +119,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Describes this view.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -178,15 +152,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -194,15 +164,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -210,14 +176,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -227,15 +190,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -243,15 +202,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -259,14 +214,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -274,12 +226,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int FILTER_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -298,7 +247,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string filter = 7; - * * @return The filter. */ @java.lang.Override @@ -307,15 +255,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -334,15 +281,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -351,7 +299,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,7 +310,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -395,10 +343,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); @@ -411,24 +361,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogView)) { return super.equals(obj); } com.google.logging.v2.LogView other = (com.google.logging.v2.LogView) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,123 +414,118 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogView parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.LogView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogView parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.LogView parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.LogView parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogView parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogView parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.logging.v2.LogView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.LogView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a view over log entries in a bucket.
    * 
* * Protobuf type {@code google.logging.v2.LogView} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogView) com.google.logging.v2.LogViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogView_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogView_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogView.class, com.google.logging.v2.LogView.Builder.class); } @@ -585,18 +535,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +568,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogView_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override @@ -640,9 +590,7 @@ public com.google.logging.v2.LogView build() { @java.lang.Override public com.google.logging.v2.LogView buildPartial() { com.google.logging.v2.LogView result = new com.google.logging.v2.LogView(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -657,11 +605,15 @@ private void buildPartial0(com.google.logging.v2.LogView result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -674,39 +626,38 @@ private void buildPartial0(com.google.logging.v2.LogView result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LogView) { - return mergeFrom((com.google.logging.v2.LogView) other); + return mergeFrom((com.google.logging.v2.LogView)other); } else { super.mergeFrom(other); return this; @@ -762,43 +713,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -808,13 +757,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the view.
      *
@@ -824,13 +770,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -839,8 +785,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the view.
      *
@@ -850,14 +794,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -865,8 +810,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the view.
      *
@@ -876,22 +819,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the view.
      *
@@ -901,7 +840,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -911,8 +849,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the view.
      *
@@ -922,14 +858,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -939,20 +873,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -961,21 +893,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -983,35 +914,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1021,21 +945,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1045,58 +965,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1112,17 +1013,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1133,21 +1031,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1162,15 +1056,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1183,15 +1073,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1199,48 +1085,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1248,58 +1122,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1315,17 +1170,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1336,21 +1188,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1365,15 +1213,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1386,15 +1230,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1402,48 +1242,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the view.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1451,8 +1279,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1471,13 +1297,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string filter = 7; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1486,8 +1312,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1506,14 +1330,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1521,8 +1346,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1541,22 +1364,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 7; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1575,7 +1394,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 7; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1585,8 +1403,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1605,23 +1421,21 @@ public Builder clearFilter() {
      * 
* * string filter = 7; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1631,12 +1445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogView) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogView) private static final com.google.logging.v2.LogView DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.LogView(); } @@ -1645,27 +1459,27 @@ public static com.google.logging.v2.LogView getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogView parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,4 +1494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java index 0f4a160f2..4b3823d97 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogViewOrBuilder - extends +public interface LogViewOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogView) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the view.
    *
@@ -36,13 +18,10 @@ public interface LogViewOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the view.
    *
@@ -52,115 +31,86 @@ public interface LogViewOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Describes this view.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Describes this view.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -179,13 +129,10 @@ public interface LogViewOrBuilder
    * 
* * string filter = 7; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -204,8 +151,8 @@ public interface LogViewOrBuilder
    * 
* * string filter = 7; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java new file mode 100644 index 000000000..6cfa64c6e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,1156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingConfigProto { + private LoggingConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_IndexConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_IndexConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogBucket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogBucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogView_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogSink_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogSink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BigQueryDataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_Link_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_Link_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BigQueryOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListBucketsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListBucketsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListViewsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListViewsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateViewRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateViewRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetViewRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteViewRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListSinksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListSinksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetSinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateSinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLinksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLinksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogExclusion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogExclusion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetExclusionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CmekSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_Settings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_Settings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BucketMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LinkMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/logging/v2/logging_config.proto" + + "\022\021google.logging.v2\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032#google/longrunning/opera" + + "tions.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\215\001\n\013IndexCon" + + "fig\022\027\n\nfield_path\030\001 \001(\tB\003\340A\002\022/\n\004type\030\002 \001" + + "(\0162\034.google.logging.v2.IndexTypeB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\"\325\005\n\tLogBucket\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022\023\n\013description\030\003 \001(\t\0224\n\013create_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\026\n\016retention_days\030\013 \001(\005\022\016\n" + + "\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014 \001(\0162!" + + ".google.logging.v2.LifecycleStateB\003\340A\003\022\031" + + "\n\021analytics_enabled\030\016 \001(\010\022\031\n\021restricted_" + + "fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003(\0132\036.go" + + "ogle.logging.v2.IndexConfig\0226\n\rcmek_sett" + + "ings\030\023 \001(\0132\037.google.logging.v2.CmekSetti" + + "ngs:\245\002\352A\241\002\n logging.googleapis.com/LogBu" + + "cket\0228projects/{project}/locations/{loca" + + "tion}/buckets/{bucket}\022Borganizations/{o" + + "rganization}/locations/{location}/bucket" + + "s/{bucket}\0226folders/{folder}/locations/{" + + "location}/buckets/{bucket}\022GbillingAccou" + + "nts/{billing_account}/locations/{locatio" + + "n}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_tim" + + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036l" + + "ogging.googleapis.com/LogView\022Eprojects/" + + "{project}/locations/{location}/buckets/{" + + "bucket}/views/{view}\022Oorganizations/{org" + + "anization}/locations/{location}/buckets/" + + "{bucket}/views/{view}\022Cfolders/{folder}/" + + "locations/{location}/buckets/{bucket}/vi" + + "ews/{view}\022TbillingAccounts/{billing_acc" + + "ount}/locations/{location}/buckets/{buck" + + "et}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001(" + + "\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclusi" + + "ons\030\020 \003(\0132\037.google.logging.v2.LogExclusi" + + "onB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162(" + + ".google.logging.v2.LogSink.VersionFormat" + + "B\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020in" + + "clude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_op" + + "tions\030\014 \001(\0132\".google.logging.v2.BigQuery" + + "OptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UN" + + "SPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036logg" + + "ing.googleapis.com/LogSink\022\037projects/{pr" + + "oject}/sinks/{sink}\022)organizations/{orga" + + "nization}/sinks/{sink}\022\035folders/{folder}" + + "/sinks/{sink}\022.billingAccounts/{billing_" + + "account}/sinks/{sink}B\t\n\007options\"*\n\017BigQ" + + "ueryDataset\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\003\"\265\004\n" + + "\004Link\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022?\n\017lifecycle_state\030\004 \001(\0162" + + "!.google.logging.v2.LifecycleStateB\003\340A\003\022" + + "<\n\020bigquery_dataset\030\005 \001(\0132\".google.loggi" + + "ng.v2.BigQueryDataset:\324\002\352A\320\002\n\033logging.go" + + "ogleapis.com/Link\022Eprojects/{project}/lo" + + "cations/{location}/buckets/{bucket}/link" + + "s/{link}\022Oorganizations/{organization}/l" + + "ocations/{location}/buckets/{bucket}/lin" + + "ks/{link}\022Cfolders/{folder}/locations/{l" + + "ocation}/buckets/{bucket}/links/{link}\022T" + + "billingAccounts/{billing_account}/locati" + + "ons/{location}/buckets/{bucket}/links/{l" + + "ink}\"g\n\017BigQueryOptions\022#\n\026use_partition" + + "ed_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp_c" + + "olumn_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBuc" + + "ketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 log" + + "ging.googleapis.com/LogBucket\022\027\n\npage_to" + + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]" + + "\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\0132\034" + + ".google.logging.v2.LogBucket\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapi" + + "s.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\022" + + "1\n\006bucket\030\003 \001(\0132\034.google.logging.v2.LogB" + + "ucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com" + + "/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.logg" + + "ing.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n\020G" + + "etBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogBucket\"M\n\023Delet" + + "eBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n lo" + + "gging.googleapis.com/LogBucket\"O\n\025Undele" + + "teBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogBucket\"X\n\020ListV" + + "iewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage" + + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + + "\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032." + + "google.logging.v2.LogView\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006paren" + + "t\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004vi" + + "ew\030\003 \001(\0132\032.google.logging.v2.LogViewB\003\340A" + + "\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.Log" + + "ViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewReques" + + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googlea" + + "pis.com/LogView\"I\n\021DeleteViewRequest\0224\n\004" + + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" + + "om/LogView\"{\n\020ListSinksRequest\0226\n\006parent" + + "\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com/L" + + "ogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_" + + "size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)\n\005" + + "sinks\030\001 \003(\0132\032.google.logging.v2.LogSink\022" + + "\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReque" + + "st\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging.g" + + "oogleapis.com/LogSink\"\237\001\n\021CreateSinkRequ" + + "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.goo" + + "gleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.goog" + + "le.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_wri" + + "ter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRe" + + "quest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036loggin" + + "g.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032" + + ".google.logging.v2.LogSinkB\003\340A\002\022#\n\026uniqu" + + "e_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update_m" + + "ask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001 \001" + + "(\tB&\340A\002\372A \n\036logging.googleapis.com/LogSi" + + "nk\"\212\001\n\021CreateLinkRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033logging.googleapis.com/Link\022*\n" + + "\004link\030\002 \001(\0132\027.google.logging.v2.LinkB\003\340A" + + "\002\022\024\n\007link_id\030\003 \001(\tB\003\340A\002\"F\n\021DeleteLinkReq" + + "uest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.goog" + + "leapis.com/Link\"x\n\020ListLinksRequest\0223\n\006p" + + "arent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.googleapis." + + "com/Link\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\"T\n\021ListLinksResponse\022&" + + "\n\005links\030\001 \003(\0132\027.google.logging.v2.Link\022\027" + + "\n\017next_page_token\030\002 \001(\t\"C\n\016GetLinkReques" + + "t\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.googlea" + + "pis.com/Link\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006fi" + + "lter\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224" + + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003:\354\001\352A\350\001\n#loggi" + + "ng.googleapis.com/LogExclusion\022)projects" + + "/{project}/exclusions/{exclusion}\0223organ" + + "izations/{organization}/exclusions/{excl" + + "usion}\022\'folders/{folder}/exclusions/{exc" + + "lusion}\0228billingAccounts/{billing_accoun" + + "t}/exclusions/{exclusion}\"\205\001\n\025ListExclus" + + "ionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#log" + + "ging.googleapis.com/LogExclusion\022\027\n\npage" + + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + + "\001\"f\n\026ListExclusionsResponse\0223\n\nexclusion" + + "s\030\001 \003(\0132\037.google.logging.v2.LogExclusion" + + "\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetExclusio" + + "nRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging." + + "googleapis.com/LogExclusion\"\216\001\n\026CreateEx" + + "clusionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + + "logging.googleapis.com/LogExclusion\0227\n\te" + + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + + "clusionB\003\340A\002\"\302\001\n\026UpdateExclusionRequest\022" + + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapi" + + "s.com/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037." + + "google.logging.v2.LogExclusionB\003\340A\002\0224\n\013u" + + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"S\n\026DeleteExclusionRequest\0229\n\004n" + + "ame\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.co" + + "m/LogExclusion\"S\n\026GetCmekSettingsRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + + "is.com/CmekSettings\"\241\001\n\031UpdateCmekSettin" + + "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_set" + + "tings\030\002 \001(\0132\037.google.logging.v2.CmekSett" + + "ingsB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\001\"\275\002\n\014CmekSettings" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(" + + "\t\022\034\n\024kms_key_version_name\030\004 \001(\t\022\037\n\022servi" + + "ce_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging" + + ".googleapis.com/CmekSettings\022\037projects/{" + + "project}/cmekSettings\022)organizations/{or" + + "ganization}/cmekSettings\022\035folders/{folde" + + "r}/cmekSettings\022.billingAccounts/{billin" + + "g_account}/cmekSettings\"K\n\022GetSettingsRe" + + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.goo" + + "gleapis.com/Settings\"\224\001\n\025UpdateSettingsR" + + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030\002 " + + "\001(\0132\033.google.logging.v2.SettingsB\003\340A\002\0224\n" + + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_se" + + "rvice_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage_l" + + "ocation\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_si" + + "nk\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleapis" + + ".com/Settings\022\033projects/{project}/settin" + + "gs\022%organizations/{organization}/setting" + + "s\022\031folders/{folder}/settings\022*billingAcc" + + "ounts/{billing_account}/settings\"Y\n\025Copy" + + "LogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\tB\003" + + "\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstart_" + + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022," + + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\0220\n\005state\030\003 \001(\0162!.google.logging.v2." + + "OperationState\022\036\n\026cancellation_requested" + + "\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.logging" + + ".v2.CopyLogEntriesRequest\022\020\n\010progress\030\006 " + + "\001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLogE" + + "ntriesResponse\022 \n\030log_entries_copied_cou" + + "nt\030\001 \001(\003\"\275\002\n\016BucketMetadata\022.\n\nstart_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\0220\n\005state\030\003 \001(\0162!.google.logging.v2.Ope" + + "rationState\022G\n\025create_bucket_request\030\004 \001" + + "(\0132&.google.logging.v2.CreateBucketReque" + + "stH\000\022G\n\025update_bucket_request\030\005 \001(\0132&.go" + + "ogle.logging.v2.UpdateBucketRequestH\000B\t\n" + + "\007request\"\263\002\n\014LinkMetadata\022.\n\nstart_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + + "0\n\005state\030\003 \001(\0162!.google.logging.v2.Opera" + + "tionState\022C\n\023create_link_request\030\004 \001(\0132$" + + ".google.logging.v2.CreateLinkRequestH\000\022C" + + "\n\023delete_link_request\030\005 \001(\0132$.google.log" + + "ging.v2.DeleteLinkRequestH\000B\t\n\007request\"1" + + "\n\020LocationMetadata\022\035\n\025log_analytics_enab" + + "led\030\001 \001(\010*\364\001\n\016OperationState\022\037\n\033OPERATIO" + + "N_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION_STATE" + + "_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WAITING_" + + "FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STATE_RUN" + + "NING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDED\020\004\022\032\n" + + "\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERATION_S" + + "TATE_CANCELLED\020\006*{\n\016LifecycleState\022\037\n\033LI" + + "FECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" + + "\024\n\020DELETE_REQUESTED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010C" + + "REATING\020\004\022\n\n\006FAILED\020\005*V\n\tIndexType\022\032\n\026IN" + + "DEX_TYPE_UNSPECIFIED\020\000\022\025\n\021INDEX_TYPE_STR" + + "ING\020\001\022\026\n\022INDEX_TYPE_INTEGER\020\0022\237Y\n\017Config" + + "ServiceV2\022\334\002\n\013ListBuckets\022%.google.loggi" + + "ng.v2.ListBucketsRequest\032&.google.loggin" + + "g.v2.ListBucketsResponse\"\375\001\332A\006parent\202\323\344\223" + + "\002\355\001\022$/v2/{parent=*/*/locations/*}/bucket" + + "sZ-\022+/v2/{parent=projects/*/locations/*}" + + "/bucketsZ2\0220/v2/{parent=organizations/*/" + + "locations/*}/bucketsZ,\022*/v2/{parent=fold" + + "ers/*/locations/*}/bucketsZ4\0222/v2/{paren" + + "t=billingAccounts/*/locations/*}/buckets" + + "\022\305\002\n\tGetBucket\022#.google.logging.v2.GetBu" + + "cketRequest\032\034.google.logging.v2.LogBucke" + + "t\"\364\001\202\323\344\223\002\355\001\022$/v2/{name=*/*/locations/*/b" + + "uckets/*}Z-\022+/v2/{name=projects/*/locati" + + "ons/*/buckets/*}Z2\0220/v2/{name=organizati" + + "ons/*/locations/*/buckets/*}Z,\022*/v2/{nam" + + "e=folders/*/locations/*/buckets/*}Z4\0222/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}\022\323\003\n\021CreateBucketAsync\022&.google." + + "logging.v2.CreateBucketRequest\032\035.google." + + "longrunning.Operation\"\366\002\312A\033\n\tLogBucket\022\016" + + "BucketMetadata\202\323\344\223\002\321\002\"0/v2/{parent=*/*/l" + + "ocations/*}/buckets:createAsync:\006bucketZ" + + "A\"7/v2/{parent=projects/*/locations/*}/b" + + "uckets:createAsync:\006bucketZF\"/v2/{parent=billingAccounts/*/lo" + + "cations/*}/buckets:createAsync:\006bucket\022\323" + + "\003\n\021UpdateBucketAsync\022&.google.logging.v2" + + ".UpdateBucketRequest\032\035.google.longrunnin" + + "g.Operation\"\366\002\312A\033\n\tLogBucket\022\016BucketMeta" + + "data\202\323\344\223\002\321\002\"0/v2/{name=*/*/locations/*/b" + + "uckets/*}:updateAsync:\006bucketZA\"7/v2/{na" + + "me=projects/*/locations/*/buckets/*}:upd" + + "ateAsync:\006bucketZF\"/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}:updateAsync:\006bucket\022\363\002\n\014CreateB" + + "ucket\022&.google.logging.v2.CreateBucketRe" + + "quest\032\034.google.logging.v2.LogBucket\"\234\002\202\323" + + "\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buck" + + "ets:\006bucketZ5\"+/v2/{parent=projects/*/lo" + + "cations/*}/buckets:\006bucketZ:\"0/v2/{paren" + + "t=organizations/*/locations/*}/buckets:\006" + + "bucketZ4\"*/v2/{parent=folders/*/location" + + "s/*}/buckets:\006bucketZ<\"2/v2/{parent=bill" + + "ingAccounts/*/locations/*}/buckets:\006buck" + + "et\022\363\002\n\014UpdateBucket\022&.google.logging.v2." + + "UpdateBucketRequest\032\034.google.logging.v2." + + "LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locat" + + "ions/*/buckets/*}:\006bucketZ52+/v2/{name=p" + + "rojects/*/locations/*/buckets/*}:\006bucket" + + "Z:20/v2/{name=organizations/*/locations/" + + "*/buckets/*}:\006bucketZ42*/v2/{name=folder" + + "s/*/locations/*/buckets/*}:\006bucketZ<22/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goog" + + "le.logging.v2.DeleteBucketRequest\032\026.goog" + + "le.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*" + + "/*/locations/*/buckets/*}Z-*+/v2/{name=p" + + "rojects/*/locations/*/buckets/*}Z2*0/v2/" + + "{name=organizations/*/locations/*/bucket" + + "s/*}Z,**/v2/{name=folders/*/locations/*/" + + "buckets/*}Z4*2/v2/{name=billingAccounts/" + + "*/locations/*/buckets/*}\022\205\003\n\016UndeleteBuc" + + "ket\022(.google.logging.v2.UndeleteBucketRe" + + "quest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"" + + "-/v2/{name=*/*/locations/*/buckets/*}:un" + + "delete:\001*Z9\"4/v2/{name=projects/*/locati" + + "ons/*/buckets/*}:undelete:\001*Z>\"9/v2/{nam" + + "e=organizations/*/locations/*/buckets/*}" + + ":undelete:\001*Z8\"3/v2/{name=folders/*/loca" + + "tions/*/buckets/*}:undelete:\001*Z@\";/v2/{n" + + "ame=billingAccounts/*/locations/*/bucket" + + "s/*}:undelete:\001*\022\376\002\n\tListViews\022#.google." + + "logging.v2.ListViewsRequest\032$.google.log" + + "ging.v2.ListViewsResponse\"\245\002\332A\006parent\202\323\344" + + "\223\002\225\002\022,/v2/{parent=*/*/locations/*/bucket" + + "s/*}/viewsZ5\0223/v2/{parent=projects/*/loc" + + "ations/*/buckets/*}/viewsZ:\0228/v2/{parent" + + "=organizations/*/locations/*/buckets/*}/" + + "viewsZ4\0222/v2/{parent=folders/*/locations" + + "/*/buckets/*}/viewsZ<\022:/v2/{parent=billi" + + "ngAccounts/*/locations/*/buckets/*}/view" + + "s\022\347\002\n\007GetView\022!.google.logging.v2.GetVie" + + "wRequest\032\032.google.logging.v2.LogView\"\234\002\202" + + "\323\344\223\002\225\002\022,/v2/{name=*/*/locations/*/bucket" + + "s/*/views/*}Z5\0223/v2/{name=projects/*/loc" + + "ations/*/buckets/*/views/*}Z:\0228/v2/{name" + + "=organizations/*/locations/*/buckets/*/v" + + "iews/*}Z4\0222/v2/{name=folders/*/locations" + + "/*/buckets/*/views/*}Z<\022:/v2/{name=billi" + + "ngAccounts/*/locations/*/buckets/*/views" + + "/*}\022\213\003\n\nCreateView\022$.google.logging.v2.C" + + "reateViewRequest\032\032.google.logging.v2.Log" + + "View\"\272\002\202\323\344\223\002\263\002\",/v2/{parent=*/*/location" + + "s/*/buckets/*}/views:\004viewZ;\"3/v2/{paren" + + "t=projects/*/locations/*/buckets/*}/view" + + "s:\004viewZ@\"8/v2/{parent=organizations/*/l" + + "ocations/*/buckets/*}/views:\004viewZ:\"2/v2" + + "/{parent=folders/*/locations/*/buckets/*" + + "}/views:\004viewZB\":/v2/{parent=billingAcco" + + "unts/*/locations/*/buckets/*}/views:\004vie" + + "w\022\213\003\n\nUpdateView\022$.google.logging.v2.Upd" + + "ateViewRequest\032\032.google.logging.v2.LogVi" + + "ew\"\272\002\202\323\344\223\002\263\0022,/v2/{name=*/*/locations/*/" + + "buckets/*/views/*}:\004viewZ;23/v2/{name=pr" + + "ojects/*/locations/*/buckets/*/views/*}:" + + "\004viewZ@28/v2/{name=organizations/*/locat" + + "ions/*/buckets/*/views/*}:\004viewZ:22/v2/{" + + "name=folders/*/locations/*/buckets/*/vie" + + "ws/*}:\004viewZB2:/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*/views/*}:\004view\022" + + "\351\002\n\nDeleteView\022$.google.logging.v2.Delet" + + "eViewRequest\032\026.google.protobuf.Empty\"\234\002\202" + + "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket" + + "s/*/views/*}Z5*3/v2/{name=projects/*/loc" + + "ations/*/buckets/*/views/*}Z:*8/v2/{name" + + "=organizations/*/locations/*/buckets/*/v" + + "iews/*}Z4*2/v2/{name=folders/*/locations" + + "/*/buckets/*/views/*}Z<*:/v2/{name=billi" + + "ngAccounts/*/locations/*/buckets/*/views" + + "/*}\022\220\002\n\tListSinks\022#.google.logging.v2.Li" + + "stSinksRequest\032$.google.logging.v2.ListS" + + "inksResponse\"\267\001\332A\006parent\202\323\344\223\002\247\001\022\026/v2/{pa" + + "rent=*/*}/sinksZ\037\022\035/v2/{parent=projects/" + + "*}/sinksZ$\022\"/v2/{parent=organizations/*}" + + "/sinksZ\036\022\034/v2/{parent=folders/*}/sinksZ&" + + "\022$/v2/{parent=billingAccounts/*}/sinks\022\236" + + "\002\n\007GetSink\022!.google.logging.v2.GetSinkRe" + + "quest\032\032.google.logging.v2.LogSink\"\323\001\332A\ts" + + "ink_name\202\323\344\223\002\300\001\022\033/v2/{sink_name=*/*/sink" + + "s/*}Z$\022\"/v2/{sink_name=projects/*/sinks/" + + "*}Z)\022\'/v2/{sink_name=organizations/*/sin" + + "ks/*}Z#\022!/v2/{sink_name=folders/*/sinks/" + + "*}Z+\022)/v2/{sink_name=billingAccounts/*/s" + + "inks/*}\022\253\002\n\nCreateSink\022$.google.logging." + + "v2.CreateSinkRequest\032\032.google.logging.v2" + + ".LogSink\"\332\001\332A\013parent,sink\202\323\344\223\002\305\001\"\026/v2/{p" + + "arent=*/*}/sinks:\004sinkZ%\"\035/v2/{parent=pr" + + "ojects/*}/sinks:\004sinkZ*\"\"/v2/{parent=org" + + "anizations/*}/sinks:\004sinkZ$\"\034/v2/{parent" + + "=folders/*}/sinks:\004sinkZ,\"$/v2/{parent=b" + + "illingAccounts/*}/sinks:\004sink\022\237\004\n\nUpdate" + + "Sink\022$.google.logging.v2.UpdateSinkReque" + + "st\032\032.google.logging.v2.LogSink\"\316\003\332A\032sink" + + "_name,sink,update_mask\332A\016sink_name,sink\202" + + "\323\344\223\002\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sin" + + "kZ*\032\"/v2/{sink_name=projects/*/sinks/*}:" + + "\004sinkZ/\032\'/v2/{sink_name=organizations/*/" + + "sinks/*}:\004sinkZ)\032!/v2/{sink_name=folders" + + "/*/sinks/*}:\004sinkZ1\032)/v2/{sink_name=bill" + + "ingAccounts/*/sinks/*}:\004sinkZ*2\"/v2/{sin", + "k_name=projects/*/sinks/*}:\004sinkZ/2\'/v2/" + + "{sink_name=organizations/*/sinks/*}:\004sin" + + "kZ)2!/v2/{sink_name=folders/*/sinks/*}:\004" + + "sinkZ12)/v2/{sink_name=billingAccounts/*" + + "/sinks/*}:\004sink\022\240\002\n\nDeleteSink\022$.google." + + "logging.v2.DeleteSinkRequest\032\026.google.pr" + + "otobuf.Empty\"\323\001\332A\tsink_name\202\323\344\223\002\300\001*\033/v2/" + + "{sink_name=*/*/sinks/*}Z$*\"/v2/{sink_nam" + + "e=projects/*/sinks/*}Z)*\'/v2/{sink_name=" + + "organizations/*/sinks/*}Z#*!/v2/{sink_na" + + "me=folders/*/sinks/*}Z+*)/v2/{sink_name=" + + "billingAccounts/*/sinks/*}\022\273\003\n\nCreateLin" + + "k\022$.google.logging.v2.CreateLinkRequest\032" + + "\035.google.longrunning.Operation\"\347\002\312A\024\n\004Li" + + "nk\022\014LinkMetadata\332A\023parent,link,link_id\202\323" + + "\344\223\002\263\002\",/v2/{parent=*/*/locations/*/bucke" + + "ts/*}/links:\004linkZ;\"3/v2/{parent=project" + + "s/*/locations/*/buckets/*}/links:\004linkZ@" + + "\"8/v2/{parent=organizations/*/locations/" + + "*/buckets/*}/links:\004linkZ:\"2/v2/{parent=" + + "folders/*/locations/*/buckets/*}/links:\004" + + "linkZB\":/v2/{parent=billingAccounts/*/lo" + + "cations/*/buckets/*}/links:\004link\022\237\003\n\nDel" + + "eteLink\022$.google.logging.v2.DeleteLinkRe" + + "quest\032\035.google.longrunning.Operation\"\313\002\312" + + "A%\n\025google.protobuf.Empty\022\014LinkMetadata\332" + + "A\004name\202\323\344\223\002\225\002*,/v2/{name=*/*/locations/*" + + "/buckets/*/links/*}Z5*3/v2/{name=project" + + "s/*/locations/*/buckets/*/links/*}Z:*8/v" + + "2/{name=organizations/*/locations/*/buck" + + "ets/*/links/*}Z4*2/v2/{name=folders/*/lo" + + "cations/*/buckets/*/links/*}Z<*:/v2/{nam" + + "e=billingAccounts/*/locations/*/buckets/" + + "*/links/*}\022\376\002\n\tListLinks\022#.google.loggin" + + "g.v2.ListLinksRequest\032$.google.logging.v" + + "2.ListLinksResponse\"\245\002\332A\006parent\202\323\344\223\002\225\002\022," + + "/v2/{parent=*/*/locations/*/buckets/*}/l" + + "inksZ5\0223/v2/{parent=projects/*/locations" + + "/*/buckets/*}/linksZ:\0228/v2/{parent=organ" + + "izations/*/locations/*/buckets/*}/linksZ" + + "4\0222/v2/{parent=folders/*/locations/*/buc" + + "kets/*}/linksZ<\022:/v2/{parent=billingAcco" + + "unts/*/locations/*/buckets/*}/links\022\353\002\n\007" + + "GetLink\022!.google.logging.v2.GetLinkReque" + + "st\032\027.google.logging.v2.Link\"\243\002\332A\004name\202\323\344" + + "\223\002\225\002\022,/v2/{name=*/*/locations/*/buckets/" + + "*/links/*}Z5\0223/v2/{name=projects/*/locat" + + "ions/*/buckets/*/links/*}Z:\0228/v2/{name=o" + + "rganizations/*/locations/*/buckets/*/lin" + + "ks/*}Z4\0222/v2/{name=folders/*/locations/*" + + "/buckets/*/links/*}Z<\022:/v2/{name=billing" + + "Accounts/*/locations/*/buckets/*/links/*" + + "}\022\270\002\n\016ListExclusions\022(.google.logging.v2" + + ".ListExclusionsRequest\032).google.logging." + + "v2.ListExclusionsResponse\"\320\001\332A\006parent\202\323\344" + + "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" + + "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" + + "parent=organizations/*}/exclusionsZ#\022!/v" + + "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" + + "parent=billingAccounts/*}/exclusions\022\250\002\n" + + "\014GetExclusion\022&.google.logging.v2.GetExc" + + "lusionRequest\032\037.google.logging.v2.LogExc" + + "lusion\"\316\001\332A\004name\202\323\344\223\002\300\001\022\033/v2/{name=*/*/e" + + "xclusions/*}Z$\022\"/v2/{name=projects/*/exc" + + "lusions/*}Z)\022\'/v2/{name=organizations/*/" + + "exclusions/*}Z#\022!/v2/{name=folders/*/exc" + + "lusions/*}Z+\022)/v2/{name=billingAccounts/" + + "*/exclusions/*}\022\361\002\n\017CreateExclusion\022).go" + + "ogle.logging.v2.CreateExclusionRequest\032\037" + + ".google.logging.v2.LogExclusion\"\221\002\332A\020par" + + "ent,exclusion\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/e" + + "xclusions:\texclusionZ/\"\"/v2/{parent=proj" + + "ects/*}/exclusions:\texclusionZ4\"\'/v2/{pa" + + "rent=organizations/*}/exclusions:\texclus" + + "ionZ.\"!/v2/{parent=folders/*}/exclusions" + + ":\texclusionZ6\")/v2/{parent=billingAccoun" + + "ts/*}/exclusions:\texclusion\022\373\002\n\017UpdateEx" + + "clusion\022).google.logging.v2.UpdateExclus" + + "ionRequest\032\037.google.logging.v2.LogExclus" + + "ion\"\233\002\332A\032name,exclusion,update_mask\202\323\344\223\002" + + "\367\0012\033/v2/{name=*/*/exclusions/*}:\texclusi" + + "onZ/2\"/v2/{name=projects/*/exclusions/*}" + + ":\texclusionZ42\'/v2/{name=organizations/*" + + "/exclusions/*}:\texclusionZ.2!/v2/{name=f" + + "olders/*/exclusions/*}:\texclusionZ62)/v2" + + "/{name=billingAccounts/*/exclusions/*}:\t" + + "exclusion\022\245\002\n\017DeleteExclusion\022).google.l" + + "ogging.v2.DeleteExclusionRequest\032\026.googl" + + "e.protobuf.Empty\"\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{" + + "name=*/*/exclusions/*}Z$*\"/v2/{name=proj" + + "ects/*/exclusions/*}Z)*\'/v2/{name=organi" + + "zations/*/exclusions/*}Z#*!/v2/{name=fol" + + "ders/*/exclusions/*}Z+*)/v2/{name=billin" + + "gAccounts/*/exclusions/*}\022\247\002\n\017GetCmekSet" + + "tings\022).google.logging.v2.GetCmekSetting" + + "sRequest\032\037.google.logging.v2.CmekSetting" + + "s\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*}/cmekSettings" + + "Z$\022\"/v2/{name=projects/*}/cmekSettingsZ)" + + "\022\'/v2/{name=organizations/*}/cmekSetting" + + "sZ#\022!/v2/{name=folders/*}/cmekSettingsZ+" + + "\022)/v2/{name=billingAccounts/*}/cmekSetti" + + "ngs\022\321\001\n\022UpdateCmekSettings\022,.google.logg" + + "ing.v2.UpdateCmekSettingsRequest\032\037.googl" + + "e.logging.v2.CmekSettings\"l\202\323\344\223\002f2\033/v2/{" + + "name=*/*}/cmekSettings:\rcmek_settingsZ82" + + "\'/v2/{name=organizations/*}/cmekSettings" + + ":\rcmek_settings\022\216\002\n\013GetSettings\022%.google" + + ".logging.v2.GetSettingsRequest\032\033.google." + + "logging.v2.Settings\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v" + + "2/{name=*/*}/settingsZ \022\036/v2/{name=proje" + + "cts/*}/settingsZ%\022#/v2/{name=organizatio" + + "ns/*}/settingsZ\037\022\035/v2/{name=folders/*}/s" + + "ettingsZ\'\022%/v2/{name=billingAccounts/*}/" + + "settings\022\366\001\n\016UpdateSettings\022(.google.log" + + "ging.v2.UpdateSettingsRequest\032\033.google.l" + + "ogging.v2.Settings\"\234\001\332A\024settings,update_" + + "mask\202\323\344\223\002\1772\027/v2/{name=*/*}/settings:\010set" + + "tingsZ/2#/v2/{name=organizations/*}/sett" + + "ings:\010settingsZ)2\035/v2/{name=folders/*}/s" + + "ettings:\010settings\022\251\001\n\016CopyLogEntries\022(.g" + + "oogle.logging.v2.CopyLogEntriesRequest\032\035" + + ".google.longrunning.Operation\"N\312A0\n\026Copy" + + "LogEntriesResponse\022\026CopyLogEntriesMetada" + + "ta\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\032\337\001\312A\026loggi" + + "ng.googleapis.com\322A\302\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/cloud-platform.read-" + + "only,https://www.googleapis.com/auth/log" + + "ging.admin,https://www.googleapis.com/au" + + "th/logging.readB\326\003\n\025com.google.logging.v" + + "2B\022LoggingConfigProtoP\001Z5cloud.google.co" + + "m/go/logging/apiv2/loggingpb;loggingpb\370\001" + + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" + + "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::" + + "V2\352A`\n+logging.googleapis.com/Organizati" + + "onLocation\0221organizations/{organization}" + + "/locations/{location}\352AN\n%logging.google" + + "apis.com/FolderLocation\022%folders/{folder" + + "}/locations/{location}\352Ag\n-logging.googl" + + "eapis.com/BillingAccountLocation\0226billin" + + "gAccounts/{billing_account}/locations/{l" + + "ocation}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_logging_v2_IndexConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_IndexConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_IndexConfig_descriptor, + new java.lang.String[] { "FieldPath", "Type", "CreateTime", }); + internal_static_google_logging_v2_LogBucket_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_LogBucket_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogBucket_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "RetentionDays", "Locked", "LifecycleState", "AnalyticsEnabled", "RestrictedFields", "IndexConfigs", "CmekSettings", }); + internal_static_google_logging_v2_LogView_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_LogView_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogView_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Filter", }); + internal_static_google_logging_v2_LogSink_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_LogSink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogSink_descriptor, + new java.lang.String[] { "Name", "Destination", "Filter", "Description", "Disabled", "Exclusions", "OutputVersionFormat", "WriterIdentity", "IncludeChildren", "BigqueryOptions", "CreateTime", "UpdateTime", "Options", }); + internal_static_google_logging_v2_BigQueryDataset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BigQueryDataset_descriptor, + new java.lang.String[] { "DatasetId", }); + internal_static_google_logging_v2_Link_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_Link_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_Link_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "LifecycleState", "BigqueryDataset", }); + internal_static_google_logging_v2_BigQueryOptions_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BigQueryOptions_descriptor, + new java.lang.String[] { "UsePartitionedTables", "UsesTimestampColumnPartitioning", }); + internal_static_google_logging_v2_ListBucketsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListBucketsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListBucketsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListBucketsResponse_descriptor, + new java.lang.String[] { "Buckets", "NextPageToken", }); + internal_static_google_logging_v2_CreateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateBucketRequest_descriptor, + new java.lang.String[] { "Parent", "BucketId", "Bucket", }); + internal_static_google_logging_v2_UpdateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateBucketRequest_descriptor, + new java.lang.String[] { "Name", "Bucket", "UpdateMask", }); + internal_static_google_logging_v2_GetBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetBucketRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_DeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteBucketRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_ListViewsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListViewsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListViewsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListViewsResponse_descriptor, + new java.lang.String[] { "Views", "NextPageToken", }); + internal_static_google_logging_v2_CreateViewRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateViewRequest_descriptor, + new java.lang.String[] { "Parent", "ViewId", "View", }); + internal_static_google_logging_v2_UpdateViewRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateViewRequest_descriptor, + new java.lang.String[] { "Name", "View", "UpdateMask", }); + internal_static_google_logging_v2_GetViewRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetViewRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_DeleteViewRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteViewRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_ListSinksRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListSinksRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListSinksResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListSinksResponse_descriptor, + new java.lang.String[] { "Sinks", "NextPageToken", }); + internal_static_google_logging_v2_GetSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetSinkRequest_descriptor, + new java.lang.String[] { "SinkName", }); + internal_static_google_logging_v2_CreateSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateSinkRequest_descriptor, + new java.lang.String[] { "Parent", "Sink", "UniqueWriterIdentity", }); + internal_static_google_logging_v2_UpdateSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateSinkRequest_descriptor, + new java.lang.String[] { "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask", }); + internal_static_google_logging_v2_DeleteSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteSinkRequest_descriptor, + new java.lang.String[] { "SinkName", }); + internal_static_google_logging_v2_CreateLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateLinkRequest_descriptor, + new java.lang.String[] { "Parent", "Link", "LinkId", }); + internal_static_google_logging_v2_DeleteLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLinkRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_ListLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLinksRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLinksResponse_descriptor, + new java.lang.String[] { "Links", "NextPageToken", }); + internal_static_google_logging_v2_GetLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetLinkRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_LogExclusion_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_logging_v2_LogExclusion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogExclusion_descriptor, + new java.lang.String[] { "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime", }); + internal_static_google_logging_v2_ListExclusionsRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListExclusionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListExclusionsResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListExclusionsResponse_descriptor, + new java.lang.String[] { "Exclusions", "NextPageToken", }); + internal_static_google_logging_v2_GetExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetExclusionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_CreateExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateExclusionRequest_descriptor, + new java.lang.String[] { "Parent", "Exclusion", }); + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor, + new java.lang.String[] { "Name", "Exclusion", "UpdateMask", }); + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor, + new java.lang.String[] { "Name", "CmekSettings", "UpdateMask", }); + internal_static_google_logging_v2_CmekSettings_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CmekSettings_descriptor, + new java.lang.String[] { "Name", "KmsKeyName", "KmsKeyVersionName", "ServiceAccountId", }); + internal_static_google_logging_v2_GetSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetSettingsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor, + new java.lang.String[] { "Name", "Settings", "UpdateMask", }); + internal_static_google_logging_v2_Settings_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_logging_v2_Settings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_Settings_descriptor, + new java.lang.String[] { "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink", }); + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor, + new java.lang.String[] { "Name", "Filter", "Destination", }); + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "State", "CancellationRequested", "Request", "Progress", "WriterIdentity", }); + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor, + new java.lang.String[] { "LogEntriesCopiedCount", }); + internal_static_google_logging_v2_BucketMetadata_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BucketMetadata_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "State", "CreateBucketRequest", "UpdateBucketRequest", "Request", }); + internal_static_google_logging_v2_LinkMetadata_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LinkMetadata_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "State", "CreateLinkRequest", "DeleteLinkRequest", "Request", }); + internal_static_google_logging_v2_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LocationMetadata_descriptor, + new java.lang.String[] { "LogAnalyticsEnabled", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java new file mode 100644 index 000000000..ae603a91c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -0,0 +1,224 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingMetricsProto { + private LoggingMetricsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogMetric_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/logging/v2/logging_metrics.prot" + + "o\022\021google.logging.v2\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\035goo" + + "gle/api/distribution.proto\032\037google/api/f" + + "ield_behavior.proto\032\027google/api/metric.p" + + "roto\032\031google/api/resource.proto\032\033google/" + + "protobuf/empty.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\275\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\002\022\030\n\013bucket_name\030\r \001(\tB\003\340A\001\022" + + "\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021metric_descrip" + + "tor\030\005 \001(\0132\034.google.api.MetricDescriptorB" + + "\003\340A\001\022\034\n\017value_extractor\030\006 \001(\tB\003\340A\001\022P\n\020la" + + "bel_extractors\030\007 \003(\01321.google.logging.v2" + + ".LogMetric.LabelExtractorsEntryB\003\340A\001\022C\n\016" + + "bucket_options\030\010 \001(\0132&.google.api.Distri" + + "bution.BucketOptionsB\003\340A\001\0224\n\013create_time" + + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022<\n\007version\030\004 \001(\0162\'.google." + + "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L" + + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020" + + "\001:J\352AG\n logging.googleapis.com/LogMetric" + + "\022#projects/{project}/metrics/{metric}\"\215\001" + + "\n\025ListLogMetricsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026ListLogMetricsR" + + "esponse\022-\n\007metrics\030\001 \003(\0132\034.google.loggin" + + "g.v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\"" + + "T\n\023GetLogMetricRequest\022=\n\013metric_name\030\001 " + + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + + "etric\"\205\001\n\026CreateLogMetricRequest\0228\n\006pare" + + "nt\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapis.com" + + "/LogMetric\0221\n\006metric\030\002 \001(\0132\034.google.logg" + + "ing.v2.LogMetricB\003\340A\002\"\212\001\n\026UpdateLogMetri" + + "cRequest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogMetric\0221\n\006metri" + + "c\030\002 \001(\0132\034.google.logging.v2.LogMetricB\003\340" + + "A\002\"W\n\026DeleteLogMetricRequest\022=\n\013metric_n" + + "ame\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.co" + + "m/LogMetric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis" + + "tLogMetrics\022(.google.logging.v2.ListLogM" + + "etricsRequest\032).google.logging.v2.ListLo" + + "gMetricsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v2/{" + + "parent=projects/*}/metrics\022\222\001\n\014GetLogMet" + + "ric\022&.google.logging.v2.GetLogMetricRequ" + + "est\032\034.google.logging.v2.LogMetric\"<\332A\013me" + + "tric_name\202\323\344\223\002(\022&/v2/{metric_name=projec" + + "ts/*/metrics/*}\022\233\001\n\017CreateLogMetric\022).go" + + "ogle.logging.v2.CreateLogMetricRequest\032\034" + + ".google.logging.v2.LogMetric\"?\332A\rparent," + + "metric\202\323\344\223\002)\"\037/v2/{parent=projects/*}/me" + + "trics:\006metric\022\247\001\n\017UpdateLogMetric\022).goog" + + "le.logging.v2.UpdateLogMetricRequest\032\034.g" + + "oogle.logging.v2.LogMetric\"K\332A\022metric_na" + + "me,metric\202\323\344\223\0020\032&/v2/{metric_name=projec" + + "ts/*/metrics/*}:\006metric\022\222\001\n\017DeleteLogMet" + + "ric\022).google.logging.v2.DeleteLogMetricR" + + "equest\032\026.google.protobuf.Empty\"<\332A\013metri" + + "c_name\202\323\344\223\002(*&/v2/{metric_name=projects/" + + "*/metrics/*}\032\215\002\312A\026logging.googleapis.com" + + "\322A\360\001https://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/cloud-platform.read-only,https://www." + + "googleapis.com/auth/logging.admin,https:" + + "//www.googleapis.com/auth/logging.read,h" + + "ttps://www.googleapis.com/auth/logging.w" + + "riteB\271\001\n\025com.google.logging.v2B\023LoggingM" + + "etricsProtoP\001Z5cloud.google.com/go/loggi" + + "ng/apiv2/loggingpb;loggingpb\370\001\001\252\002\027Google" + + ".Cloud.Logging.V2\312\002\027Google\\Cloud\\Logging" + + "\\V2\352\002\032Google::Cloud::Logging::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.DistributionProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_logging_v2_LogMetric_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_LogMetric_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogMetric_descriptor, + new java.lang.String[] { "Name", "Description", "Filter", "BucketName", "Disabled", "MetricDescriptor", "ValueExtractor", "LabelExtractors", "BucketOptions", "CreateTime", "UpdateTime", "Version", }); + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor = + internal_static_google_logging_v2_LogMetric_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor, + new java.lang.String[] { "Metrics", "NextPageToken", }); + internal_static_google_logging_v2_GetLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetLogMetricRequest_descriptor, + new java.lang.String[] { "MetricName", }); + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor, + new java.lang.String[] { "Parent", "Metric", }); + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor, + new java.lang.String[] { "MetricName", "Metric", }); + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor, + new java.lang.String[] { "MetricName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.DistributionProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java new file mode 100644 index 000000000..fb30894a2 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -0,0 +1,333 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingProto { + private LoggingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteLogRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037google/logging/v2/logging.proto\022\021googl" + + "e.logging.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032#google/api/monitor" + + "ed_resource.proto\032\031google/api/resource.p" + + "roto\032!google/logging/v2/log_entry.proto\032" + + "\036google/protobuf/duration.proto\032\033google/" + + "protobuf/empty.proto\032\027google/rpc/status." + + "proto\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + + "logging.v2.WriteLogEntriesRequest.Labels" + + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + + "EntriesPartialErrors\022]\n\020log_entry_errors" + + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + + "redResourceDescriptorsRequest\022\026\n\tpage_si" + + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + + "\001\n(ListMonitoredResourceDescriptorsRespo" + + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + + "pis.com/Log\022:\n\016resource_names\030\010 \003(\tB\"\340A\001" + + "\372A\034\022\032logging.googleapis.com/Log\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + + "\033.google.logging.v2.LogEntry\022S\n\020suppress" + + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + + "ogging.v2.TailLogEntriesResponse.Suppres" + + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\351\r\n\020Loggin" + + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + + "g.v2.DeleteLogRequest\032\026.google.protobuf." + + "Empty\"\310\001\332A\010log_name\202\323\344\223\002\266\001* /v2/{log_nam" + + "e=projects/*/logs/*}Z\033*\031/v2/{log_name=*/" + + "*/logs/*}Z\'*%/v2/{log_name=organizations" + + "/*/logs/*}Z!*\037/v2/{log_name=folders/*/lo" + + "gs/*}Z)*\'/v2/{log_name=billingAccounts/*" + + "/logs/*}\022\251\001\n\017WriteLogEntries\022).google.lo" + + "gging.v2.WriteLogEntriesRequest\032*.google" + + ".logging.v2.WriteLogEntriesResponse\"?\332A " + + "log_name,resource,labels,entries\202\323\344\223\002\026\"\021" + + "/v2/entries:write:\001*\022\243\001\n\016ListLogEntries\022" + + "(.google.logging.v2.ListLogEntriesReques" + + "t\032).google.logging.v2.ListLogEntriesResp" + + "onse\"<\332A\036resource_names,filter,order_by\202" + + "\323\344\223\002\025\"\020/v2/entries:list:\001*\022\305\001\n ListMonit" + + "oredResourceDescriptors\022:.google.logging" + + ".v2.ListMonitoredResourceDescriptorsRequ" + + "est\032;.google.logging.v2.ListMonitoredRes" + + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + + "nitoredResourceDescriptors\022\213\004\n\010ListLogs\022" + + "\".google.logging.v2.ListLogsRequest\032#.go" + + "ogle.logging.v2.ListLogsResponse\"\265\003\332A\006pa" + + "rent\202\323\344\223\002\245\003\022\025/v2/{parent=*/*}/logsZ\036\022\034/v" + + "2/{parent=projects/*}/logsZ#\022!/v2/{paren" + + "t=organizations/*}/logsZ\035\022\033/v2/{parent=f" + + "olders/*}/logsZ%\022#/v2/{parent=billingAcc" + + "ounts/*}/logsZ<\022:/v2/{parent=projects/*/" + + "locations/*/buckets/*/views/*}/logsZA\022?/" + + "v2/{parent=organizations/*/locations/*/b" + + "uckets/*/views/*}/logsZ;\0229/v2/{parent=fo" + + "lders/*/locations/*/buckets/*/views/*}/l" + + "ogsZC\022A/v2/{parent=billingAccounts/*/loc" + + "ations/*/buckets/*/views/*}/logs\022\206\001\n\016Tai" + + "lLogEntries\022(.google.logging.v2.TailLogE" + + "ntriesRequest\032).google.logging.v2.TailLo" + + "gEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:ta" + + "il:\001*(\0010\001\032\215\002\312A\026logging.googleapis.com\322A\360" + + "\001https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-platform.read-only,https://www.goo" + + "gleapis.com/auth/logging.admin,https://w" + + "ww.googleapis.com/auth/logging.read,http" + + "s://www.googleapis.com/auth/logging.writ" + + "eB\262\001\n\025com.google.logging.v2B\014LoggingProt" + + "oP\001Z5cloud.google.com/go/logging/apiv2/l" + + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" + + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" + + "le::Cloud::Logging::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.logging.v2.LogEntryProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_logging_v2_DeleteLogRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLogRequest_descriptor, + new java.lang.String[] { "LogName", }); + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor, + new java.lang.String[] { "LogName", "Resource", "Labels", "Entries", "PartialSuccess", "DryRun", }); + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor = + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor, + new java.lang.String[] { "LogEntryErrors", }); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor = + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor, + new java.lang.String[] { "ResourceNames", "Filter", "OrderBy", "PageSize", "PageToken", }); + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor, + new java.lang.String[] { "Entries", "NextPageToken", }); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor, + new java.lang.String[] { "ResourceDescriptors", "NextPageToken", }); + internal_static_google_logging_v2_ListLogsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogsRequest_descriptor, + new java.lang.String[] { "Parent", "ResourceNames", "PageSize", "PageToken", }); + internal_static_google_logging_v2_ListLogsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogsResponse_descriptor, + new java.lang.String[] { "LogNames", "NextPageToken", }); + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor, + new java.lang.String[] { "ResourceNames", "Filter", "BufferWindow", }); + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor, + new java.lang.String[] { "Entries", "SuppressionInfo", }); + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor = + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor, + new java.lang.String[] { "Reason", "SuppressedCount", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.logging.v2.LogEntryProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java index 112ac404d..c45419ae6 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * List of different operation states.
  * High level state of the operation. This is used to report the job's
@@ -32,10 +15,9 @@
  *
  * Protobuf enum {@code google.logging.v2.OperationState}
  */
-public enum OperationState implements com.google.protobuf.ProtocolMessageEnum {
+public enum OperationState
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Should not be used.
    * 
@@ -44,8 +26,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_UNSPECIFIED(0), /** - * - * *
    * The operation is scheduled.
    * 
@@ -54,8 +34,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_SCHEDULED(1), /** - * - * *
    * Waiting for necessary permissions.
    * 
@@ -64,8 +42,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), /** - * - * *
    * The operation is running.
    * 
@@ -74,8 +50,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_RUNNING(3), /** - * - * *
    * The operation was completed successfully.
    * 
@@ -84,8 +58,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_SUCCEEDED(4), /** - * - * *
    * The operation failed.
    * 
@@ -94,8 +66,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_FAILED(5), /** - * - * *
    * The operation was cancelled by the user.
    * 
@@ -107,8 +77,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Should not be used.
    * 
@@ -117,8 +85,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The operation is scheduled.
    * 
@@ -127,8 +93,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; /** - * - * *
    * Waiting for necessary permissions.
    * 
@@ -137,8 +101,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; /** - * - * *
    * The operation is running.
    * 
@@ -147,8 +109,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_RUNNING_VALUE = 3; /** - * - * *
    * The operation was completed successfully.
    * 
@@ -157,8 +117,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; /** - * - * *
    * The operation failed.
    * 
@@ -167,8 +125,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_FAILED_VALUE = 5; /** - * - * *
    * The operation was cancelled by the user.
    * 
@@ -177,6 +133,7 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_CANCELLED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -201,57 +158,53 @@ public static OperationState valueOf(int value) { */ public static OperationState forNumber(int value) { switch (value) { - case 0: - return OPERATION_STATE_UNSPECIFIED; - case 1: - return OPERATION_STATE_SCHEDULED; - case 2: - return OPERATION_STATE_WAITING_FOR_PERMISSIONS; - case 3: - return OPERATION_STATE_RUNNING; - case 4: - return OPERATION_STATE_SUCCEEDED; - case 5: - return OPERATION_STATE_FAILED; - case 6: - return OPERATION_STATE_CANCELLED; - default: - return null; + case 0: return OPERATION_STATE_UNSPECIFIED; + case 1: return OPERATION_STATE_SCHEDULED; + case 2: return OPERATION_STATE_WAITING_FOR_PERMISSIONS; + case 3: return OPERATION_STATE_RUNNING; + case 4: return OPERATION_STATE_SUCCEEDED; + case 5: return OPERATION_STATE_FAILED; + case 6: return OPERATION_STATE_CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationState findValueByNumber(int number) { - return OperationState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationState findValueByNumber(int number) { + return OperationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(0); } private static final OperationState[] VALUES = values(); - public static OperationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -267,3 +220,4 @@ private OperationState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.OperationState) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java index 1fd8e8e1d..e9b6c53a1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Describes the settings associated with a project, folder, organization,
  * billing account, or flexible resource.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.logging.v2.Settings}
  */
-public final class Settings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Settings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.Settings)
     SettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Settings.newBuilder() to construct.
   private Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Settings() {
     name_ = "";
     kmsKeyName_ = "";
@@ -48,37 +30,33 @@ private Settings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Settings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_Settings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_Settings_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -87,29 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,12 +96,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -155,7 +130,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyName. */ @java.lang.Override @@ -164,15 +138,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -204,15 +177,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -221,12 +195,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object kmsServiceAccountId_ = ""; /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -243,7 +214,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kmsServiceAccountId. */ @java.lang.Override @@ -252,15 +222,14 @@ public java.lang.String getKmsServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsServiceAccountId_ = s; return s; } } /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -277,15 +246,16 @@ public java.lang.String getKmsServiceAccountId() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kmsServiceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getKmsServiceAccountIdBytes() { java.lang.Object ref = kmsServiceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsServiceAccountId_ = b; return b; } else { @@ -294,12 +264,9 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { } public static final int STORAGE_LOCATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object storageLocation_ = ""; /** - * - * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The storageLocation. */ @java.lang.Override @@ -316,15 +282,14 @@ public java.lang.String getStorageLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageLocation_ = s; return s; } } /** - * - * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -332,15 +297,16 @@ public java.lang.String getStorageLocation() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for storageLocation. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageLocationBytes() { + public com.google.protobuf.ByteString + getStorageLocationBytes() { java.lang.Object ref = storageLocation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageLocation_ = b; return b; } else { @@ -351,8 +317,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() { public static final int DISABLE_DEFAULT_SINK_FIELD_NUMBER = 5; private boolean disableDefaultSink_ = false; /** - * - * *
    * Optional. If set to true, the _Default sink in newly created projects and
    * folders will created in a disabled state. This can be used to automatically
@@ -361,7 +325,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() {
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ @java.lang.Override @@ -370,7 +333,6 @@ public boolean getDisableDefaultSink() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +344,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -420,7 +383,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageLocation_); } if (disableDefaultSink_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableDefaultSink_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, disableDefaultSink_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -430,18 +394,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.Settings)) { return super.equals(obj); } com.google.logging.v2.Settings other = (com.google.logging.v2.Settings) obj; - if (!getName().equals(other.getName())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsServiceAccountId().equals(other.getKmsServiceAccountId())) return false; - if (!getStorageLocation().equals(other.getStorageLocation())) return false; - if (getDisableDefaultSink() != other.getDisableDefaultSink()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsServiceAccountId() + .equals(other.getKmsServiceAccountId())) return false; + if (!getStorageLocation() + .equals(other.getStorageLocation())) return false; + if (getDisableDefaultSink() + != other.getDisableDefaultSink()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,109 +431,106 @@ public int hashCode() { hash = (37 * hash) + STORAGE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getStorageLocation().hashCode(); hash = (37 * hash) + DISABLE_DEFAULT_SINK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultSink()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableDefaultSink()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.Settings parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.Settings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.Settings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.ByteString data) + public static com.google.logging.v2.Settings parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.Settings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.Settings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.Settings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.Settings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.Settings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.logging.v2.Settings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.Settings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.logging.v2.Settings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.Settings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.Settings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes the settings associated with a project, folder, organization,
    * billing account, or flexible resource.
@@ -572,31 +538,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.Settings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.Settings)
       com.google.logging.v2.SettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_Settings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_Settings_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class);
     }
 
     // Construct using com.google.logging.v2.Settings.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -610,9 +578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_Settings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
     }
 
     @java.lang.Override
@@ -632,9 +600,7 @@ public com.google.logging.v2.Settings build() {
     @java.lang.Override
     public com.google.logging.v2.Settings buildPartial() {
       com.google.logging.v2.Settings result = new com.google.logging.v2.Settings(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -662,39 +628,38 @@ private void buildPartial0(com.google.logging.v2.Settings result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.Settings) {
-        return mergeFrom((com.google.logging.v2.Settings) other);
+        return mergeFrom((com.google.logging.v2.Settings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,43 +717,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                kmsServiceAccountId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                storageLocation_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                disableDefaultSink_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              kmsServiceAccountId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              storageLocation_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              disableDefaultSink_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -798,25 +757,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -825,21 +781,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -847,35 +802,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -885,21 +833,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -909,8 +853,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -942,13 +884,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -957,8 +899,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -990,14 +930,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1005,8 +946,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1038,22 +977,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1085,7 +1020,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1095,8 +1029,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1128,14 +1060,12 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -1145,8 +1075,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsServiceAccountId_ = ""; /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1163,13 +1091,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kmsServiceAccountId. */ public java.lang.String getKmsServiceAccountId() { java.lang.Object ref = kmsServiceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsServiceAccountId_ = s; return s; @@ -1178,8 +1106,6 @@ public java.lang.String getKmsServiceAccountId() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1196,14 +1122,15 @@ public java.lang.String getKmsServiceAccountId() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kmsServiceAccountId. */ - public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getKmsServiceAccountIdBytes() { java.lang.Object ref = kmsServiceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsServiceAccountId_ = b; return b; } else { @@ -1211,8 +1138,6 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1229,22 +1154,18 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The kmsServiceAccountId to set. * @return This builder for chaining. */ - public Builder setKmsServiceAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsServiceAccountId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1261,7 +1182,6 @@ public Builder setKmsServiceAccountId(java.lang.String value) {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearKmsServiceAccountId() { @@ -1271,8 +1191,6 @@ public Builder clearKmsServiceAccountId() { return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1289,14 +1207,12 @@ public Builder clearKmsServiceAccountId() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for kmsServiceAccountId to set. * @return This builder for chaining. */ - public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsServiceAccountId_ = value; bitField0_ |= 0x00000004; @@ -1306,8 +1222,6 @@ public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) private java.lang.Object storageLocation_ = ""; /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1315,13 +1229,13 @@ public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value)
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The storageLocation. */ public java.lang.String getStorageLocation() { java.lang.Object ref = storageLocation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageLocation_ = s; return s; @@ -1330,8 +1244,6 @@ public java.lang.String getStorageLocation() { } } /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1339,14 +1251,15 @@ public java.lang.String getStorageLocation() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for storageLocation. */ - public com.google.protobuf.ByteString getStorageLocationBytes() { + public com.google.protobuf.ByteString + getStorageLocationBytes() { java.lang.Object ref = storageLocation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageLocation_ = b; return b; } else { @@ -1354,8 +1267,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() { } } /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1363,22 +1274,18 @@ public com.google.protobuf.ByteString getStorageLocationBytes() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The storageLocation to set. * @return This builder for chaining. */ - public Builder setStorageLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storageLocation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1386,7 +1293,6 @@ public Builder setStorageLocation(java.lang.String value) {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearStorageLocation() { @@ -1396,8 +1302,6 @@ public Builder clearStorageLocation() { return this; } /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1405,14 +1309,12 @@ public Builder clearStorageLocation() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for storageLocation to set. * @return This builder for chaining. */ - public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageLocation_ = value; bitField0_ |= 0x00000008; @@ -1420,10 +1322,8 @@ public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { return this; } - private boolean disableDefaultSink_; + private boolean disableDefaultSink_ ; /** - * - * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1432,7 +1332,6 @@ public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ @java.lang.Override @@ -1440,8 +1339,6 @@ public boolean getDisableDefaultSink() { return disableDefaultSink_; } /** - * - * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1450,7 +1347,6 @@ public boolean getDisableDefaultSink() {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disableDefaultSink to set. * @return This builder for chaining. */ @@ -1462,8 +1358,6 @@ public Builder setDisableDefaultSink(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1472,7 +1366,6 @@ public Builder setDisableDefaultSink(boolean value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisableDefaultSink() { @@ -1481,9 +1374,9 @@ public Builder clearDisableDefaultSink() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,12 +1386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.Settings) } // @@protoc_insertion_point(class_scope:google.logging.v2.Settings) private static final com.google.logging.v2.Settings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.Settings(); } @@ -1507,27 +1400,27 @@ public static com.google.logging.v2.Settings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Settings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Settings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1542,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.Settings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java similarity index 85% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java index 49dd3f8a9..1f3b2b529 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java @@ -1,57 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface SettingsOrBuilder - extends +public interface SettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.Settings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -83,13 +60,10 @@ public interface SettingsOrBuilder
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -121,14 +95,12 @@ public interface SettingsOrBuilder
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -145,13 +117,10 @@ public interface SettingsOrBuilder
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kmsServiceAccountId. */ java.lang.String getKmsServiceAccountId(); /** - * - * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -168,14 +137,12 @@ public interface SettingsOrBuilder
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kmsServiceAccountId. */ - com.google.protobuf.ByteString getKmsServiceAccountIdBytes(); + com.google.protobuf.ByteString + getKmsServiceAccountIdBytes(); /** - * - * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -183,13 +150,10 @@ public interface SettingsOrBuilder
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The storageLocation. */ java.lang.String getStorageLocation(); /** - * - * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -197,14 +161,12 @@ public interface SettingsOrBuilder
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for storageLocation. */ - com.google.protobuf.ByteString getStorageLocationBytes(); + com.google.protobuf.ByteString + getStorageLocationBytes(); /** - * - * *
    * Optional. If set to true, the _Default sink in newly created projects and
    * folders will created in a disabled state. This can be used to automatically
@@ -213,7 +175,6 @@ public interface SettingsOrBuilder
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ boolean getDisableDefaultSink(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java similarity index 77% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java index 7bfd27560..03ce6f835 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java @@ -1,78 +1,57 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `TailLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesRequest} */ -public final class TailLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TailLogEntriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesRequest) TailLogEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TailLogEntriesRequest.newBuilder() to construct. private TailLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TailLogEntriesRequest() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TailLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesRequest.class, - com.google.logging.v2.TailLogEntriesRequest.Builder.class); + com.google.logging.v2.TailLogEntriesRequest.class, com.google.logging.v2.TailLogEntriesRequest.Builder.class); } private int bitField0_; public static final int RESOURCE_NAMES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -90,15 +69,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { return resourceNames_; } /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -116,15 +93,12 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -142,7 +116,6 @@ public int getResourceNamesCount() {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -150,8 +123,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -169,21 +140,18 @@ public java.lang.String getResourceNames(int index) {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -193,7 +161,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -202,15 +169,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -220,15 +186,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -239,8 +206,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int BUFFER_WINDOW_FIELD_NUMBER = 3; private com.google.protobuf.Duration bufferWindow_; /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -248,9 +213,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bufferWindow field is set. */ @java.lang.Override @@ -258,8 +221,6 @@ public boolean hasBufferWindow() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -267,20 +228,14 @@ public boolean hasBufferWindow() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bufferWindow. */ @java.lang.Override public com.google.protobuf.Duration getBufferWindow() { - return bufferWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : bufferWindow_; + return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; } /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -288,18 +243,14 @@ public com.google.protobuf.Duration getBufferWindow() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { - return bufferWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : bufferWindow_; + return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +262,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceNames_.getRaw(i)); } @@ -342,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBufferWindow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBufferWindow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -352,19 +305,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.TailLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesRequest other = - (com.google.logging.v2.TailLogEntriesRequest) obj; + com.google.logging.v2.TailLogEntriesRequest other = (com.google.logging.v2.TailLogEntriesRequest) obj; - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getResourceNamesList() + .equals(other.getResourceNamesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (hasBufferWindow() != other.hasBufferWindow()) return false; if (hasBufferWindow()) { - if (!getBufferWindow().equals(other.getBufferWindow())) return false; + if (!getBufferWindow() + .equals(other.getBufferWindow())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -392,127 +347,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.TailLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `TailLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesRequest) com.google.logging.v2.TailLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesRequest.class, - com.google.logging.v2.TailLogEntriesRequest.Builder.class); + com.google.logging.v2.TailLogEntriesRequest.class, com.google.logging.v2.TailLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesRequest.newBuilder() @@ -520,22 +468,23 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBufferWindowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; bufferWindow_ = null; if (bufferWindowBuilder_ != null) { @@ -546,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override @@ -567,11 +516,8 @@ public com.google.logging.v2.TailLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesRequest buildPartial() { - com.google.logging.v2.TailLogEntriesRequest result = - new com.google.logging.v2.TailLogEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.TailLogEntriesRequest result = new com.google.logging.v2.TailLogEntriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -587,8 +533,9 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.bufferWindow_ = - bufferWindowBuilder_ == null ? bufferWindow_ : bufferWindowBuilder_.build(); + result.bufferWindow_ = bufferWindowBuilder_ == null + ? bufferWindow_ + : bufferWindowBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -598,39 +545,38 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.TailLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.TailLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.TailLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -683,32 +629,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getBufferWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getBufferWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,12 +662,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -731,8 +673,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -750,16 +690,14 @@ private void ensureResourceNamesIsMutable() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList getResourceNamesList() { + public com.google.protobuf.ProtocolStringList + getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -777,15 +715,12 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -803,7 +738,6 @@ public int getResourceNamesCount() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -811,8 +745,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -830,16 +762,14 @@ public java.lang.String getResourceNames(int index) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString + getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -857,15 +787,13 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000001; @@ -873,8 +801,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -892,14 +818,12 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000001; @@ -907,8 +831,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -926,20 +848,19 @@ public Builder addResourceNames(java.lang.String value) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames(java.lang.Iterable values) { + public Builder addAllResourceNames( + java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -957,19 +878,16 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -987,14 +905,12 @@ public Builder clearResourceNames() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -1005,8 +921,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1016,13 +930,13 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1031,8 +945,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1042,14 +954,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1057,8 +970,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1068,22 +979,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1093,7 +1000,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1103,8 +1009,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1114,14 +1018,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1131,13 +1033,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration bufferWindow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - bufferWindowBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> bufferWindowBuilder_; /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1145,17 +1042,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bufferWindow field is set. */ public boolean hasBufferWindow() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1163,23 +1056,17 @@ public boolean hasBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bufferWindow. */ public com.google.protobuf.Duration getBufferWindow() { if (bufferWindowBuilder_ == null) { - return bufferWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : bufferWindow_; + return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; } else { return bufferWindowBuilder_.getMessage(); } } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1187,8 +1074,7 @@ public com.google.protobuf.Duration getBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBufferWindow(com.google.protobuf.Duration value) { if (bufferWindowBuilder_ == null) { @@ -1204,8 +1090,6 @@ public Builder setBufferWindow(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1213,10 +1097,10 @@ public Builder setBufferWindow(com.google.protobuf.Duration value) {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setBufferWindow( + com.google.protobuf.Duration.Builder builderForValue) { if (bufferWindowBuilder_ == null) { bufferWindow_ = builderForValue.build(); } else { @@ -1227,8 +1111,6 @@ public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForVa return this; } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1236,14 +1118,13 @@ public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForVa
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeBufferWindow(com.google.protobuf.Duration value) { if (bufferWindowBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && bufferWindow_ != null - && bufferWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + bufferWindow_ != null && + bufferWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { getBufferWindowBuilder().mergeFrom(value); } else { bufferWindow_ = value; @@ -1258,8 +1139,6 @@ public Builder mergeBufferWindow(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1267,8 +1146,7 @@ public Builder mergeBufferWindow(com.google.protobuf.Duration value) {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBufferWindow() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1281,8 +1159,6 @@ public Builder clearBufferWindow() { return this; } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1290,8 +1166,7 @@ public Builder clearBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() { bitField0_ |= 0x00000004; @@ -1299,8 +1174,6 @@ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() { return getBufferWindowFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1308,21 +1181,17 @@ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { if (bufferWindowBuilder_ != null) { return bufferWindowBuilder_.getMessageOrBuilder(); } else { - return bufferWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : bufferWindow_; + return bufferWindow_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; } } /** - * - * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1330,28 +1199,24 @@ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBufferWindowFieldBuilder() { if (bufferWindowBuilder_ == null) { - bufferWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getBufferWindow(), getParentForChildren(), isClean()); + bufferWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getBufferWindow(), + getParentForChildren(), + isClean()); bufferWindow_ = null; } return bufferWindowBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1361,12 +1226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesRequest) private static final com.google.logging.v2.TailLogEntriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesRequest(); } @@ -1375,27 +1240,27 @@ public static com.google.logging.v2.TailLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TailLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TailLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1410,4 +1275,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java similarity index 84% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java index 0c8e5bab9..fca2d5505 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface TailLogEntriesRequestOrBuilder - extends +public interface TailLogEntriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -44,13 +26,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the resourceNames. */ - java.util.List getResourceNamesList(); + java.util.List + getResourceNamesList(); /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -68,13 +48,10 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of resourceNames. */ int getResourceNamesCount(); /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -92,14 +69,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -117,15 +91,13 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString getResourceNamesBytes(int index); + com.google.protobuf.ByteString + getResourceNamesBytes(int index); /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -135,13 +107,10 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -151,14 +120,12 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -166,15 +133,11 @@ public interface TailLogEntriesRequestOrBuilder
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the bufferWindow field is set. */ boolean hasBufferWindow(); /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -182,15 +145,11 @@ public interface TailLogEntriesRequestOrBuilder
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bufferWindow. */ com.google.protobuf.Duration getBufferWindow(); /** - * - * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -198,8 +157,7 @@ public interface TailLogEntriesRequestOrBuilder
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java index 35aac9a15..6c7ec302e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from `TailLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse} */ -public final class TailLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TailLogEntriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesResponse) TailLogEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TailLogEntriesResponse.newBuilder() to construct. private TailLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TailLogEntriesResponse() { entries_ = java.util.Collections.emptyList(); suppressionInfo_ = java.util.Collections.emptyList(); @@ -45,125 +27,107 @@ private TailLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TailLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.class, - com.google.logging.v2.TailLogEntriesResponse.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.class, com.google.logging.v2.TailLogEntriesResponse.Builder.class); } - public interface SuppressionInfoOrBuilder - extends + public interface SuppressionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The reason. */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason(); /** - * - * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; - * * @return The suppressedCount. */ int getSuppressedCount(); } /** - * - * *
    * Information about entries that were omitted from the session.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo} */ - public static final class SuppressionInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SuppressionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) SuppressionInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuppressionInfo.newBuilder() to construct. private SuppressionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SuppressionInfo() { reason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SuppressionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); } /** - * - * *
      * An indicator of why entries were omitted.
      * 
* * Protobuf enum {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason} */ - public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unexpected default.
        * 
@@ -172,8 +136,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ REASON_UNSPECIFIED(0), /** - * - * *
        * Indicates suppression occurred due to relevant entries being
        * received in excess of rate limits. For quotas and limits, see
@@ -185,8 +147,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       RATE_LIMIT(1),
       /**
-       *
-       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -199,8 +159,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unexpected default.
        * 
@@ -209,8 +167,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Indicates suppression occurred due to relevant entries being
        * received in excess of rate limits. For quotas and limits, see
@@ -222,8 +178,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int RATE_LIMIT_VALUE = 1;
       /**
-       *
-       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -233,6 +187,7 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int NOT_CONSUMED_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -257,51 +212,49 @@ public static Reason valueOf(int value) {
        */
       public static Reason forNumber(int value) {
         switch (value) {
-          case 0:
-            return REASON_UNSPECIFIED;
-          case 1:
-            return RATE_LIMIT;
-          case 2:
-            return NOT_CONSUMED;
-          default:
-            return null;
+          case 0: return REASON_UNSPECIFIED;
+          case 1: return RATE_LIMIT;
+          case 2: return NOT_CONSUMED;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          Reason> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Reason findValueByNumber(int number) {
+                return Reason.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Reason findValueByNumber(int number) {
-              return Reason.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final Reason[] VALUES = values();
 
-      public static Reason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Reason valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -321,51 +274,37 @@ private Reason(int value) {
     public static final int REASON_FIELD_NUMBER = 1;
     private int reason_ = 0;
     /**
-     *
-     *
      * 
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The reason. */ - @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); - return result == null - ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED - : result; + @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); + return result == null ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED : result; } public static final int SUPPRESSED_COUNT_FIELD_NUMBER = 2; private int suppressedCount_ = 0; /** - * - * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; - * * @return The suppressedCount. */ @java.lang.Override @@ -374,7 +313,6 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,10 +324,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reason_ - != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reason_ != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED.getNumber()) { output.writeEnum(1, reason_); } if (suppressedCount_ != 0) { @@ -404,13 +341,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (reason_ - != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reason_); + if (reason_ != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, reason_); } if (suppressedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, suppressedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, suppressedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -420,16 +357,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other = - (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) obj; + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other = (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) obj; if (reason_ != other.reason_) return false; - if (getSuppressedCount() != other.getSuppressedCount()) return false; + if (getSuppressedCount() + != other.getSuppressedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -451,94 +388,89 @@ public int hashCode() { } public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo prototype) { + public static Builder newBuilder(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -548,41 +480,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about entries that were omitted from the session.
      * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -593,14 +523,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo - getDefaultInstanceForType() { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstanceForType() { return com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance(); } @@ -615,17 +544,13 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo buildPartial() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = - new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result) { + private void buildPartial0(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.reason_ = reason_; @@ -639,41 +564,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo)other); } else { super.mergeFrom(other); return this; @@ -681,9 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other) { - if (other - == com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()) - return this; + if (other == com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()) return this; if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } @@ -716,25 +636,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - reason_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - suppressedCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + reason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + suppressedCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -744,34 +661,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int reason_ = 0; /** - * - * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -782,38 +691,28 @@ public Builder setReasonValue(int value) { return this; } /** - * - * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return The reason. */ @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); - return result == null - ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED - : result; + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); + return result == null ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED : result; } /** - * - * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason value) { + public Builder setReason(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -823,14 +722,11 @@ public Builder setReason( return this; } /** - * - * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -840,16 +736,13 @@ public Builder clearReason() { return this; } - private int suppressedCount_; + private int suppressedCount_ ; /** - * - * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; - * * @return The suppressedCount. */ @java.lang.Override @@ -857,14 +750,11 @@ public int getSuppressedCount() { return suppressedCount_; } /** - * - * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; - * * @param value The suppressedCount to set. * @return This builder for chaining. */ @@ -876,14 +766,11 @@ public Builder setSuppressedCount(int value) { return this; } /** - * - * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; - * * @return This builder for chaining. */ public Builder clearSuppressedCount() { @@ -892,7 +779,6 @@ public Builder clearSuppressedCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -905,44 +791,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) - private static final com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo - DEFAULT_INSTANCE; - + private static final com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo - getDefaultInstance() { + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuppressionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuppressionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,19 +837,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo - getDefaultInstanceForType() { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ENTRIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List entries_; /** - * - * *
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -980,8 +860,6 @@ public java.util.List getEntriesList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -991,13 +869,11 @@ public java.util.List getEntriesList() {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1011,8 +887,6 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1026,8 +900,6 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
     return entries_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1037,18 +909,15 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
+  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+      int index) {
     return entries_.get(index);
   }
 
   public static final int SUPPRESSION_INFO_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      suppressionInfo_;
+  private java.util.List suppressionInfo_;
   /**
-   *
-   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -1057,17 +926,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ @java.lang.Override - public java.util.List - getSuppressionInfoList() { + public java.util.List getSuppressionInfoList() { return suppressionInfo_; } /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -1076,18 +941,14 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> + public java.util.List getSuppressionInfoOrBuilderList() { return suppressionInfo_; } /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -1096,16 +957,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ @java.lang.Override public int getSuppressionInfoCount() { return suppressionInfo_.size(); } /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -1114,17 +972,13 @@ public int getSuppressionInfoCount() {
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo( - int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index) { return suppressionInfo_.get(index); } /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -1133,17 +987,15 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder - getSuppressionInfoOrBuilder(int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( + int index) { return suppressionInfo_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1155,7 +1007,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -1172,10 +1025,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entries_.get(i)); } for (int i = 0; i < suppressionInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, suppressionInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, suppressionInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1185,16 +1040,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.TailLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesResponse other = - (com.google.logging.v2.TailLogEntriesResponse) obj; + com.google.logging.v2.TailLogEntriesResponse other = (com.google.logging.v2.TailLogEntriesResponse) obj; - if (!getEntriesList().equals(other.getEntriesList())) return false; - if (!getSuppressionInfoList().equals(other.getSuppressionInfoList())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; + if (!getSuppressionInfoList() + .equals(other.getSuppressionInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1219,136 +1075,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.TailLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from `TailLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesResponse) com.google.logging.v2.TailLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.class, - com.google.logging.v2.TailLogEntriesResponse.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.class, com.google.logging.v2.TailLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1371,9 +1223,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override @@ -1392,12 +1244,9 @@ public com.google.logging.v2.TailLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse buildPartial() { - com.google.logging.v2.TailLogEntriesResponse result = - new com.google.logging.v2.TailLogEntriesResponse(this); + com.google.logging.v2.TailLogEntriesResponse result = new com.google.logging.v2.TailLogEntriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1431,39 +1280,38 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.TailLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -1490,10 +1338,9 @@ public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntriesFieldBuilder() - : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1517,10 +1364,9 @@ public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse other) { suppressionInfoBuilder_ = null; suppressionInfo_ = other.suppressionInfo_; bitField0_ = (bitField0_ & ~0x00000002); - suppressionInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSuppressionInfoFieldBuilder() - : null; + suppressionInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSuppressionInfoFieldBuilder() : null; } else { suppressionInfoBuilder_.addAllMessages(other.suppressionInfo_); } @@ -1552,39 +1398,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.logging.v2.LogEntry m = - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo m = - input.readMessage( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), - extensionRegistry); - if (suppressionInfoBuilder_ == null) { - ensureSuppressionInfoIsMutable(); - suppressionInfo_.add(m); - } else { - suppressionInfoBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.logging.v2.LogEntry m = + input.readMessage( + com.google.logging.v2.LogEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo m = + input.readMessage( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), + extensionRegistry); + if (suppressionInfoBuilder_ == null) { + ensureSuppressionInfoIsMutable(); + suppressionInfo_.add(m); + } else { + suppressionInfoBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1594,28 +1439,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List entries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, - com.google.logging.v2.LogEntry.Builder, - com.google.logging.v2.LogEntryOrBuilder> - entriesBuilder_; + com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_; /** - * - * *
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1632,8 +1470,6 @@ public java.util.List getEntriesList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1650,8 +1486,6 @@ public int getEntriesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1668,8 +1502,6 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1678,7 +1510,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
+    public Builder setEntries(
+        int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1692,8 +1525,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1702,7 +1533,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder setEntries(
+        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.set(index, builderForValue.build());
@@ -1713,8 +1545,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1737,8 +1567,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1747,7 +1575,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
+    public Builder addEntries(
+        int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1761,8 +1590,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1771,7 +1598,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(
+        com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(builderForValue.build());
@@ -1782,8 +1610,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1792,7 +1618,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(
+        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(index, builderForValue.build());
@@ -1803,8 +1630,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1817,7 +1642,8 @@ public Builder addAllEntries(
         java.lang.Iterable values) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, entries_);
         onChanged();
       } else {
         entriesBuilder_.addAllMessages(values);
@@ -1825,8 +1651,6 @@ public Builder addAllEntries(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1846,8 +1670,6 @@ public Builder clearEntries() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1867,8 +1689,6 @@ public Builder removeEntries(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1877,12 +1697,11 @@ public Builder removeEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
+    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
+        int index) {
       return getEntriesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1891,16 +1710,14 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
+    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+        int index) {
       if (entriesBuilder_ == null) {
-        return entries_.get(index);
-      } else {
+        return entries_.get(index);  } else {
         return entriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1909,8 +1726,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List
-        getEntriesOrBuilderList() {
+    public java.util.List 
+         getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1918,8 +1735,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1929,12 +1744,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
     public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
-      return getEntriesFieldBuilder()
-          .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance());
+      return getEntriesFieldBuilder().addBuilder(
+          com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1943,13 +1756,12 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
-      return getEntriesFieldBuilder()
-          .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance());
+    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
+        int index) {
+      return getEntriesFieldBuilder().addBuilder(
+          index, com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1958,48 +1770,38 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List getEntriesBuilderList() {
+    public java.util.List 
+         getEntriesBuilderList() {
       return getEntriesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.LogEntry,
-            com.google.logging.v2.LogEntry.Builder,
-            com.google.logging.v2.LogEntryOrBuilder>
+        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> 
         getEntriesFieldBuilder() {
       if (entriesBuilder_ == null) {
-        entriesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.logging.v2.LogEntry,
-                com.google.logging.v2.LogEntry.Builder,
-                com.google.logging.v2.LogEntryOrBuilder>(
-                entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>(
+                entries_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         entries_ = null;
       }
       return entriesBuilder_;
     }
 
-    private java.util.List
-        suppressionInfo_ = java.util.Collections.emptyList();
-
+    private java.util.List suppressionInfo_ =
+      java.util.Collections.emptyList();
     private void ensureSuppressionInfoIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        suppressionInfo_ =
-            new java.util.ArrayList(
-                suppressionInfo_);
+        suppressionInfo_ = new java.util.ArrayList(suppressionInfo_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo,
-            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder,
-            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>
-        suppressionInfoBuilder_;
+        com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> suppressionInfoBuilder_;
 
     /**
-     *
-     *
      * 
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2008,12 +1810,9 @@ private void ensureSuppressionInfoIsMutable() {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public java.util.List - getSuppressionInfoList() { + public java.util.List getSuppressionInfoList() { if (suppressionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(suppressionInfo_); } else { @@ -2021,8 +1820,6 @@ private void ensureSuppressionInfoIsMutable() { } } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2031,9 +1828,7 @@ private void ensureSuppressionInfoIsMutable() {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public int getSuppressionInfoCount() { if (suppressionInfoBuilder_ == null) { @@ -2043,8 +1838,6 @@ public int getSuppressionInfoCount() { } } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2053,12 +1846,9 @@ public int getSuppressionInfoCount() {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo( - int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index) { if (suppressionInfoBuilder_ == null) { return suppressionInfo_.get(index); } else { @@ -2066,8 +1856,6 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi } } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2076,9 +1864,7 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder setSuppressionInfo( int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { @@ -2095,8 +1881,6 @@ public Builder setSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2105,13 +1889,10 @@ public Builder setSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder setSuppressionInfo( - int index, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { + int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); suppressionInfo_.set(index, builderForValue.build()); @@ -2122,8 +1903,6 @@ public Builder setSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2132,12 +1911,9 @@ public Builder setSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public Builder addSuppressionInfo( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { + public Builder addSuppressionInfo(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { if (suppressionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2151,8 +1927,6 @@ public Builder addSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2161,9 +1935,7 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder addSuppressionInfo( int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { @@ -2180,8 +1952,6 @@ public Builder addSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2190,9 +1960,7 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder addSuppressionInfo( com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { @@ -2206,8 +1974,6 @@ public Builder addSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2216,13 +1982,10 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder addSuppressionInfo( - int index, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { + int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); suppressionInfo_.add(index, builderForValue.build()); @@ -2233,8 +1996,6 @@ public Builder addSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2243,16 +2004,14 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder addAllSuppressionInfo( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suppressionInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, suppressionInfo_); onChanged(); } else { suppressionInfoBuilder_.addAllMessages(values); @@ -2260,8 +2019,6 @@ public Builder addAllSuppressionInfo( return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2270,9 +2027,7 @@ public Builder addAllSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder clearSuppressionInfo() { if (suppressionInfoBuilder_ == null) { @@ -2285,8 +2040,6 @@ public Builder clearSuppressionInfo() { return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2295,9 +2048,7 @@ public Builder clearSuppressionInfo() {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ public Builder removeSuppressionInfo(int index) { if (suppressionInfoBuilder_ == null) { @@ -2310,8 +2061,6 @@ public Builder removeSuppressionInfo(int index) { return this; } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2320,17 +2069,13 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder - getSuppressionInfoBuilder(int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder getSuppressionInfoBuilder( + int index) { return getSuppressionInfoFieldBuilder().getBuilder(index); } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2339,21 +2084,16 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder - getSuppressionInfoOrBuilder(int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( + int index) { if (suppressionInfoBuilder_ == null) { - return suppressionInfo_.get(index); - } else { + return suppressionInfo_.get(index); } else { return suppressionInfoBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2362,13 +2102,10 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public java.util.List< - ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> - getSuppressionInfoOrBuilderList() { + public java.util.List + getSuppressionInfoOrBuilderList() { if (suppressionInfoBuilder_ != null) { return suppressionInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2376,8 +2113,6 @@ public Builder removeSuppressionInfo(int index) { } } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2386,19 +2121,13 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder - addSuppressionInfoBuilder() { - return getSuppressionInfoFieldBuilder() - .addBuilder( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addSuppressionInfoBuilder() { + return getSuppressionInfoFieldBuilder().addBuilder( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2407,20 +2136,14 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder - addSuppressionInfoBuilder(int index) { - return getSuppressionInfoFieldBuilder() - .addBuilder( - index, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addSuppressionInfoBuilder( + int index) { + return getSuppressionInfoFieldBuilder().addBuilder( + index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); } /** - * - * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2429,26 +2152,18 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - public java.util.List - getSuppressionInfoBuilderList() { + public java.util.List + getSuppressionInfoBuilderList() { return getSuppressionInfoFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> getSuppressionInfoFieldBuilder() { if (suppressionInfoBuilder_ == null) { - suppressionInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>( + suppressionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>( suppressionInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2457,9 +2172,9 @@ public Builder removeSuppressionInfo(int index) { } return suppressionInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2469,12 +2184,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesResponse) private static final com.google.logging.v2.TailLogEntriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesResponse(); } @@ -2483,27 +2198,27 @@ public static com.google.logging.v2.TailLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TailLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TailLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2518,4 +2233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java index 1c0b1e0ed..3e1f1a3c4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface TailLogEntriesResponseOrBuilder - extends +public interface TailLogEntriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -35,10 +17,9 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List getEntriesList();
+  java.util.List 
+      getEntriesList();
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -49,8 +30,6 @@ public interface TailLogEntriesResponseOrBuilder
    */
   com.google.logging.v2.LogEntry getEntries(int index);
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -61,8 +40,6 @@ public interface TailLogEntriesResponseOrBuilder
    */
   int getEntriesCount();
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -71,10 +48,9 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List getEntriesOrBuilderList();
+  java.util.List 
+      getEntriesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -83,11 +59,10 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index);
+  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -96,14 +71,11 @@ public interface TailLogEntriesResponseOrBuilder
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - java.util.List + java.util.List getSuppressionInfoList(); /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -112,13 +84,10 @@ public interface TailLogEntriesResponseOrBuilder
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index); /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -127,13 +96,10 @@ public interface TailLogEntriesResponseOrBuilder
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ int getSuppressionInfoCount(); /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -142,14 +108,11 @@ public interface TailLogEntriesResponseOrBuilder
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ - java.util.List + java.util.List getSuppressionInfoOrBuilderList(); /** - * - * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -158,8 +121,7 @@ public interface TailLogEntriesResponseOrBuilder
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; - * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( int index); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java index be102aa14..2a33aafb2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java @@ -1,75 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `UndeleteBucket`.
  * 
* * Protobuf type {@code google.logging.v2.UndeleteBucketRequest} */ -public final class UndeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UndeleteBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UndeleteBucketRequest) UndeleteBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UndeleteBucketRequest.newBuilder() to construct. private UndeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UndeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UndeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UndeleteBucketRequest.class, - com.google.logging.v2.UndeleteBucketRequest.Builder.class); + com.google.logging.v2.UndeleteBucketRequest.class, com.google.logging.v2.UndeleteBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -95,15 +70,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,15 +146,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UndeleteBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.UndeleteBucketRequest other = - (com.google.logging.v2.UndeleteBucketRequest) obj; + com.google.logging.v2.UndeleteBucketRequest other = (com.google.logging.v2.UndeleteBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,136 +173,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UndeleteBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `UndeleteBucket`.
    * 
* * Protobuf type {@code google.logging.v2.UndeleteBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UndeleteBucketRequest) com.google.logging.v2.UndeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UndeleteBucketRequest.class, - com.google.logging.v2.UndeleteBucketRequest.Builder.class); + com.google.logging.v2.UndeleteBucketRequest.class, com.google.logging.v2.UndeleteBucketRequest.Builder.class); } // Construct using com.google.logging.v2.UndeleteBucketRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override @@ -360,11 +329,8 @@ public com.google.logging.v2.UndeleteBucketRequest build() { @java.lang.Override public com.google.logging.v2.UndeleteBucketRequest buildPartial() { - com.google.logging.v2.UndeleteBucketRequest result = - new com.google.logging.v2.UndeleteBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UndeleteBucketRequest result = new com.google.logging.v2.UndeleteBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -380,39 +346,38 @@ private void buildPartial0(com.google.logging.v2.UndeleteBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UndeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.UndeleteBucketRequest) other); + return mergeFrom((com.google.logging.v2.UndeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -452,19 +417,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +437,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -494,16 +454,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,8 +470,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -527,17 +483,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -560,25 +513,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -592,10 +539,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -605,8 +549,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -620,26 +562,22 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UndeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UndeleteBucketRequest) private static final com.google.logging.v2.UndeleteBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UndeleteBucketRequest(); } @@ -663,27 +601,27 @@ public static com.google.logging.v2.UndeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,4 +636,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UndeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java index 4f93ab375..c100b6673 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UndeleteBucketRequestOrBuilder - extends +public interface UndeleteBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UndeleteBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -40,16 +22,11 @@ public interface UndeleteBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -63,11 +40,9 @@ public interface UndeleteBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java index 60f66f470..4aa4aeac4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `UpdateBucket`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateBucketRequest} */ -public final class UpdateBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateBucketRequest) UpdateBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBucketRequest.newBuilder() to construct. private UpdateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateBucketRequest.class, - com.google.logging.v2.UpdateBucketRequest.Builder.class); + com.google.logging.v2.UpdateBucketRequest.class, com.google.logging.v2.UpdateBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the bucket to update.
    *
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -96,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to update.
    *
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -140,14 +113,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int BUCKET_FIELD_NUMBER = 2; private com.google.logging.v2.LogBucket bucket_; /** - * - * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -155,14 +125,11 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -170,8 +137,6 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Required. The updated bucket.
    * 
@@ -186,8 +151,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -199,9 +162,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,8 +170,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -222,9 +181,7 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -232,8 +189,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -245,8 +200,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -254,7 +208,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -289,10 +243,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBucket()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -302,22 +258,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateBucketRequest other = - (com.google.logging.v2.UpdateBucketRequest) obj; + com.google.logging.v2.UpdateBucketRequest other = (com.google.logging.v2.UpdateBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket().equals(other.getBucket())) return false; + if (!getBucket() + .equals(other.getBucket())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -345,127 +303,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `UpdateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateBucketRequest) com.google.logging.v2.UpdateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateBucketRequest.class, - com.google.logging.v2.UpdateBucketRequest.Builder.class); + com.google.logging.v2.UpdateBucketRequest.class, com.google.logging.v2.UpdateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateBucketRequest.newBuilder() @@ -473,18 +424,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBucketFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override @@ -525,11 +476,8 @@ public com.google.logging.v2.UpdateBucketRequest build() { @java.lang.Override public com.google.logging.v2.UpdateBucketRequest buildPartial() { - com.google.logging.v2.UpdateBucketRequest result = - new com.google.logging.v2.UpdateBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UpdateBucketRequest result = new com.google.logging.v2.UpdateBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -541,11 +489,15 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -555,39 +507,38 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UpdateBucketRequest) { - return mergeFrom((com.google.logging.v2.UpdateBucketRequest) other); + return mergeFrom((com.google.logging.v2.UpdateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -633,31 +584,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -667,13 +618,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -687,16 +635,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -705,8 +651,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -720,17 +664,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -738,8 +681,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -753,25 +694,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -785,10 +720,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -798,8 +730,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -813,17 +743,13 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -833,35 +759,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogBucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> - bucketBuilder_; + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketBuilder_; /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bucket. */ public com.google.logging.v2.LogBucket getBucket() { @@ -872,14 +787,11 @@ public com.google.logging.v2.LogBucket getBucket() { } } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { @@ -895,16 +807,14 @@ public Builder setBucket(com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBucket( + com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketBuilder_ == null) { bucket_ = builderForValue.build(); } else { @@ -915,20 +825,17 @@ public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue return this; } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && bucket_ != null - && bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + bucket_ != null && + bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { getBucketBuilder().mergeFrom(value); } else { bucket_ = value; @@ -943,14 +850,11 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { return this; } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000002); @@ -963,14 +867,11 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { bitField0_ |= 0x00000002; @@ -978,44 +879,36 @@ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { return getBucketFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilder(); } else { - return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; + return bucket_ == null ? + com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } } /** - * - * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { - bucketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, - com.google.logging.v2.LogBucket.Builder, - com.google.logging.v2.LogBucketOrBuilder>( - getBucket(), getParentForChildren(), isClean()); + bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( + getBucket(), + getParentForChildren(), + isClean()); bucket_ = null; } return bucketBuilder_; @@ -1023,13 +916,8 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1041,17 +929,13 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1063,23 +947,17 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1091,8 +969,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1108,8 +985,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1121,10 +996,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1135,8 +1010,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1148,14 +1021,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1170,8 +1042,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1183,8 +1053,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1197,8 +1066,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1210,8 +1077,7 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1219,8 +1085,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1232,21 +1096,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1258,28 +1118,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1289,12 +1145,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateBucketRequest) private static final com.google.logging.v2.UpdateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateBucketRequest(); } @@ -1303,27 +1159,27 @@ public static com.google.logging.v2.UpdateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1194,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java index ad40a786e..92cd82142 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateBucketRequestOrBuilder - extends +public interface UpdateBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the bucket to update.
    *
@@ -40,16 +22,11 @@ public interface UpdateBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The full resource name of the bucket to update.
    *
@@ -63,41 +40,31 @@ public interface UpdateBucketRequestOrBuilder
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ boolean hasBucket(); /** - * - * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ com.google.logging.v2.LogBucket getBucket(); /** - * - * *
    * Required. The updated bucket.
    * 
@@ -107,8 +74,6 @@ public interface UpdateBucketRequestOrBuilder com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder(); /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -120,15 +85,11 @@ public interface UpdateBucketRequestOrBuilder
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -140,15 +101,11 @@ public interface UpdateBucketRequestOrBuilder
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -160,8 +117,7 @@ public interface UpdateBucketRequestOrBuilder
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java index e8174ca18..9edca88f4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -33,49 +16,44 @@
  *
  * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest}
  */
-public final class UpdateCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCmekSettingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateCmekSettingsRequest)
     UpdateCmekSettingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCmekSettingsRequest.newBuilder() to construct.
   private UpdateCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCmekSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCmekSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.UpdateCmekSettingsRequest.class,
-            com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
+            com.google.logging.v2.UpdateCmekSettingsRequest.class, com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name for the CMEK settings to update.
    *
@@ -94,7 +72,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -103,15 +80,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -130,15 +106,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -149,8 +126,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CMEK_SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.CmekSettings cmekSettings_; /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -159,10 +134,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -170,8 +142,6 @@ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -180,21 +150,14 @@ public boolean hasCmekSettings() {
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cmekSettings. */ @java.lang.Override public com.google.logging.v2.CmekSettings getCmekSettings() { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -203,22 +166,16 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -229,9 +186,7 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -239,8 +194,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -251,9 +204,7 @@ public boolean hasUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -261,8 +212,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -273,8 +222,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -282,7 +230,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -317,10 +265,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCmekSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCmekSettings()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -330,22 +280,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateCmekSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateCmekSettingsRequest other = - (com.google.logging.v2.UpdateCmekSettingsRequest) obj; + com.google.logging.v2.UpdateCmekSettingsRequest other = (com.google.logging.v2.UpdateCmekSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCmekSettings() != other.hasCmekSettings()) return false; if (hasCmekSettings()) { - if (!getCmekSettings().equals(other.getCmekSettings())) return false; + if (!getCmekSettings() + .equals(other.getCmekSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -373,104 +325,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateCmekSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to
    * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -482,23 +429,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateCmekSettingsRequest)
       com.google.logging.v2.UpdateCmekSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateCmekSettingsRequest.class,
-              com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateCmekSettingsRequest.class, com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateCmekSettingsRequest.newBuilder()
@@ -506,18 +451,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCmekSettingsFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -537,9 +482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -558,11 +503,8 @@ public com.google.logging.v2.UpdateCmekSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.UpdateCmekSettingsRequest buildPartial() {
-      com.google.logging.v2.UpdateCmekSettingsRequest result =
-          new com.google.logging.v2.UpdateCmekSettingsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.UpdateCmekSettingsRequest result = new com.google.logging.v2.UpdateCmekSettingsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -574,12 +516,15 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.cmekSettings_ =
-            cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build();
+        result.cmekSettings_ = cmekSettingsBuilder_ == null
+            ? cmekSettings_
+            : cmekSettingsBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -589,39 +534,38 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.UpdateCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest) other);
+        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -629,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.logging.v2.UpdateCmekSettingsRequest other) {
-      if (other == com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -668,31 +611,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCmekSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCmekSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -702,13 +645,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for the CMEK settings to update.
      *
@@ -727,13 +667,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -742,8 +682,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -762,14 +700,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -777,8 +716,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -797,22 +734,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -831,7 +764,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -841,8 +773,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -861,14 +791,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -878,13 +806,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.CmekSettings cmekSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, - com.google.logging.v2.CmekSettings.Builder, - com.google.logging.v2.CmekSettingsOrBuilder> - cmekSettingsBuilder_; + com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> cmekSettingsBuilder_; /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -893,18 +816,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -913,24 +831,17 @@ public boolean hasCmekSettings() {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cmekSettings. */ public com.google.logging.v2.CmekSettings getCmekSettings() { if (cmekSettingsBuilder_ == null) { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } else { return cmekSettingsBuilder_.getMessage(); } } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -939,9 +850,7 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { if (cmekSettingsBuilder_ == null) { @@ -957,8 +866,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -967,11 +874,10 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) { + public Builder setCmekSettings( + com.google.logging.v2.CmekSettings.Builder builderForValue) { if (cmekSettingsBuilder_ == null) { cmekSettings_ = builderForValue.build(); } else { @@ -982,8 +888,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -992,15 +896,13 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { if (cmekSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && cmekSettings_ != null - && cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + cmekSettings_ != null && + cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) { getCmekSettingsBuilder().mergeFrom(value); } else { cmekSettings_ = value; @@ -1015,8 +917,6 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1025,9 +925,7 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCmekSettings() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1040,8 +938,6 @@ public Builder clearCmekSettings() { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1050,9 +946,7 @@ public Builder clearCmekSettings() {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { bitField0_ |= 0x00000002; @@ -1060,8 +954,6 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { return getCmekSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1070,22 +962,17 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { if (cmekSettingsBuilder_ != null) { return cmekSettingsBuilder_.getMessageOrBuilder(); } else { - return cmekSettings_ == null - ? com.google.logging.v2.CmekSettings.getDefaultInstance() - : cmekSettings_; + return cmekSettings_ == null ? + com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; } } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1094,22 +981,17 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * for more information.
      * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, - com.google.logging.v2.CmekSettings.Builder, - com.google.logging.v2.CmekSettingsOrBuilder> + com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> getCmekSettingsFieldBuilder() { if (cmekSettingsBuilder_ == null) { - cmekSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, - com.google.logging.v2.CmekSettings.Builder, - com.google.logging.v2.CmekSettingsOrBuilder>( - getCmekSettings(), getParentForChildren(), isClean()); + cmekSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder>( + getCmekSettings(), + getParentForChildren(), + isClean()); cmekSettings_ = null; } return cmekSettingsBuilder_; @@ -1117,13 +999,8 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1134,17 +1011,13 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1155,23 +1028,17 @@ public boolean hasUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1182,8 +1049,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1199,8 +1065,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1211,10 +1075,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1225,8 +1089,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1237,14 +1099,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1259,8 +1120,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1271,8 +1130,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1285,8 +1143,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1297,8 +1153,7 @@ public Builder clearUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1306,8 +1161,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1318,21 +1171,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1343,28 +1192,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1374,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateCmekSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateCmekSettingsRequest) private static final com.google.logging.v2.UpdateCmekSettingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateCmekSettingsRequest(); } @@ -1388,27 +1233,27 @@ public static com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCmekSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1423,4 +1268,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java index d263f2546..973acef19 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateCmekSettingsRequestOrBuilder - extends +public interface UpdateCmekSettingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateCmekSettingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -45,13 +27,10 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -70,14 +49,12 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -86,16 +63,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cmekSettings field is set. */ boolean hasCmekSettings(); /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -104,16 +76,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cmekSettings. */ com.google.logging.v2.CmekSettings getCmekSettings(); /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -122,15 +89,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * for more information.
    * 
* - * - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder(); /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -141,15 +104,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -160,15 +119,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -179,8 +134,7 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java index f78550920..8925c8bf9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `UpdateExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateExclusionRequest} */ -public final class UpdateExclusionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateExclusionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateExclusionRequest) UpdateExclusionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateExclusionRequest.newBuilder() to construct. private UpdateExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateExclusionRequest.class, - com.google.logging.v2.UpdateExclusionRequest.Builder.class); + com.google.logging.v2.UpdateExclusionRequest.class, com.google.logging.v2.UpdateExclusionRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the exclusion to update:
    *
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -96,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the exclusion to update:
    *
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -140,16 +113,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXCLUSION_FIELD_NUMBER = 2; private com.google.logging.v2.LogExclusion exclusion_; /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ @java.lang.Override @@ -157,47 +126,34 @@ public boolean hasExclusion() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusion() { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -209,9 +165,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,8 +173,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -232,9 +184,7 @@ public boolean hasUpdateMask() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -242,8 +192,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -255,8 +203,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -264,7 +211,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +222,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -299,10 +246,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExclusion()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -312,22 +261,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateExclusionRequest other = - (com.google.logging.v2.UpdateExclusionRequest) obj; + com.google.logging.v2.UpdateExclusionRequest other = (com.google.logging.v2.UpdateExclusionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasExclusion() != other.hasExclusion()) return false; if (hasExclusion()) { - if (!getExclusion().equals(other.getExclusion())) return false; + if (!getExclusion() + .equals(other.getExclusion())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -355,127 +306,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `UpdateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateExclusionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateExclusionRequest) com.google.logging.v2.UpdateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateExclusionRequest.class, - com.google.logging.v2.UpdateExclusionRequest.Builder.class); + com.google.logging.v2.UpdateExclusionRequest.class, com.google.logging.v2.UpdateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateExclusionRequest.newBuilder() @@ -483,18 +427,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExclusionFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override @@ -535,11 +479,8 @@ public com.google.logging.v2.UpdateExclusionRequest build() { @java.lang.Override public com.google.logging.v2.UpdateExclusionRequest buildPartial() { - com.google.logging.v2.UpdateExclusionRequest result = - new com.google.logging.v2.UpdateExclusionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UpdateExclusionRequest result = new com.google.logging.v2.UpdateExclusionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -551,11 +492,15 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null + ? exclusion_ + : exclusionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -565,39 +510,38 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UpdateExclusionRequest) { - return mergeFrom((com.google.logging.v2.UpdateExclusionRequest) other); + return mergeFrom((com.google.logging.v2.UpdateExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -643,31 +587,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExclusionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -677,13 +621,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -697,16 +638,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -715,8 +654,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -730,17 +667,16 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -748,8 +684,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -763,25 +697,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -795,10 +723,7 @@ public Builder setName(java.lang.String value) {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -808,8 +733,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -823,17 +746,13 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -843,61 +762,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogExclusion exclusion_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> - exclusionBuilder_; + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionBuilder_; /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ public boolean hasExclusion() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ public com.google.logging.v2.LogExclusion getExclusion() { if (exclusionBuilder_ == null) { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } else { return exclusionBuilder_.getMessage(); } } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -913,18 +813,15 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder setExclusion( + com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionBuilder_ == null) { exclusion_ = builderForValue.build(); } else { @@ -935,22 +832,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo return this; } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && exclusion_ != null - && exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + exclusion_ != null && + exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { getExclusionBuilder().mergeFrom(value); } else { exclusion_ = value; @@ -965,16 +858,12 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearExclusion() { bitField0_ = (bitField0_ & ~0x00000002); @@ -987,16 +876,12 @@ public Builder clearExclusion() { return this; } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { bitField0_ |= 0x00000002; @@ -1004,50 +889,38 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { return getExclusionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { return exclusionBuilder_.getMessageOrBuilder(); } else { - return exclusion_ == null - ? com.google.logging.v2.LogExclusion.getDefaultInstance() - : exclusion_; + return exclusion_ == null ? + com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; } } /** - * - * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> getExclusionFieldBuilder() { if (exclusionBuilder_ == null) { - exclusionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, - com.google.logging.v2.LogExclusion.Builder, - com.google.logging.v2.LogExclusionOrBuilder>( - getExclusion(), getParentForChildren(), isClean()); + exclusionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( + getExclusion(), + getParentForChildren(), + isClean()); exclusion_ = null; } return exclusionBuilder_; @@ -1055,13 +928,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1073,17 +941,13 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1095,23 +959,17 @@ public boolean hasUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1123,8 +981,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1140,8 +997,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1153,10 +1008,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1167,8 +1022,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1180,14 +1033,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1202,8 +1054,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1215,8 +1065,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1229,8 +1078,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1242,8 +1089,7 @@ public Builder clearUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1251,8 +1097,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1264,21 +1108,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1290,28 +1130,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1321,12 +1157,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateExclusionRequest) private static final com.google.logging.v2.UpdateExclusionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateExclusionRequest(); } @@ -1335,27 +1171,27 @@ public static com.google.logging.v2.UpdateExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,4 +1206,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java index e4fc70762..011e1b62c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateExclusionRequestOrBuilder - extends +public interface UpdateExclusionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateExclusionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the exclusion to update:
    *
@@ -40,16 +22,11 @@ public interface UpdateExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the exclusion to update:
    *
@@ -63,58 +40,43 @@ public interface UpdateExclusionRequestOrBuilder
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the exclusion field is set. */ boolean hasExclusion(); /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The exclusion. */ com.google.logging.v2.LogExclusion getExclusion(); /** - * - * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder(); /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -126,15 +88,11 @@ public interface UpdateExclusionRequestOrBuilder
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -146,15 +104,11 @@ public interface UpdateExclusionRequestOrBuilder
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -166,8 +120,7 @@ public interface UpdateExclusionRequestOrBuilder
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java index 752728b9e..6695a1f99 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to UpdateLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.UpdateLogMetricRequest} */ -public final class UpdateLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateLogMetricRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateLogMetricRequest) UpdateLogMetricRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateLogMetricRequest.newBuilder() to construct. private UpdateLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateLogMetricRequest.class, - com.google.logging.v2.UpdateLogMetricRequest.Builder.class); + com.google.logging.v2.UpdateLogMetricRequest.class, com.google.logging.v2.UpdateLogMetricRequest.Builder.class); } private int bitField0_; public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** - * - * *
    * Required. The resource name of the metric to update:
    *
@@ -81,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ @java.lang.Override @@ -93,15 +68,14 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the metric to update:
    *
@@ -112,18 +86,17 @@ public java.lang.String getMetricName() {
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -134,14 +107,11 @@ public com.google.protobuf.ByteString getMetricNameBytes() { public static final int METRIC_FIELD_NUMBER = 2; private com.google.logging.v2.LogMetric metric_; /** - * - * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the metric field is set. */ @java.lang.Override @@ -149,14 +119,11 @@ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The metric. */ @java.lang.Override @@ -164,8 +131,6 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** - * - * *
    * Required. The updated metric.
    * 
@@ -178,7 +143,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -210,7 +175,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetric()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,18 +186,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateLogMetricRequest other = - (com.google.logging.v2.UpdateLogMetricRequest) obj; + com.google.logging.v2.UpdateLogMetricRequest other = (com.google.logging.v2.UpdateLogMetricRequest) obj; - if (!getMetricName().equals(other.getMetricName())) return false; + if (!getMetricName() + .equals(other.getMetricName())) return false; if (hasMetric() != other.hasMetric()) return false; if (hasMetric()) { - if (!getMetric().equals(other.getMetric())) return false; + if (!getMetric() + .equals(other.getMetric())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,127 +222,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to UpdateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.UpdateLogMetricRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateLogMetricRequest) com.google.logging.v2.UpdateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateLogMetricRequest.class, - com.google.logging.v2.UpdateLogMetricRequest.Builder.class); + com.google.logging.v2.UpdateLogMetricRequest.class, com.google.logging.v2.UpdateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateLogMetricRequest.newBuilder() @@ -383,17 +343,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMetricFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto - .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override @@ -429,11 +389,8 @@ public com.google.logging.v2.UpdateLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.UpdateLogMetricRequest buildPartial() { - com.google.logging.v2.UpdateLogMetricRequest result = - new com.google.logging.v2.UpdateLogMetricRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UpdateLogMetricRequest result = new com.google.logging.v2.UpdateLogMetricRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -445,7 +402,9 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null + ? metric_ + : metricBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -455,39 +414,38 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UpdateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -530,25 +488,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetricFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,13 +515,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object metricName_ = ""; /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -575,16 +529,14 @@ public Builder mergeFrom(
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -593,8 +545,6 @@ public java.lang.String getMetricName() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -605,17 +555,16 @@ public java.lang.String getMetricName() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ - public com.google.protobuf.ByteString getMetricNameBytes() { + public com.google.protobuf.ByteString + getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metricName_ = b; return b; } else { @@ -623,8 +572,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -635,25 +582,19 @@ public com.google.protobuf.ByteString getMetricNameBytes() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -664,10 +605,7 @@ public Builder setMetricName(java.lang.String value) {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearMetricName() { @@ -677,8 +615,6 @@ public Builder clearMetricName() { return this; } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -689,17 +625,13 @@ public Builder clearMetricName() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metricName_ = value; bitField0_ |= 0x00000001; @@ -709,35 +641,24 @@ public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogMetric metric_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> - metricBuilder_; + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricBuilder_; /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -748,14 +669,11 @@ public com.google.logging.v2.LogMetric getMetric() { } } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -771,16 +689,14 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetric( + com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { metric_ = builderForValue.build(); } else { @@ -791,20 +707,17 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue return this; } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && metric_ != null - && metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + metric_ != null && + metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { getMetricBuilder().mergeFrom(value); } else { metric_ = value; @@ -819,14 +732,11 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { return this; } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetric() { bitField0_ = (bitField0_ & ~0x00000002); @@ -839,14 +749,11 @@ public Builder clearMetric() { return this; } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { bitField0_ |= 0x00000002; @@ -854,51 +761,43 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { return getMetricFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { - return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; + return metric_ == null ? + com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } } /** - * - * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { - metricBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, - com.google.logging.v2.LogMetric.Builder, - com.google.logging.v2.LogMetricOrBuilder>( - getMetric(), getParentForChildren(), isClean()); + metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( + getMetric(), + getParentForChildren(), + isClean()); metric_ = null; } return metricBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -908,12 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateLogMetricRequest) private static final com.google.logging.v2.UpdateLogMetricRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateLogMetricRequest(); } @@ -922,27 +821,27 @@ public static com.google.logging.v2.UpdateLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +856,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java index b8df5329a..d57d3de99 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateLogMetricRequestOrBuilder - extends +public interface UpdateLogMetricRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateLogMetricRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the metric to update:
    *
@@ -37,16 +19,11 @@ public interface UpdateLogMetricRequestOrBuilder
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The metricName. */ java.lang.String getMetricName(); /** - * - * *
    * Required. The resource name of the metric to update:
    *
@@ -57,41 +34,31 @@ public interface UpdateLogMetricRequestOrBuilder
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for metricName. */ - com.google.protobuf.ByteString getMetricNameBytes(); + com.google.protobuf.ByteString + getMetricNameBytes(); /** - * - * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the metric field is set. */ boolean hasMetric(); /** - * - * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The metric. */ com.google.logging.v2.LogMetric getMetric(); /** - * - * *
    * Required. The updated metric.
    * 
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java index d57e26039..02433f6de 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java @@ -1,27 +1,10 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -33,49 +16,44 @@
  *
  * Protobuf type {@code google.logging.v2.UpdateSettingsRequest}
  */
-public final class UpdateSettingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSettingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateSettingsRequest)
     UpdateSettingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSettingsRequest.newBuilder() to construct.
   private UpdateSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto
-        .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.UpdateSettingsRequest.class,
-            com.google.logging.v2.UpdateSettingsRequest.Builder.class);
+            com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name for the settings to update.
    *
@@ -91,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -100,15 +77,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the settings to update.
    *
@@ -124,15 +100,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -143,8 +120,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.Settings settings_; /** - * - * *
    * Required. The settings to update.
    *
@@ -153,9 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the settings field is set. */ @java.lang.Override @@ -163,8 +136,6 @@ public boolean hasSettings() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The settings to update.
    *
@@ -173,9 +144,7 @@ public boolean hasSettings() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The settings. */ @java.lang.Override @@ -183,8 +152,6 @@ public com.google.logging.v2.Settings getSettings() { return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } /** - * - * *
    * Required. The settings to update.
    *
@@ -193,8 +160,7 @@ public com.google.logging.v2.Settings getSettings() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { @@ -204,8 +170,6 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -216,9 +180,7 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -226,8 +188,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -238,9 +198,7 @@ public boolean hasUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -248,8 +206,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -260,8 +216,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -269,7 +224,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -304,10 +259,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSettings()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -317,22 +274,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateSettingsRequest other = - (com.google.logging.v2.UpdateSettingsRequest) obj; + com.google.logging.v2.UpdateSettingsRequest other = (com.google.logging.v2.UpdateSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { - if (!getSettings().equals(other.getSettings())) return false; + if (!getSettings() + .equals(other.getSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -360,104 +319,99 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to
    * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -469,23 +423,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.logging.v2.UpdateSettingsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSettingsRequest)
       com.google.logging.v2.UpdateSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateSettingsRequest.class,
-              com.google.logging.v2.UpdateSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateSettingsRequest.newBuilder()
@@ -493,18 +445,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSettingsFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +476,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto
-          .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -545,11 +497,8 @@ public com.google.logging.v2.UpdateSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.UpdateSettingsRequest buildPartial() {
-      com.google.logging.v2.UpdateSettingsRequest result =
-          new com.google.logging.v2.UpdateSettingsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.logging.v2.UpdateSettingsRequest result = new com.google.logging.v2.UpdateSettingsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -561,11 +510,15 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build();
+        result.settings_ = settingsBuilder_ == null
+            ? settings_
+            : settingsBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -575,39 +528,38 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.UpdateSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest) other);
+        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -653,31 +605,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -687,13 +639,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for the settings to update.
      *
@@ -709,13 +658,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -724,8 +673,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -741,14 +688,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -756,8 +704,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -773,22 +719,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -804,7 +746,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -814,8 +755,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -831,14 +770,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -848,13 +785,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.Settings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, - com.google.logging.v2.Settings.Builder, - com.google.logging.v2.SettingsOrBuilder> - settingsBuilder_; + com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder> settingsBuilder_; /** - * - * *
      * Required. The settings to update.
      *
@@ -863,17 +795,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the settings field is set. */ public boolean hasSettings() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The settings to update.
      *
@@ -882,9 +810,7 @@ public boolean hasSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The settings. */ public com.google.logging.v2.Settings getSettings() { @@ -895,8 +821,6 @@ public com.google.logging.v2.Settings getSettings() { } } /** - * - * *
      * Required. The settings to update.
      *
@@ -905,8 +829,7 @@ public com.google.logging.v2.Settings getSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSettings(com.google.logging.v2.Settings value) { if (settingsBuilder_ == null) { @@ -922,8 +845,6 @@ public Builder setSettings(com.google.logging.v2.Settings value) { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -932,10 +853,10 @@ public Builder setSettings(com.google.logging.v2.Settings value) {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValue) { + public Builder setSettings( + com.google.logging.v2.Settings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); } else { @@ -946,8 +867,6 @@ public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValu return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -956,14 +875,13 @@ public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValu
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSettings(com.google.logging.v2.Settings value) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && settings_ != null - && settings_ != com.google.logging.v2.Settings.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + settings_ != null && + settings_ != com.google.logging.v2.Settings.getDefaultInstance()) { getSettingsBuilder().mergeFrom(value); } else { settings_ = value; @@ -978,8 +896,6 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -988,8 +904,7 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSettings() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1002,8 +917,6 @@ public Builder clearSettings() { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -1012,8 +925,7 @@ public Builder clearSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { bitField0_ |= 0x00000002; @@ -1021,8 +933,6 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { return getSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The settings to update.
      *
@@ -1031,19 +941,17 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + return settings_ == null ? + com.google.logging.v2.Settings.getDefaultInstance() : settings_; } } /** - * - * *
      * Required. The settings to update.
      *
@@ -1052,21 +960,17 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, - com.google.logging.v2.Settings.Builder, - com.google.logging.v2.SettingsOrBuilder> + com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, - com.google.logging.v2.Settings.Builder, - com.google.logging.v2.SettingsOrBuilder>( - getSettings(), getParentForChildren(), isClean()); + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); settings_ = null; } return settingsBuilder_; @@ -1074,13 +978,8 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1091,17 +990,13 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1112,23 +1007,17 @@ public boolean hasUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1139,8 +1028,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1156,8 +1044,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1168,10 +1054,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1182,8 +1068,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1194,14 +1078,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1216,8 +1099,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1228,8 +1109,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1242,8 +1122,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1254,8 +1132,7 @@ public Builder clearUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1263,8 +1140,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1275,21 +1150,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1300,28 +1171,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1331,12 +1198,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateSettingsRequest) private static final com.google.logging.v2.UpdateSettingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateSettingsRequest(); } @@ -1345,27 +1212,27 @@ public static com.google.logging.v2.UpdateSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,4 +1247,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java index 62b6d1021..561f5f9fd 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateSettingsRequestOrBuilder - extends +public interface UpdateSettingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSettingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for the settings to update.
    *
@@ -42,13 +24,10 @@ public interface UpdateSettingsRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name for the settings to update.
    *
@@ -64,14 +43,12 @@ public interface UpdateSettingsRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The settings to update.
    *
@@ -80,15 +57,11 @@ public interface UpdateSettingsRequestOrBuilder
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the settings field is set. */ boolean hasSettings(); /** - * - * *
    * Required. The settings to update.
    *
@@ -97,15 +70,11 @@ public interface UpdateSettingsRequestOrBuilder
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The settings. */ com.google.logging.v2.Settings getSettings(); /** - * - * *
    * Required. The settings to update.
    *
@@ -114,14 +83,11 @@ public interface UpdateSettingsRequestOrBuilder
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder(); /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -132,15 +98,11 @@ public interface UpdateSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -151,15 +113,11 @@ public interface UpdateSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -170,8 +128,7 @@ public interface UpdateSettingsRequestOrBuilder
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index 9fa611bef..fa5ab9802 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `UpdateSink`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateSinkRequest} */ -public final class UpdateSinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateSinkRequest) UpdateSinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSinkRequest.newBuilder() to construct. private UpdateSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateSinkRequest.class, - com.google.logging.v2.UpdateSinkRequest.Builder.class); + com.google.logging.v2.UpdateSinkRequest.class, com.google.logging.v2.UpdateSinkRequest.Builder.class); } private int bitField0_; public static final int SINK_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** - * - * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ @java.lang.Override @@ -97,15 +72,14 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -120,18 +94,17 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -142,15 +115,12 @@ public com.google.protobuf.ByteString getSinkNameBytes() { public static final int SINK_FIELD_NUMBER = 2; private com.google.logging.v2.LogSink sink_; /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ @java.lang.Override @@ -158,15 +128,12 @@ public boolean hasSink() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ @java.lang.Override @@ -174,8 +141,6 @@ public com.google.logging.v2.LogSink getSink() { return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_; } /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
@@ -191,8 +156,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   private boolean uniqueWriterIdentity_ = false;
   /**
-   *
-   *
    * 
    * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * for a description of this field. When updating a sink, the effect of this
@@ -208,7 +171,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -219,8 +181,6 @@ public boolean getUniqueWriterIdentity() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -240,9 +200,7 @@ public boolean getUniqueWriterIdentity() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -250,8 +208,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -271,9 +227,7 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -281,8 +235,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -302,8 +254,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -311,7 +262,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -349,13 +300,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sinkName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSink()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSink()); } if (uniqueWriterIdentity_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, uniqueWriterIdentity_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, uniqueWriterIdentity_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -365,22 +319,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateSinkRequest other = (com.google.logging.v2.UpdateSinkRequest) obj; - if (!getSinkName().equals(other.getSinkName())) return false; + if (!getSinkName() + .equals(other.getSinkName())) return false; if (hasSink() != other.hasSink()) return false; if (hasSink()) { - if (!getSink().equals(other.getSink())) return false; + if (!getSink() + .equals(other.getSink())) return false; } - if (getUniqueWriterIdentity() != other.getUniqueWriterIdentity()) return false; + if (getUniqueWriterIdentity() + != other.getUniqueWriterIdentity()) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -400,7 +358,8 @@ public int hashCode() { hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUniqueWriterIdentity()); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); @@ -410,127 +369,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateSinkRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateSinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `UpdateSink`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateSinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSinkRequest) com.google.logging.v2.UpdateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateSinkRequest.class, - com.google.logging.v2.UpdateSinkRequest.Builder.class); + com.google.logging.v2.UpdateSinkRequest.class, com.google.logging.v2.UpdateSinkRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateSinkRequest.newBuilder() @@ -538,18 +490,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSinkFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override @@ -591,11 +543,8 @@ public com.google.logging.v2.UpdateSinkRequest build() { @java.lang.Override public com.google.logging.v2.UpdateSinkRequest buildPartial() { - com.google.logging.v2.UpdateSinkRequest result = - new com.google.logging.v2.UpdateSinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UpdateSinkRequest result = new com.google.logging.v2.UpdateSinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -607,14 +556,18 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null + ? sink_ + : sinkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.uniqueWriterIdentity_ = uniqueWriterIdentity_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -624,39 +577,38 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UpdateSinkRequest) { - return mergeFrom((com.google.logging.v2.UpdateSinkRequest) other); + return mergeFrom((com.google.logging.v2.UpdateSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -705,37 +657,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSinkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - uniqueWriterIdentity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sinkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSinkFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + uniqueWriterIdentity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -745,13 +696,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -766,16 +714,14 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -784,8 +730,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -800,17 +744,16 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString getSinkNameBytes() { + public com.google.protobuf.ByteString + getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sinkName_ = b; return b; } else { @@ -818,8 +761,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -834,25 +775,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -867,10 +802,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSinkName() { @@ -880,8 +812,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -896,17 +826,13 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sinkName_ = value; bitField0_ |= 0x00000001; @@ -916,35 +842,26 @@ public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogSink sink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSink, - com.google.logging.v2.LogSink.Builder, - com.google.logging.v2.LogSinkOrBuilder> - sinkBuilder_; + com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinkBuilder_; /** - * - * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ public boolean hasSink() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ public com.google.logging.v2.LogSink getSink() { @@ -955,8 +872,6 @@ public com.google.logging.v2.LogSink getSink() { } } /** - * - * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -978,8 +893,6 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -987,7 +900,8 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
      *
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
+    public Builder setSink(
+        com.google.logging.v2.LogSink.Builder builderForValue) {
       if (sinkBuilder_ == null) {
         sink_ = builderForValue.build();
       } else {
@@ -998,8 +912,6 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1009,9 +921,9 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
      */
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && sink_ != null
-            && sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          sink_ != null &&
+          sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
           getSinkBuilder().mergeFrom(value);
         } else {
           sink_ = value;
@@ -1026,8 +938,6 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1046,8 +956,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1061,8 +969,6 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
       return getSinkFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1074,12 +980,11 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
       if (sinkBuilder_ != null) {
         return sinkBuilder_.getMessageOrBuilder();
       } else {
-        return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
+        return sink_ == null ?
+            com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1088,26 +993,21 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.LogSink,
-            com.google.logging.v2.LogSink.Builder,
-            com.google.logging.v2.LogSinkOrBuilder>
+        com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> 
         getSinkFieldBuilder() {
       if (sinkBuilder_ == null) {
-        sinkBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.logging.v2.LogSink,
-                com.google.logging.v2.LogSink.Builder,
-                com.google.logging.v2.LogSinkOrBuilder>(
-                getSink(), getParentForChildren(), isClean());
+        sinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>(
+                getSink(),
+                getParentForChildren(),
+                isClean());
         sink_ = null;
       }
       return sinkBuilder_;
     }
 
-    private boolean uniqueWriterIdentity_;
+    private boolean uniqueWriterIdentity_ ;
     /**
-     *
-     *
      * 
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1123,7 +1023,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1131,8 +1030,6 @@ public boolean getUniqueWriterIdentity() { return uniqueWriterIdentity_; } /** - * - * *
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1148,7 +1045,6 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -1160,8 +1056,6 @@ public Builder setUniqueWriterIdentity(boolean value) { return this; } /** - * - * *
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1177,7 +1071,6 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1189,13 +1082,8 @@ public Builder clearUniqueWriterIdentity() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1215,17 +1103,13 @@ public Builder clearUniqueWriterIdentity() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1245,23 +1129,17 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1281,8 +1159,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1298,8 +1175,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1319,10 +1194,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1333,8 +1208,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1354,14 +1227,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1376,8 +1248,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1397,8 +1267,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1411,8 +1280,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1432,8 +1299,7 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000008; @@ -1441,8 +1307,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1462,21 +1326,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1496,28 +1356,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1527,12 +1383,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateSinkRequest) private static final com.google.logging.v2.UpdateSinkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateSinkRequest(); } @@ -1541,27 +1397,27 @@ public static com.google.logging.v2.UpdateSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1576,4 +1432,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java index 9b04aa7af..30d1a3a1a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateSinkRequestOrBuilder - extends +public interface UpdateSinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSinkRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -41,16 +23,11 @@ public interface UpdateSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sinkName. */ java.lang.String getSinkName(); /** - * - * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -65,43 +42,33 @@ public interface UpdateSinkRequestOrBuilder
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sinkName. */ - com.google.protobuf.ByteString getSinkNameBytes(); + com.google.protobuf.ByteString + getSinkNameBytes(); /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the sink field is set. */ boolean hasSink(); /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sink. */ com.google.logging.v2.LogSink getSink(); /** - * - * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
@@ -112,8 +79,6 @@ public interface UpdateSinkRequestOrBuilder
   com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * for a description of this field. When updating a sink, the effect of this
@@ -129,14 +94,11 @@ public interface UpdateSinkRequestOrBuilder
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ boolean getUniqueWriterIdentity(); /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -156,15 +118,11 @@ public interface UpdateSinkRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -184,15 +142,11 @@ public interface UpdateSinkRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -212,8 +166,7 @@ public interface UpdateSinkRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java index b9c0dad41..fa83e3178 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java @@ -1,76 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * The parameters to `UpdateView`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateViewRequest} */ -public final class UpdateViewRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateViewRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateViewRequest) UpdateViewRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateViewRequest.newBuilder() to construct. private UpdateViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateViewRequest.class, - com.google.logging.v2.UpdateViewRequest.Builder.class); + com.google.logging.v2.UpdateViewRequest.class, com.google.logging.v2.UpdateViewRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The full resource name of the view to update
    *
@@ -82,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -91,15 +68,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the view to update
    *
@@ -111,15 +87,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,14 +107,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private com.google.logging.v2.LogView view_; /** - * - * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ @java.lang.Override @@ -145,14 +119,11 @@ public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ @java.lang.Override @@ -160,8 +131,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The updated view.
    * 
@@ -176,8 +145,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -189,9 +156,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -199,8 +164,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -212,9 +175,7 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -222,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -235,8 +194,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -244,7 +202,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -279,10 +237,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getView()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getView()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -292,21 +252,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.UpdateViewRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateViewRequest other = (com.google.logging.v2.UpdateViewRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { - if (!getView().equals(other.getView())) return false; + if (!getView() + .equals(other.getView())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -334,127 +297,120 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateViewRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.UpdateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to `UpdateView`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateViewRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateViewRequest) com.google.logging.v2.UpdateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateViewRequest.class, - com.google.logging.v2.UpdateViewRequest.Builder.class); + com.google.logging.v2.UpdateViewRequest.class, com.google.logging.v2.UpdateViewRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateViewRequest.newBuilder() @@ -462,18 +418,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getViewFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override @@ -514,11 +470,8 @@ public com.google.logging.v2.UpdateViewRequest build() { @java.lang.Override public com.google.logging.v2.UpdateViewRequest buildPartial() { - com.google.logging.v2.UpdateViewRequest result = - new com.google.logging.v2.UpdateViewRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.UpdateViewRequest result = new com.google.logging.v2.UpdateViewRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -530,11 +483,15 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); + result.view_ = viewBuilder_ == null + ? view_ + : viewBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -544,39 +501,38 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.UpdateViewRequest) { - return mergeFrom((com.google.logging.v2.UpdateViewRequest) other); + return mergeFrom((com.google.logging.v2.UpdateViewRequest)other); } else { super.mergeFrom(other); return this; @@ -622,31 +578,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -656,13 +612,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -674,13 +627,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -689,8 +642,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -702,14 +653,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -717,8 +669,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -730,22 +680,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -757,7 +703,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -767,8 +712,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -780,14 +723,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -797,33 +738,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.logging.v2.LogView view_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> - viewBuilder_; + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewBuilder_; /** - * - * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ public com.google.logging.v2.LogView getView() { @@ -834,8 +766,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The updated view.
      * 
@@ -856,15 +786,14 @@ public Builder setView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setView( + com.google.logging.v2.LogView.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { @@ -875,8 +804,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -885,9 +812,9 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { */ public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && view_ != null - && view_ != com.google.logging.v2.LogView.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + view_ != null && + view_ != com.google.logging.v2.LogView.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; @@ -902,8 +829,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -921,8 +846,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -935,8 +858,6 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated view.
      * 
@@ -947,12 +868,11 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { - return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; + return view_ == null ? + com.google.logging.v2.LogView.getDefaultInstance() : view_; } } /** - * - * *
      * Required. The updated view.
      * 
@@ -960,17 +880,14 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { - viewBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, - com.google.logging.v2.LogView.Builder, - com.google.logging.v2.LogViewOrBuilder>( - getView(), getParentForChildren(), isClean()); + viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( + getView(), + getParentForChildren(), + isClean()); view_ = null; } return viewBuilder_; @@ -978,13 +895,8 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -996,17 +908,13 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1018,23 +926,17 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1046,8 +948,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1063,8 +964,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1076,10 +975,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1090,8 +989,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1103,14 +1000,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1125,8 +1021,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1138,8 +1032,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1152,8 +1045,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1165,8 +1056,7 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1174,8 +1064,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1187,21 +1075,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1213,28 +1097,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1124,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateViewRequest) private static final com.google.logging.v2.UpdateViewRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateViewRequest(); } @@ -1258,27 +1138,27 @@ public static com.google.logging.v2.UpdateViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,4 +1173,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java index dccb71c31..2fa6c5476 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateViewRequestOrBuilder - extends +public interface UpdateViewRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateViewRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full resource name of the view to update
    *
@@ -38,13 +20,10 @@ public interface UpdateViewRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The full resource name of the view to update
    *
@@ -56,38 +35,30 @@ public interface UpdateViewRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the view field is set. */ boolean hasView(); /** - * - * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ com.google.logging.v2.LogView getView(); /** - * - * *
    * Required. The updated view.
    * 
@@ -97,8 +68,6 @@ public interface UpdateViewRequestOrBuilder com.google.logging.v2.LogViewOrBuilder getViewOrBuilder(); /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -110,15 +79,11 @@ public interface UpdateViewRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -130,15 +95,11 @@ public interface UpdateViewRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -150,8 +111,7 @@ public interface UpdateViewRequestOrBuilder
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java index 0d09643fe..1553066c1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java @@ -1,54 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Error details for WriteLogEntries with partial success.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesPartialErrors} */ -public final class WriteLogEntriesPartialErrors extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteLogEntriesPartialErrors extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesPartialErrors) WriteLogEntriesPartialErrorsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteLogEntriesPartialErrors.newBuilder() to construct. private WriteLogEntriesPartialErrors(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteLogEntriesPartialErrors() {} + private WriteLogEntriesPartialErrors() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteLogEntriesPartialErrors(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -59,53 +43,45 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetLogEntryErrors(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesPartialErrors.class, - com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); + com.google.logging.v2.WriteLogEntriesPartialErrors.class, com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); } public static final int LOG_ENTRY_ERRORS_FIELD_NUMBER = 1; - private static final class LogEntryErrorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.google.rpc.Status> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.rpc.Status.getDefaultInstance()); + .newDefaultInstance( + com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.rpc.Status.getDefaultInstance()); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField logEntryErrors_; - + private com.google.protobuf.MapField< + java.lang.Integer, com.google.rpc.Status> logEntryErrors_; private com.google.protobuf.MapField - internalGetLogEntryErrors() { + internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return com.google.protobuf.MapField.emptyMapField( LogEntryErrorsDefaultEntryHolder.defaultEntry); } return logEntryErrors_; } - public int getLogEntryErrorsCount() { return internalGetLogEntryErrors().getMap().size(); } /** - * - * *
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -118,19 +94,20 @@ public int getLogEntryErrorsCount() {
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public boolean containsLogEntryErrors(int key) {
+  public boolean containsLogEntryErrors(
+      int key) {
 
     return internalGetLogEntryErrors().getMap().containsKey(key);
   }
-  /** Use {@link #getLogEntryErrorsMap()} instead. */
+  /**
+   * Use {@link #getLogEntryErrorsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLogEntryErrors() {
     return getLogEntryErrorsMap();
   }
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -147,8 +124,6 @@ public java.util.Map getLogEntryErrors
     return internalGetLogEntryErrors().getMap();
   }
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -161,18 +136,17 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public /* nullable */ com.google.rpc.Status getLogEntryErrorsOrDefault(
+  public /* nullable */
+com.google.rpc.Status getLogEntryErrorsOrDefault(
       int key,
       /* nullable */
-      com.google.rpc.Status defaultValue) {
+com.google.rpc.Status defaultValue) {
 
     java.util.Map map =
         internalGetLogEntryErrors().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -185,7 +159,8 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
+  public com.google.rpc.Status getLogEntryErrorsOrThrow(
+      int key) {
 
     java.util.Map map =
         internalGetLogEntryErrors().getMap();
@@ -196,7 +171,6 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -208,9 +182,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo(
-        output, internalGetLogEntryErrors(), LogEntryErrorsDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeIntegerMapTo(
+        output,
+        internalGetLogEntryErrors(),
+        LogEntryErrorsDefaultEntryHolder.defaultEntry,
+        1);
     getUnknownFields().writeTo(output);
   }
 
@@ -220,15 +199,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetLogEntryErrors().getMap().entrySet()) {
-      com.google.protobuf.MapEntry logEntryErrors__ =
-          LogEntryErrorsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, logEntryErrors__);
+    for (java.util.Map.Entry entry
+         : internalGetLogEntryErrors().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      logEntryErrors__ = LogEntryErrorsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, logEntryErrors__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,15 +217,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.logging.v2.WriteLogEntriesPartialErrors)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.WriteLogEntriesPartialErrors other =
-        (com.google.logging.v2.WriteLogEntriesPartialErrors) obj;
+    com.google.logging.v2.WriteLogEntriesPartialErrors other = (com.google.logging.v2.WriteLogEntriesPartialErrors) obj;
 
-    if (!internalGetLogEntryErrors().equals(other.internalGetLogEntryErrors())) return false;
+    if (!internalGetLogEntryErrors().equals(
+        other.internalGetLogEntryErrors())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -268,116 +247,111 @@ public int hashCode() {
   }
 
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesPartialErrors prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Error details for WriteLogEntries with partial success.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesPartialErrors} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesPartialErrors) com.google.logging.v2.WriteLogEntriesPartialErrorsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -387,10 +361,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetLogEntryErrors(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -398,27 +372,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 1: return internalGetMutableLogEntryErrors(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesPartialErrors.class, - com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); + com.google.logging.v2.WriteLogEntriesPartialErrors.class, com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesPartialErrors.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @java.lang.Override @@ -449,11 +424,8 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesPartialErrors buildPartial() { - com.google.logging.v2.WriteLogEntriesPartialErrors result = - new com.google.logging.v2.WriteLogEntriesPartialErrors(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.logging.v2.WriteLogEntriesPartialErrors result = new com.google.logging.v2.WriteLogEntriesPartialErrors(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,8 +433,7 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors buildPartial() { private void buildPartial0(com.google.logging.v2.WriteLogEntriesPartialErrors result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.logEntryErrors_ = - internalGetLogEntryErrors().build(LogEntryErrorsDefaultEntryHolder.defaultEntry); + result.logEntryErrors_ = internalGetLogEntryErrors().build(LogEntryErrorsDefaultEntryHolder.defaultEntry); } } @@ -470,39 +441,38 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesPartialErrors re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.WriteLogEntriesPartialErrors) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors) other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors)other); } else { super.mergeFrom(other); return this; @@ -510,9 +480,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesPartialErrors other) { - if (other == com.google.logging.v2.WriteLogEntriesPartialErrors.getDefaultInstance()) - return this; - internalGetMutableLogEntryErrors().mergeFrom(other.internalGetLogEntryErrors()); + if (other == com.google.logging.v2.WriteLogEntriesPartialErrors.getDefaultInstance()) return this; + internalGetMutableLogEntryErrors().mergeFrom( + other.internalGetLogEntryErrors()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -540,26 +510,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry - logEntryErrors__ = - input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLogEntryErrors() - .ensureBuilderMap() - .put(logEntryErrors__.getKey(), logEntryErrors__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + logEntryErrors__ = input.readMessage( + LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLogEntryErrors().ensureBuilderMap().put( + logEntryErrors__.getKey(), logEntryErrors__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,17 +534,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private static final class LogEntryErrorsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.Integer, com.google.rpc.StatusOrBuilder, com.google.rpc.Status> { + private static final class LogEntryErrorsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.google.rpc.Status build(com.google.rpc.StatusOrBuilder val) { - if (val instanceof com.google.rpc.Status) { - return (com.google.rpc.Status) val; - } + if (val instanceof com.google.rpc.Status) { return (com.google.rpc.Status) val; } return ((com.google.rpc.Status.Builder) val).build(); } @@ -588,34 +548,18 @@ public com.google.protobuf.MapEntry de return LogEntryErrorsDefaultEntryHolder.defaultEntry; } }; - - private static final LogEntryErrorsConverter logEntryErrorsConverter = - new LogEntryErrorsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> - logEntryErrors_; + private static final LogEntryErrorsConverter logEntryErrorsConverter = new LogEntryErrorsConverter(); private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> + java.lang.Integer, com.google.rpc.StatusOrBuilder, com.google.rpc.Status, com.google.rpc.Status.Builder> logEntryErrors_; + private com.google.protobuf.MapFieldBuilder internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return new com.google.protobuf.MapFieldBuilder<>(logEntryErrorsConverter); } return logEntryErrors_; } - - private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> + private com.google.protobuf.MapFieldBuilder internalGetMutableLogEntryErrors() { if (logEntryErrors_ == null) { logEntryErrors_ = new com.google.protobuf.MapFieldBuilder<>(logEntryErrorsConverter); @@ -624,13 +568,10 @@ public com.google.protobuf.MapEntry de onChanged(); return logEntryErrors_; } - public int getLogEntryErrorsCount() { return internalGetLogEntryErrors().ensureBuilderMap().size(); } /** - * - * *
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -643,19 +584,20 @@ public int getLogEntryErrorsCount() {
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public boolean containsLogEntryErrors(int key) {
+    public boolean containsLogEntryErrors(
+        int key) {
 
       return internalGetLogEntryErrors().ensureBuilderMap().containsKey(key);
     }
-    /** Use {@link #getLogEntryErrorsMap()} instead. */
+    /**
+     * Use {@link #getLogEntryErrorsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLogEntryErrors() {
       return getLogEntryErrorsMap();
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -672,8 +614,6 @@ public java.util.Map getLogEntryErrors
       return internalGetLogEntryErrors().getImmutableMap();
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -686,18 +626,16 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public /* nullable */ com.google.rpc.Status getLogEntryErrorsOrDefault(
+    public /* nullable */
+com.google.rpc.Status getLogEntryErrorsOrDefault(
         int key,
         /* nullable */
-        com.google.rpc.Status defaultValue) {
+com.google.rpc.Status defaultValue) {
 
-      java.util.Map map =
-          internalGetMutableLogEntryErrors().ensureBuilderMap();
+      java.util.Map map = internalGetMutableLogEntryErrors().ensureBuilderMap();
       return map.containsKey(key) ? logEntryErrorsConverter.build(map.get(key)) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -710,24 +648,21 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
+    public com.google.rpc.Status getLogEntryErrorsOrThrow(
+        int key) {
 
-      java.util.Map map =
-          internalGetMutableLogEntryErrors().ensureBuilderMap();
+      java.util.Map map = internalGetMutableLogEntryErrors().ensureBuilderMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return logEntryErrorsConverter.build(map.get(key));
     }
-
     public Builder clearLogEntryErrors() {
       bitField0_ = (bitField0_ & ~0x00000001);
       internalGetMutableLogEntryErrors().clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -739,20 +674,23 @@ public Builder clearLogEntryErrors() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder removeLogEntryErrors(int key) {
+    public Builder removeLogEntryErrors(
+        int key) {
 
-      internalGetMutableLogEntryErrors().ensureBuilderMap().remove(key);
+      internalGetMutableLogEntryErrors().ensureBuilderMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLogEntryErrors() {
+    public java.util.Map
+        getMutableLogEntryErrors() {
       bitField0_ |= 0x00000001;
       return internalGetMutableLogEntryErrors().ensureMessageMap();
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -764,18 +702,17 @@ public java.util.Map getMutableLogEntr
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
+    public Builder putLogEntryErrors(
+        int key,
+        com.google.rpc.Status value) {
 
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLogEntryErrors().ensureBuilderMap().put(key, value);
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLogEntryErrors().ensureBuilderMap()
+          .put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -794,13 +731,12 @@ public Builder putAllLogEntryErrors(
           throw new NullPointerException();
         }
       }
-      internalGetMutableLogEntryErrors().ensureBuilderMap().putAll(values);
+      internalGetMutableLogEntryErrors().ensureBuilderMap()
+          .putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -812,9 +748,9 @@ public Builder putAllLogEntryErrors(
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(int key) {
-      java.util.Map builderMap =
-          internalGetMutableLogEntryErrors().ensureBuilderMap();
+    public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(
+        int key) {
+      java.util.Map builderMap = internalGetMutableLogEntryErrors().ensureBuilderMap();
       com.google.rpc.StatusOrBuilder entry = builderMap.get(key);
       if (entry == null) {
         entry = com.google.rpc.Status.newBuilder();
@@ -826,9 +762,9 @@ public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(int key) {
       }
       return (com.google.rpc.Status.Builder) entry;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -838,12 +774,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesPartialErrors)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesPartialErrors)
   private static final com.google.logging.v2.WriteLogEntriesPartialErrors DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesPartialErrors();
   }
@@ -852,27 +788,27 @@ public static com.google.logging.v2.WriteLogEntriesPartialErrors getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public WriteLogEntriesPartialErrors parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WriteLogEntriesPartialErrors parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,4 +823,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.logging.v2.WriteLogEntriesPartialErrors getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
similarity index 69%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
index d51feb41b..c7fdf6657 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
-public interface WriteLogEntriesPartialErrorsOrBuilder
-    extends
+public interface WriteLogEntriesPartialErrorsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesPartialErrors)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -40,8 +22,6 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    */
   int getLogEntryErrorsCount();
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -53,13 +33,15 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  boolean containsLogEntryErrors(int key);
-  /** Use {@link #getLogEntryErrorsMap()} instead. */
+  boolean containsLogEntryErrors(
+      int key);
+  /**
+   * Use {@link #getLogEntryErrorsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLogEntryErrors();
+  java.util.Map
+  getLogEntryErrors();
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -71,10 +53,9 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  java.util.Map getLogEntryErrorsMap();
+  java.util.Map
+  getLogEntryErrorsMap();
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -87,13 +68,11 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   /* nullable */
-  com.google.rpc.Status getLogEntryErrorsOrDefault(
+com.google.rpc.Status getLogEntryErrorsOrDefault(
       int key,
       /* nullable */
-      com.google.rpc.Status defaultValue);
+com.google.rpc.Status defaultValue);
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -105,5 +84,6 @@ com.google.rpc.Status getLogEntryErrorsOrDefault(
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  com.google.rpc.Status getLogEntryErrorsOrThrow(int key);
+  com.google.rpc.Status getLogEntryErrorsOrThrow(
+      int key);
 }
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
similarity index 79%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
index 95538e6f1..69f8eb873 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
@@ -1,43 +1,25 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging.proto
 
-// Protobuf Java Version: 3.25.2
+// Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * The parameters to WriteLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesRequest} */ -public final class WriteLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteLogEntriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesRequest) WriteLogEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteLogEntriesRequest.newBuilder() to construct. private WriteLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteLogEntriesRequest() { logName_ = ""; entries_ = java.util.Collections.emptyList(); @@ -45,13 +27,14 @@ private WriteLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -62,28 +45,23 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesRequest.class, - com.google.logging.v2.WriteLogEntriesRequest.Builder.class); + com.google.logging.v2.WriteLogEntriesRequest.class, com.google.logging.v2.WriteLogEntriesRequest.Builder.class); } private int bitField0_; public static final int LOG_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** - * - * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -104,10 +82,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
    * individual log entry.
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The logName. */ @java.lang.Override @@ -116,15 +91,14 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** - * - * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -145,18 +119,17 @@ public java.lang.String getLogName() {
    * individual log entry.
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -167,8 +140,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.api.MonitoredResource resource_; /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -180,9 +151,7 @@ public com.google.protobuf.ByteString getLogNameBytes() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resource field is set. */ @java.lang.Override @@ -190,8 +159,6 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -203,9 +170,7 @@ public boolean hasResource() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resource. */ @java.lang.Override @@ -213,8 +178,6 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -226,8 +189,7 @@ public com.google.api.MonitoredResource getResource() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { @@ -235,34 +197,32 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -273,21 +233,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -302,8 +261,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -314,19 +271,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -337,11 +292,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -349,12 +304,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int ENTRIES_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private java.util.List entries_;
   /**
-   *
-   *
    * 
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -382,17 +334,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -420,18 +368,14 @@ public java.util.List getEntriesList() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getEntriesOrBuilderList() { return entries_; } /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -459,17 +403,13 @@ public java.util.List getEntriesList() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -497,17 +437,13 @@ public int getEntriesCount() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.logging.v2.LogEntry getEntries(int index) { return entries_.get(index); } /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -535,20 +471,17 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { + public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( + int index) { return entries_.get(index); } public static final int PARTIAL_SUCCESS_FIELD_NUMBER = 5; private boolean partialSuccess_ = false; /** - * - * *
    * Optional. Whether a batch's valid entries should be written even if some
    * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -560,7 +493,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ @java.lang.Override @@ -571,8 +503,6 @@ public boolean getPartialSuccess() { public static final int DRY_RUN_FIELD_NUMBER = 6; private boolean dryRun_ = false; /** - * - * *
    * Optional. If true, the request should expect normal response, but the
    * entries won't be persisted nor exported. Useful for checking whether the
@@ -580,7 +510,6 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -589,7 +518,6 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -601,15 +529,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResource()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); for (int i = 0; i < entries_.size(); i++) { output.writeMessage(4, entries_.get(i)); } @@ -632,26 +565,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResource()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, labels__); } for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, entries_.get(i)); } if (partialSuccess_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, partialSuccess_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, partialSuccess_); } if (dryRun_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, dryRun_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, dryRun_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -661,23 +598,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.WriteLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.WriteLogEntriesRequest other = - (com.google.logging.v2.WriteLogEntriesRequest) obj; + com.google.logging.v2.WriteLogEntriesRequest other = (com.google.logging.v2.WriteLogEntriesRequest) obj; - if (!getLogName().equals(other.getLogName())) return false; + if (!getLogName() + .equals(other.getLogName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getEntriesList().equals(other.getEntriesList())) return false; - if (getPartialSuccess() != other.getPartialSuccess()) return false; - if (getDryRun() != other.getDryRun()) return false; + if (!getResource() + .equals(other.getResource())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; + if (getPartialSuccess() + != other.getPartialSuccess()) return false; + if (getDryRun() + != other.getDryRun()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -704,125 +646,122 @@ public int hashCode() { hash = (53 * hash) + getEntriesList().hashCode(); } hash = (37 * hash) + PARTIAL_SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialSuccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialSuccess()); hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDryRun()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The parameters to WriteLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesRequest) com.google.logging.v2.WriteLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -832,10 +771,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -843,18 +782,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 3: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesRequest.class, - com.google.logging.v2.WriteLogEntriesRequest.Builder.class); + com.google.logging.v2.WriteLogEntriesRequest.class, com.google.logging.v2.WriteLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesRequest.newBuilder() @@ -862,18 +799,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourceFieldBuilder(); getEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -898,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @java.lang.Override @@ -919,12 +856,9 @@ public com.google.logging.v2.WriteLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesRequest buildPartial() { - com.google.logging.v2.WriteLogEntriesRequest result = - new com.google.logging.v2.WriteLogEntriesRequest(this); + com.google.logging.v2.WriteLogEntriesRequest result = new com.google.logging.v2.WriteLogEntriesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -948,7 +882,9 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -968,39 +904,38 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.WriteLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -1017,7 +952,8 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { if (other.hasResource()) { mergeResource(other.getResource()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000004; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { @@ -1037,10 +973,9 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000008); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntriesFieldBuilder() - : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1078,61 +1013,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.logging.v2.LogEntry m = - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: - { - partialSuccess_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - dryRun_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + logName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.logging.v2.LogEntry m = + input.readMessage( + com.google.logging.v2.LogEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + partialSuccess_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + dryRun_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1142,13 +1072,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object logName_ = ""; /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1169,16 +1096,14 @@ public Builder mergeFrom(
      * individual log entry.
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -1187,8 +1112,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1209,17 +1132,16 @@ public java.lang.String getLogName() {
      * individual log entry.
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ - public com.google.protobuf.ByteString getLogNameBytes() { + public com.google.protobuf.ByteString + getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logName_ = b; return b; } else { @@ -1227,8 +1149,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1249,25 +1169,19 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * individual log entry.
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1288,10 +1202,7 @@ public Builder setLogName(java.lang.String value) {
      * individual log entry.
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLogName() { @@ -1301,8 +1212,6 @@ public Builder clearLogName() { return this; } /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1323,17 +1232,13 @@ public Builder clearLogName() {
      * individual log entry.
      * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logName_ = value; bitField0_ |= 0x00000001; @@ -1343,13 +1248,8 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) { private com.google.api.MonitoredResource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> - resourceBuilder_; + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_; /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1361,17 +1261,13 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1383,23 +1279,17 @@ public boolean hasResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.api.MonitoredResource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1411,8 +1301,7 @@ public com.google.api.MonitoredResource getResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { @@ -1428,8 +1317,6 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1441,10 +1328,10 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setResource( + com.google.api.MonitoredResource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -1455,8 +1342,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa return this; } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1468,14 +1353,13 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && resource_ != null - && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + resource_ != null && + resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -1490,8 +1374,6 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1503,8 +1385,7 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1517,8 +1398,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1530,8 +1409,7 @@ public Builder clearResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.MonitoredResource.Builder getResourceBuilder() { bitField0_ |= 0x00000002; @@ -1539,8 +1417,6 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1552,21 +1428,17 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.api.MonitoredResource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.api.MonitoredResource.getDefaultInstance() : resource_; } } /** - * - * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1578,39 +1450,37 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1619,13 +1489,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1636,21 +1503,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1665,8 +1531,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1677,19 +1541,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1700,25 +1562,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000004);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1728,22 +1588,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000004;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1753,20 +1614,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000004;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1776,31 +1634,27 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000004;
       return this;
     }
 
     private java.util.List entries_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.LogEntry,
-            com.google.logging.v2.LogEntry.Builder,
-            com.google.logging.v2.LogEntryOrBuilder>
-        entriesBuilder_;
+        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1828,9 +1682,7 @@ private void ensureEntriesIsMutable() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { @@ -1840,8 +1692,6 @@ public java.util.List getEntriesList() { } } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1869,9 +1719,7 @@ public java.util.List getEntriesList() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1881,8 +1729,6 @@ public int getEntriesCount() { } } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1910,9 +1756,7 @@ public int getEntriesCount() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogEntry getEntries(int index) { if (entriesBuilder_ == null) { @@ -1922,8 +1766,6 @@ public com.google.logging.v2.LogEntry getEntries(int index) { } } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1951,11 +1793,10 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { + public Builder setEntries( + int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1969,8 +1810,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1998,11 +1837,10 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder setEntries( + int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -2013,8 +1851,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2042,9 +1878,7 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntries(com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { @@ -2060,8 +1894,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) { return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2089,11 +1921,10 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { + public Builder addEntries( + int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2107,8 +1938,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2136,11 +1965,10 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder addEntries( + com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); @@ -2151,8 +1979,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2180,11 +2006,10 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder addEntries( + int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -2195,8 +2020,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2224,15 +2047,14 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -2240,8 +2062,6 @@ public Builder addAllEntries( return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2269,9 +2089,7 @@ public Builder addAllEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -2284,8 +2102,6 @@ public Builder clearEntries() { return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2313,9 +2129,7 @@ public Builder clearEntries() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -2328,8 +2142,6 @@ public Builder removeEntries(int index) { return this; } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2357,16 +2169,13 @@ public Builder removeEntries(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) { + public com.google.logging.v2.LogEntry.Builder getEntriesBuilder( + int index) { return getEntriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2394,20 +2203,16 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { + public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( + int index) { if (entriesBuilder_ == null) { - return entries_.get(index); - } else { + return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2435,12 +2240,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -2448,8 +2251,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { } } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2477,17 +2278,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder() - .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance()); + return getEntriesFieldBuilder().addBuilder( + com.google.logging.v2.LogEntry.getDefaultInstance()); } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2515,17 +2312,14 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) { - return getEntriesFieldBuilder() - .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance()); + public com.google.logging.v2.LogEntry.Builder addEntriesBuilder( + int index) { + return getEntriesFieldBuilder().addBuilder( + index, com.google.logging.v2.LogEntry.getDefaultInstance()); } /** - * - * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2553,35 +2347,29 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getEntriesBuilderList() { + public java.util.List + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, - com.google.logging.v2.LogEntry.Builder, - com.google.logging.v2.LogEntryOrBuilder> + com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, - com.google.logging.v2.LogEntry.Builder, - com.google.logging.v2.LogEntryOrBuilder>( - entries_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); entries_ = null; } return entriesBuilder_; } - private boolean partialSuccess_; + private boolean partialSuccess_ ; /** - * - * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2593,7 +2381,6 @@ public java.util.List getEntriesBuilderL
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ @java.lang.Override @@ -2601,8 +2388,6 @@ public boolean getPartialSuccess() { return partialSuccess_; } /** - * - * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2614,7 +2399,6 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The partialSuccess to set. * @return This builder for chaining. */ @@ -2626,8 +2410,6 @@ public Builder setPartialSuccess(boolean value) { return this; } /** - * - * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2639,7 +2421,6 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPartialSuccess() { @@ -2649,10 +2430,8 @@ public Builder clearPartialSuccess() { return this; } - private boolean dryRun_; + private boolean dryRun_ ; /** - * - * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2660,7 +2439,6 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -2668,8 +2446,6 @@ public boolean getDryRun() { return dryRun_; } /** - * - * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2677,7 +2453,6 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The dryRun to set. * @return This builder for chaining. */ @@ -2689,8 +2464,6 @@ public Builder setDryRun(boolean value) { return this; } /** - * - * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2698,7 +2471,6 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDryRun() { @@ -2707,9 +2479,9 @@ public Builder clearDryRun() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2719,12 +2491,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesRequest) private static final com.google.logging.v2.WriteLogEntriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesRequest(); } @@ -2733,27 +2505,27 @@ public static com.google.logging.v2.WriteLogEntriesRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2768,4 +2540,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java index 16cec0e28..f7ea91fc3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface WriteLogEntriesRequestOrBuilder - extends +public interface WriteLogEntriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -47,16 +29,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * individual log entry.
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The logName. */ java.lang.String getLogName(); /** - * - * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -77,17 +54,13 @@ public interface WriteLogEntriesRequestOrBuilder
    * individual log entry.
    * 
* - * - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for logName. */ - com.google.protobuf.ByteString getLogNameBytes(); + com.google.protobuf.ByteString + getLogNameBytes(); /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -99,15 +72,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -119,15 +88,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resource. */ com.google.api.MonitoredResource getResource(); /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -139,14 +104,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -158,8 +120,6 @@ public interface WriteLogEntriesRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -169,13 +129,15 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -185,10 +147,9 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -199,13 +160,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -215,11 +174,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -247,14 +205,11 @@ java.lang.String getLabelsOrDefault(
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getEntriesList(); + java.util.List + getEntriesList(); /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -282,14 +237,10 @@ java.lang.String getLabelsOrDefault(
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogEntry getEntries(int index); /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -317,14 +268,10 @@ java.lang.String getLabelsOrDefault(
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getEntriesCount(); /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -352,14 +299,11 @@ java.lang.String getLabelsOrDefault(
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getEntriesOrBuilderList(); + java.util.List + getEntriesOrBuilderList(); /** - * - * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -387,15 +331,12 @@ java.lang.String getLabelsOrDefault(
    * list, rather than calling this method for each individual log entry.
    * 
* - * - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index); + com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( + int index); /** - * - * *
    * Optional. Whether a batch's valid entries should be written even if some
    * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -407,14 +348,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ boolean getPartialSuccess(); /** - * - * *
    * Optional. If true, the request should expect normal response, but the
    * entries won't be persisted nor exported. Useful for checking whether the
@@ -422,7 +360,6 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ boolean getDryRun(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java index d8d165bd6..97811679a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java @@ -1,68 +1,49 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.logging.v2; /** - * - * *
  * Result returned from WriteLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesResponse} */ -public final class WriteLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteLogEntriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesResponse) WriteLogEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteLogEntriesResponse.newBuilder() to construct. private WriteLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteLogEntriesResponse() {} + private WriteLogEntriesResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesResponse.class, - com.google.logging.v2.WriteLogEntriesResponse.Builder.class); + com.google.logging.v2.WriteLogEntriesResponse.class, com.google.logging.v2.WriteLogEntriesResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,7 +55,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -92,13 +74,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.WriteLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.WriteLogEntriesResponse other = - (com.google.logging.v2.WriteLogEntriesResponse) obj; + com.google.logging.v2.WriteLogEntriesResponse other = (com.google.logging.v2.WriteLogEntriesResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,132 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result returned from WriteLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesResponse) com.google.logging.v2.WriteLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesResponse.class, - com.google.logging.v2.WriteLogEntriesResponse.Builder.class); + com.google.logging.v2.WriteLogEntriesResponse.class, com.google.logging.v2.WriteLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -253,9 +230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override @@ -274,8 +251,7 @@ public com.google.logging.v2.WriteLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesResponse buildPartial() { - com.google.logging.v2.WriteLogEntriesResponse result = - new com.google.logging.v2.WriteLogEntriesResponse(this); + com.google.logging.v2.WriteLogEntriesResponse result = new com.google.logging.v2.WriteLogEntriesResponse(this); onBuilt(); return result; } @@ -284,39 +260,38 @@ public com.google.logging.v2.WriteLogEntriesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.WriteLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -351,13 +326,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -367,9 +341,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -379,12 +353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesResponse) private static final com.google.logging.v2.WriteLogEntriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesResponse(); } @@ -393,27 +367,27 @@ public static com.google.logging.v2.WriteLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -428,4 +402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000..0124b9869 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface WriteLogEntriesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java deleted file mode 100644 index 3fdec37c1..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface CopyLogEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of log entries copied.
-   * 
- * - * int64 log_entries_copied_count = 1; - * - * @return The logEntriesCopiedCount. - */ - long getLogEntriesCopiedCount(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java deleted file mode 100644 index 05ae26ccd..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface DeleteLogMetricRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the metric to delete:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-   * Required. The resource name of the metric to delete:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java deleted file mode 100644 index 16a088328..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface DeleteViewRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteViewRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the view to delete:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full resource name of the view to delete:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java deleted file mode 100644 index 3b156096e..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface GetLogMetricRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLogMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the desired metric:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-   * Required. The resource name of the desired metric:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java deleted file mode 100644 index f7ecc91dc..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface GetViewRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetViewRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the policy:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the policy:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java deleted file mode 100644 index 81a1aa246..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface LocationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.LocationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Indicates whether or not Log Analytics features are supported in the given
-   * location.
-   * 
- * - * bool log_analytics_enabled = 1; - * - * @return The logAnalyticsEnabled. - */ - boolean getLogAnalyticsEnabled(); -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java deleted file mode 100644 index 83a44cb6e..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/log_entry.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public final class LogEntryProto { - private LogEntryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntryOperation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogSplit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogSplit_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/logging/v2/log_entry.proto\022\021goo" - + "gle.logging.v2\032\037google/api/field_behavio" - + "r.proto\032#google/api/monitored_resource.p" - + "roto\032\031google/api/resource.proto\032&google/" - + "logging/type/http_request.proto\032&google/" - + "logging/type/log_severity.proto\032\031google/" - + "protobuf/any.proto\032\034google/protobuf/stru" - + "ct.proto\032\037google/protobuf/timestamp.prot" - + "o\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" - + "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" - + "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" - + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" - + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" - + "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" - + "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" - + "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" - + "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" - + "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" - + "\0132\'.google.logging.v2.LogEntry.LabelsEnt" - + "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" - + "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" - + " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" - + "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" - + " \001(\0132).google.logging.v2.LogEntrySourceL" - + "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" - + "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" - + "ging.googleapis.com/Log\022\035projects/{proje" - + "ct}/logs/{log}\022\'organizations/{organizat" - + "ion}/logs/{log}\022\033folders/{folder}/logs/{" - + "log}\022,billingAccounts/{billing_account}/" - + "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" - + "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" - + "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" - + "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" - + "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" - + "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " - + "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" - + "B\263\001\n\025com.google.logging.v2B\rLogEntryProt" - + "oP\001Z5cloud.google.com/go/logging/apiv2/l" - + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" - + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" - + "le::Cloud::Logging::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.logging.type.HttpRequestProto.getDescriptor(), - com.google.logging.type.LogSeverityProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_LogEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_LogEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntry_descriptor, - new java.lang.String[] { - "LogName", - "Resource", - "ProtoPayload", - "TextPayload", - "JsonPayload", - "Timestamp", - "ReceiveTimestamp", - "Severity", - "InsertId", - "HttpRequest", - "Labels", - "Operation", - "Trace", - "SpanId", - "TraceSampled", - "SourceLocation", - "Split", - "Payload", - }); - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor = - internal_static_google_logging_v2_LogEntry_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_logging_v2_LogEntryOperation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntryOperation_descriptor, - new java.lang.String[] { - "Id", "Producer", "First", "Last", - }); - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor, - new java.lang.String[] { - "File", "Line", "Function", - }); - internal_static_google_logging_v2_LogSplit_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_LogSplit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogSplit_descriptor, - new java.lang.String[] { - "Uid", "Index", "TotalSplits", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.logging.type.HttpRequestProto.getDescriptor(); - com.google.logging.type.LogSeverityProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java deleted file mode 100644 index c6830e95b..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,1250 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public final class LoggingConfigProto { - private LoggingConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_IndexConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_IndexConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogBucket_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogBucket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogView_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogView_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogSink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogSink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BigQueryDataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_Link_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_Link_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BigQueryOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListBucketsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListBucketsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListViewsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListViewsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateViewRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateViewRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetViewRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteViewRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListSinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListSinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetSinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateSinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateSinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteSinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogExclusion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogExclusion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListExclusionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListExclusionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetExclusionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateExclusionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CmekSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_Settings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_Settings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BucketMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LinkMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/logging/v2/logging_config.proto" - + "\022\021google.logging.v2\032\034google/api/annotati" - + "ons.proto\032\027google/api/client.proto\032\037goog" - + "le/api/field_behavior.proto\032\031google/api/" - + "resource.proto\032#google/longrunning/opera" - + "tions.proto\032\033google/protobuf/empty.proto" - + "\032 google/protobuf/field_mask.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\215\001\n\013IndexCon" - + "fig\022\027\n\nfield_path\030\001 \001(\tB\003\340A\002\022/\n\004type\030\002 \001" - + "(\0162\034.google.logging.v2.IndexTypeB\003\340A\002\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\"\325\005\n\tLogBucket\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\023\n\013description\030\003 \001(\t\0224\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\026\n\016retention_days\030\013 \001(\005\022\016\n" - + "\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014 \001(\0162!" - + ".google.logging.v2.LifecycleStateB\003\340A\003\022\031" - + "\n\021analytics_enabled\030\016 \001(\010\022\031\n\021restricted_" - + "fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003(\0132\036.go" - + "ogle.logging.v2.IndexConfig\0226\n\rcmek_sett" - + "ings\030\023 \001(\0132\037.google.logging.v2.CmekSetti" - + "ngs:\245\002\352A\241\002\n logging.googleapis.com/LogBu" - + "cket\0228projects/{project}/locations/{loca" - + "tion}/buckets/{bucket}\022Borganizations/{o" - + "rganization}/locations/{location}/bucket" - + "s/{bucket}\0226folders/{folder}/locations/{" - + "location}/buckets/{bucket}\022GbillingAccou" - + "nts/{billing_account}/locations/{locatio" - + "n}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name\030" - + "\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_tim" - + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036l" - + "ogging.googleapis.com/LogView\022Eprojects/" - + "{project}/locations/{location}/buckets/{" - + "bucket}/views/{view}\022Oorganizations/{org" - + "anization}/locations/{location}/buckets/" - + "{bucket}/views/{view}\022Cfolders/{folder}/" - + "locations/{location}/buckets/{bucket}/vi" - + "ews/{view}\022TbillingAccounts/{billing_acc" - + "ount}/locations/{location}/buckets/{buck" - + "et}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*\022" - + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001(" - + "\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclusi" - + "ons\030\020 \003(\0132\037.google.logging.v2.LogExclusi" - + "onB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162(" - + ".google.logging.v2.LogSink.VersionFormat" - + "B\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020in" - + "clude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_op" - + "tions\030\014 \001(\0132\".google.logging.v2.BigQuery" - + "OptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UN" - + "SPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036logg" - + "ing.googleapis.com/LogSink\022\037projects/{pr" - + "oject}/sinks/{sink}\022)organizations/{orga" - + "nization}/sinks/{sink}\022\035folders/{folder}" - + "/sinks/{sink}\022.billingAccounts/{billing_" - + "account}/sinks/{sink}B\t\n\007options\"*\n\017BigQ" - + "ueryDataset\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\003\"\265\004\n" - + "\004Link\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022?\n\017lifecycle_state\030\004 \001(\0162" - + "!.google.logging.v2.LifecycleStateB\003\340A\003\022" - + "<\n\020bigquery_dataset\030\005 \001(\0132\".google.loggi" - + "ng.v2.BigQueryDataset:\324\002\352A\320\002\n\033logging.go" - + "ogleapis.com/Link\022Eprojects/{project}/lo" - + "cations/{location}/buckets/{bucket}/link" - + "s/{link}\022Oorganizations/{organization}/l" - + "ocations/{location}/buckets/{bucket}/lin" - + "ks/{link}\022Cfolders/{folder}/locations/{l" - + "ocation}/buckets/{bucket}/links/{link}\022T" - + "billingAccounts/{billing_account}/locati" - + "ons/{location}/buckets/{bucket}/links/{l" - + "ink}\"g\n\017BigQueryOptions\022#\n\026use_partition" - + "ed_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp_c" - + "olumn_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBuc" - + "ketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 log" - + "ging.googleapis.com/LogBucket\022\027\n\npage_to" - + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]" - + "\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\0132\034" - + ".google.logging.v2.LogBucket\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\0228\n" - + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapi" - + "s.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\022" - + "1\n\006bucket\030\003 \001(\0132\034.google.logging.v2.LogB" - + "ucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004na" - + "me\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com" - + "/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.logg" - + "ing.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n\020G" - + "etBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" - + "ogging.googleapis.com/LogBucket\"M\n\023Delet" - + "eBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n lo" - + "gging.googleapis.com/LogBucket\"O\n\025Undele" - + "teBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" - + "ogging.googleapis.com/LogBucket\"X\n\020ListV" - + "iewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage" - + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" - + "\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032." - + "google.logging.v2.LogView\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006paren" - + "t\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004vi" - + "ew\030\003 \001(\0132\032.google.logging.v2.LogViewB\003\340A" - + "\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.Log" - + "ViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewReques" - + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googlea" - + "pis.com/LogView\"I\n\021DeleteViewRequest\0224\n\004" - + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" - + "om/LogView\"{\n\020ListSinksRequest\0226\n\006parent" - + "\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com/L" - + "ogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_" - + "size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)\n\005" - + "sinks\030\001 \003(\0132\032.google.logging.v2.LogSink\022" - + "\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReque" - + "st\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging.g" - + "oogleapis.com/LogSink\"\237\001\n\021CreateSinkRequ" - + "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.goo" - + "gleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.goog" - + "le.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_wri" - + "ter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRe" - + "quest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036loggin" - + "g.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032" - + ".google.logging.v2.LogSinkB\003\340A\002\022#\n\026uniqu" - + "e_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update_m" - + "ask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001 \001" - + "(\tB&\340A\002\372A \n\036logging.googleapis.com/LogSi" - + "nk\"\212\001\n\021CreateLinkRequest\0223\n\006parent\030\001 \001(\t" - + "B#\340A\002\372A\035\022\033logging.googleapis.com/Link\022*\n" - + "\004link\030\002 \001(\0132\027.google.logging.v2.LinkB\003\340A" - + "\002\022\024\n\007link_id\030\003 \001(\tB\003\340A\002\"F\n\021DeleteLinkReq" - + "uest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.goog" - + "leapis.com/Link\"x\n\020ListLinksRequest\0223\n\006p" - + "arent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.googleapis." - + "com/Link\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" - + "e_size\030\003 \001(\005B\003\340A\001\"T\n\021ListLinksResponse\022&" - + "\n\005links\030\001 \003(\0132\027.google.logging.v2.Link\022\027" - + "\n\017next_page_token\030\002 \001(\t\"C\n\016GetLinkReques" - + "t\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.googlea" - + "pis.com/Link\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006fi" - + "lter\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224" - + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003:\354\001\352A\350\001\n#loggi" - + "ng.googleapis.com/LogExclusion\022)projects" - + "/{project}/exclusions/{exclusion}\0223organ" - + "izations/{organization}/exclusions/{excl" - + "usion}\022\'folders/{folder}/exclusions/{exc" - + "lusion}\0228billingAccounts/{billing_accoun" - + "t}/exclusions/{exclusion}\"\205\001\n\025ListExclus" - + "ionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#log" - + "ging.googleapis.com/LogExclusion\022\027\n\npage" - + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" - + "\001\"f\n\026ListExclusionsResponse\0223\n\nexclusion" - + "s\030\001 \003(\0132\037.google.logging.v2.LogExclusion" - + "\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetExclusio" - + "nRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging." - + "googleapis.com/LogExclusion\"\216\001\n\026CreateEx" - + "clusionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" - + "logging.googleapis.com/LogExclusion\0227\n\te" - + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" - + "clusionB\003\340A\002\"\302\001\n\026UpdateExclusionRequest\022" - + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapi" - + "s.com/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037." - + "google.logging.v2.LogExclusionB\003\340A\002\0224\n\013u" - + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"S\n\026DeleteExclusionRequest\0229\n\004n" - + "ame\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.co" - + "m/LogExclusion\"S\n\026GetCmekSettingsRequest" - + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" - + "is.com/CmekSettings\"\241\001\n\031UpdateCmekSettin" - + "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_set" - + "tings\030\002 \001(\0132\037.google.logging.v2.CmekSett" - + "ingsB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\001\"\275\002\n\014CmekSettings" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(" - + "\t\022\034\n\024kms_key_version_name\030\004 \001(\t\022\037\n\022servi" - + "ce_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging" - + ".googleapis.com/CmekSettings\022\037projects/{" - + "project}/cmekSettings\022)organizations/{or" - + "ganization}/cmekSettings\022\035folders/{folde" - + "r}/cmekSettings\022.billingAccounts/{billin" - + "g_account}/cmekSettings\"K\n\022GetSettingsRe" - + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.goo" - + "gleapis.com/Settings\"\224\001\n\025UpdateSettingsR" - + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030\002 " - + "\001(\0132\033.google.logging.v2.SettingsB\003\340A\002\0224\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_se" - + "rvice_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage_l" - + "ocation\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_si" - + "nk\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleapis" - + ".com/Settings\022\033projects/{project}/settin" - + "gs\022%organizations/{organization}/setting" - + "s\022\031folders/{folder}/settings\022*billingAcc" - + "ounts/{billing_account}/settings\"Y\n\025Copy" - + "LogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006" - + "filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\tB\003" - + "\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstart_" - + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022," - + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\0220\n\005state\030\003 \001(\0162!.google.logging.v2." - + "OperationState\022\036\n\026cancellation_requested" - + "\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.logging" - + ".v2.CopyLogEntriesRequest\022\020\n\010progress\030\006 " - + "\001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLogE" - + "ntriesResponse\022 \n\030log_entries_copied_cou" - + "nt\030\001 \001(\003\"\275\002\n\016BucketMetadata\022.\n\nstart_tim" - + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" - + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "p\0220\n\005state\030\003 \001(\0162!.google.logging.v2.Ope" - + "rationState\022G\n\025create_bucket_request\030\004 \001" - + "(\0132&.google.logging.v2.CreateBucketReque" - + "stH\000\022G\n\025update_bucket_request\030\005 \001(\0132&.go" - + "ogle.logging.v2.UpdateBucketRequestH\000B\t\n" - + "\007request\"\263\002\n\014LinkMetadata\022.\n\nstart_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" - + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" - + "0\n\005state\030\003 \001(\0162!.google.logging.v2.Opera" - + "tionState\022C\n\023create_link_request\030\004 \001(\0132$" - + ".google.logging.v2.CreateLinkRequestH\000\022C" - + "\n\023delete_link_request\030\005 \001(\0132$.google.log" - + "ging.v2.DeleteLinkRequestH\000B\t\n\007request\"1" - + "\n\020LocationMetadata\022\035\n\025log_analytics_enab" - + "led\030\001 \001(\010*\364\001\n\016OperationState\022\037\n\033OPERATIO" - + "N_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION_STATE" - + "_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WAITING_" - + "FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STATE_RUN" - + "NING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDED\020\004\022\032\n" - + "\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERATION_S" - + "TATE_CANCELLED\020\006*{\n\016LifecycleState\022\037\n\033LI" - + "FECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" - + "\024\n\020DELETE_REQUESTED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010C" - + "REATING\020\004\022\n\n\006FAILED\020\005*V\n\tIndexType\022\032\n\026IN" - + "DEX_TYPE_UNSPECIFIED\020\000\022\025\n\021INDEX_TYPE_STR" - + "ING\020\001\022\026\n\022INDEX_TYPE_INTEGER\020\0022\237Y\n\017Config" - + "ServiceV2\022\334\002\n\013ListBuckets\022%.google.loggi" - + "ng.v2.ListBucketsRequest\032&.google.loggin" - + "g.v2.ListBucketsResponse\"\375\001\332A\006parent\202\323\344\223" - + "\002\355\001\022$/v2/{parent=*/*/locations/*}/bucket" - + "sZ-\022+/v2/{parent=projects/*/locations/*}" - + "/bucketsZ2\0220/v2/{parent=organizations/*/" - + "locations/*}/bucketsZ,\022*/v2/{parent=fold" - + "ers/*/locations/*}/bucketsZ4\0222/v2/{paren" - + "t=billingAccounts/*/locations/*}/buckets" - + "\022\305\002\n\tGetBucket\022#.google.logging.v2.GetBu" - + "cketRequest\032\034.google.logging.v2.LogBucke" - + "t\"\364\001\202\323\344\223\002\355\001\022$/v2/{name=*/*/locations/*/b" - + "uckets/*}Z-\022+/v2/{name=projects/*/locati" - + "ons/*/buckets/*}Z2\0220/v2/{name=organizati" - + "ons/*/locations/*/buckets/*}Z,\022*/v2/{nam" - + "e=folders/*/locations/*/buckets/*}Z4\0222/v" - + "2/{name=billingAccounts/*/locations/*/bu" - + "ckets/*}\022\323\003\n\021CreateBucketAsync\022&.google." - + "logging.v2.CreateBucketRequest\032\035.google." - + "longrunning.Operation\"\366\002\312A\033\n\tLogBucket\022\016" - + "BucketMetadata\202\323\344\223\002\321\002\"0/v2/{parent=*/*/l" - + "ocations/*}/buckets:createAsync:\006bucketZ" - + "A\"7/v2/{parent=projects/*/locations/*}/b" - + "uckets:createAsync:\006bucketZF\"/v2/{parent=billingAccounts/*/lo" - + "cations/*}/buckets:createAsync:\006bucket\022\323" - + "\003\n\021UpdateBucketAsync\022&.google.logging.v2" - + ".UpdateBucketRequest\032\035.google.longrunnin" - + "g.Operation\"\366\002\312A\033\n\tLogBucket\022\016BucketMeta" - + "data\202\323\344\223\002\321\002\"0/v2/{name=*/*/locations/*/b" - + "uckets/*}:updateAsync:\006bucketZA\"7/v2/{na" - + "me=projects/*/locations/*/buckets/*}:upd" - + "ateAsync:\006bucketZF\"/v" - + "2/{name=billingAccounts/*/locations/*/bu" - + "ckets/*}:updateAsync:\006bucket\022\363\002\n\014CreateB" - + "ucket\022&.google.logging.v2.CreateBucketRe" - + "quest\032\034.google.logging.v2.LogBucket\"\234\002\202\323" - + "\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buck" - + "ets:\006bucketZ5\"+/v2/{parent=projects/*/lo" - + "cations/*}/buckets:\006bucketZ:\"0/v2/{paren" - + "t=organizations/*/locations/*}/buckets:\006" - + "bucketZ4\"*/v2/{parent=folders/*/location" - + "s/*}/buckets:\006bucketZ<\"2/v2/{parent=bill" - + "ingAccounts/*/locations/*}/buckets:\006buck" - + "et\022\363\002\n\014UpdateBucket\022&.google.logging.v2." - + "UpdateBucketRequest\032\034.google.logging.v2." - + "LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locat" - + "ions/*/buckets/*}:\006bucketZ52+/v2/{name=p" - + "rojects/*/locations/*/buckets/*}:\006bucket" - + "Z:20/v2/{name=organizations/*/locations/" - + "*/buckets/*}:\006bucketZ42*/v2/{name=folder" - + "s/*/locations/*/buckets/*}:\006bucketZ<22/v" - + "2/{name=billingAccounts/*/locations/*/bu" - + "ckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goog" - + "le.logging.v2.DeleteBucketRequest\032\026.goog" - + "le.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*" - + "/*/locations/*/buckets/*}Z-*+/v2/{name=p" - + "rojects/*/locations/*/buckets/*}Z2*0/v2/" - + "{name=organizations/*/locations/*/bucket" - + "s/*}Z,**/v2/{name=folders/*/locations/*/" - + "buckets/*}Z4*2/v2/{name=billingAccounts/" - + "*/locations/*/buckets/*}\022\205\003\n\016UndeleteBuc" - + "ket\022(.google.logging.v2.UndeleteBucketRe" - + "quest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"" - + "-/v2/{name=*/*/locations/*/buckets/*}:un" - + "delete:\001*Z9\"4/v2/{name=projects/*/locati" - + "ons/*/buckets/*}:undelete:\001*Z>\"9/v2/{nam" - + "e=organizations/*/locations/*/buckets/*}" - + ":undelete:\001*Z8\"3/v2/{name=folders/*/loca" - + "tions/*/buckets/*}:undelete:\001*Z@\";/v2/{n" - + "ame=billingAccounts/*/locations/*/bucket" - + "s/*}:undelete:\001*\022\376\002\n\tListViews\022#.google." - + "logging.v2.ListViewsRequest\032$.google.log" - + "ging.v2.ListViewsResponse\"\245\002\332A\006parent\202\323\344" - + "\223\002\225\002\022,/v2/{parent=*/*/locations/*/bucket" - + "s/*}/viewsZ5\0223/v2/{parent=projects/*/loc" - + "ations/*/buckets/*}/viewsZ:\0228/v2/{parent" - + "=organizations/*/locations/*/buckets/*}/" - + "viewsZ4\0222/v2/{parent=folders/*/locations" - + "/*/buckets/*}/viewsZ<\022:/v2/{parent=billi" - + "ngAccounts/*/locations/*/buckets/*}/view" - + "s\022\347\002\n\007GetView\022!.google.logging.v2.GetVie" - + "wRequest\032\032.google.logging.v2.LogView\"\234\002\202" - + "\323\344\223\002\225\002\022,/v2/{name=*/*/locations/*/bucket" - + "s/*/views/*}Z5\0223/v2/{name=projects/*/loc" - + "ations/*/buckets/*/views/*}Z:\0228/v2/{name" - + "=organizations/*/locations/*/buckets/*/v" - + "iews/*}Z4\0222/v2/{name=folders/*/locations" - + "/*/buckets/*/views/*}Z<\022:/v2/{name=billi" - + "ngAccounts/*/locations/*/buckets/*/views" - + "/*}\022\213\003\n\nCreateView\022$.google.logging.v2.C" - + "reateViewRequest\032\032.google.logging.v2.Log" - + "View\"\272\002\202\323\344\223\002\263\002\",/v2/{parent=*/*/location" - + "s/*/buckets/*}/views:\004viewZ;\"3/v2/{paren" - + "t=projects/*/locations/*/buckets/*}/view" - + "s:\004viewZ@\"8/v2/{parent=organizations/*/l" - + "ocations/*/buckets/*}/views:\004viewZ:\"2/v2" - + "/{parent=folders/*/locations/*/buckets/*" - + "}/views:\004viewZB\":/v2/{parent=billingAcco" - + "unts/*/locations/*/buckets/*}/views:\004vie" - + "w\022\213\003\n\nUpdateView\022$.google.logging.v2.Upd" - + "ateViewRequest\032\032.google.logging.v2.LogVi" - + "ew\"\272\002\202\323\344\223\002\263\0022,/v2/{name=*/*/locations/*/" - + "buckets/*/views/*}:\004viewZ;23/v2/{name=pr" - + "ojects/*/locations/*/buckets/*/views/*}:" - + "\004viewZ@28/v2/{name=organizations/*/locat" - + "ions/*/buckets/*/views/*}:\004viewZ:22/v2/{" - + "name=folders/*/locations/*/buckets/*/vie" - + "ws/*}:\004viewZB2:/v2/{name=billingAccounts" - + "/*/locations/*/buckets/*/views/*}:\004view\022" - + "\351\002\n\nDeleteView\022$.google.logging.v2.Delet" - + "eViewRequest\032\026.google.protobuf.Empty\"\234\002\202" - + "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket" - + "s/*/views/*}Z5*3/v2/{name=projects/*/loc" - + "ations/*/buckets/*/views/*}Z:*8/v2/{name" - + "=organizations/*/locations/*/buckets/*/v" - + "iews/*}Z4*2/v2/{name=folders/*/locations" - + "/*/buckets/*/views/*}Z<*:/v2/{name=billi" - + "ngAccounts/*/locations/*/buckets/*/views" - + "/*}\022\220\002\n\tListSinks\022#.google.logging.v2.Li" - + "stSinksRequest\032$.google.logging.v2.ListS" - + "inksResponse\"\267\001\332A\006parent\202\323\344\223\002\247\001\022\026/v2/{pa" - + "rent=*/*}/sinksZ\037\022\035/v2/{parent=projects/" - + "*}/sinksZ$\022\"/v2/{parent=organizations/*}" - + "/sinksZ\036\022\034/v2/{parent=folders/*}/sinksZ&" - + "\022$/v2/{parent=billingAccounts/*}/sinks\022\236" - + "\002\n\007GetSink\022!.google.logging.v2.GetSinkRe" - + "quest\032\032.google.logging.v2.LogSink\"\323\001\332A\ts" - + "ink_name\202\323\344\223\002\300\001\022\033/v2/{sink_name=*/*/sink" - + "s/*}Z$\022\"/v2/{sink_name=projects/*/sinks/" - + "*}Z)\022\'/v2/{sink_name=organizations/*/sin" - + "ks/*}Z#\022!/v2/{sink_name=folders/*/sinks/" - + "*}Z+\022)/v2/{sink_name=billingAccounts/*/s" - + "inks/*}\022\253\002\n\nCreateSink\022$.google.logging." - + "v2.CreateSinkRequest\032\032.google.logging.v2" - + ".LogSink\"\332\001\332A\013parent,sink\202\323\344\223\002\305\001\"\026/v2/{p" - + "arent=*/*}/sinks:\004sinkZ%\"\035/v2/{parent=pr" - + "ojects/*}/sinks:\004sinkZ*\"\"/v2/{parent=org" - + "anizations/*}/sinks:\004sinkZ$\"\034/v2/{parent" - + "=folders/*}/sinks:\004sinkZ,\"$/v2/{parent=b" - + "illingAccounts/*}/sinks:\004sink\022\237\004\n\nUpdate" - + "Sink\022$.google.logging.v2.UpdateSinkReque" - + "st\032\032.google.logging.v2.LogSink\"\316\003\332A\032sink" - + "_name,sink,update_mask\332A\016sink_name,sink\202" - + "\323\344\223\002\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sin" - + "kZ*\032\"/v2/{sink_name=projects/*/sinks/*}:" - + "\004sinkZ/\032\'/v2/{sink_name=organizations/*/" - + "sinks/*}:\004sinkZ)\032!/v2/{sink_name=folders" - + "/*/sinks/*}:\004sinkZ1\032)/v2/{sink_name=bill" - + "ingAccounts/*/sinks/*}:\004sinkZ*2\"/v2/{sin", - "k_name=projects/*/sinks/*}:\004sinkZ/2\'/v2/" - + "{sink_name=organizations/*/sinks/*}:\004sin" - + "kZ)2!/v2/{sink_name=folders/*/sinks/*}:\004" - + "sinkZ12)/v2/{sink_name=billingAccounts/*" - + "/sinks/*}:\004sink\022\240\002\n\nDeleteSink\022$.google." - + "logging.v2.DeleteSinkRequest\032\026.google.pr" - + "otobuf.Empty\"\323\001\332A\tsink_name\202\323\344\223\002\300\001*\033/v2/" - + "{sink_name=*/*/sinks/*}Z$*\"/v2/{sink_nam" - + "e=projects/*/sinks/*}Z)*\'/v2/{sink_name=" - + "organizations/*/sinks/*}Z#*!/v2/{sink_na" - + "me=folders/*/sinks/*}Z+*)/v2/{sink_name=" - + "billingAccounts/*/sinks/*}\022\273\003\n\nCreateLin" - + "k\022$.google.logging.v2.CreateLinkRequest\032" - + "\035.google.longrunning.Operation\"\347\002\312A\024\n\004Li" - + "nk\022\014LinkMetadata\332A\023parent,link,link_id\202\323" - + "\344\223\002\263\002\",/v2/{parent=*/*/locations/*/bucke" - + "ts/*}/links:\004linkZ;\"3/v2/{parent=project" - + "s/*/locations/*/buckets/*}/links:\004linkZ@" - + "\"8/v2/{parent=organizations/*/locations/" - + "*/buckets/*}/links:\004linkZ:\"2/v2/{parent=" - + "folders/*/locations/*/buckets/*}/links:\004" - + "linkZB\":/v2/{parent=billingAccounts/*/lo" - + "cations/*/buckets/*}/links:\004link\022\237\003\n\nDel" - + "eteLink\022$.google.logging.v2.DeleteLinkRe" - + "quest\032\035.google.longrunning.Operation\"\313\002\312" - + "A%\n\025google.protobuf.Empty\022\014LinkMetadata\332" - + "A\004name\202\323\344\223\002\225\002*,/v2/{name=*/*/locations/*" - + "/buckets/*/links/*}Z5*3/v2/{name=project" - + "s/*/locations/*/buckets/*/links/*}Z:*8/v" - + "2/{name=organizations/*/locations/*/buck" - + "ets/*/links/*}Z4*2/v2/{name=folders/*/lo" - + "cations/*/buckets/*/links/*}Z<*:/v2/{nam" - + "e=billingAccounts/*/locations/*/buckets/" - + "*/links/*}\022\376\002\n\tListLinks\022#.google.loggin" - + "g.v2.ListLinksRequest\032$.google.logging.v" - + "2.ListLinksResponse\"\245\002\332A\006parent\202\323\344\223\002\225\002\022," - + "/v2/{parent=*/*/locations/*/buckets/*}/l" - + "inksZ5\0223/v2/{parent=projects/*/locations" - + "/*/buckets/*}/linksZ:\0228/v2/{parent=organ" - + "izations/*/locations/*/buckets/*}/linksZ" - + "4\0222/v2/{parent=folders/*/locations/*/buc" - + "kets/*}/linksZ<\022:/v2/{parent=billingAcco" - + "unts/*/locations/*/buckets/*}/links\022\353\002\n\007" - + "GetLink\022!.google.logging.v2.GetLinkReque" - + "st\032\027.google.logging.v2.Link\"\243\002\332A\004name\202\323\344" - + "\223\002\225\002\022,/v2/{name=*/*/locations/*/buckets/" - + "*/links/*}Z5\0223/v2/{name=projects/*/locat" - + "ions/*/buckets/*/links/*}Z:\0228/v2/{name=o" - + "rganizations/*/locations/*/buckets/*/lin" - + "ks/*}Z4\0222/v2/{name=folders/*/locations/*" - + "/buckets/*/links/*}Z<\022:/v2/{name=billing" - + "Accounts/*/locations/*/buckets/*/links/*" - + "}\022\270\002\n\016ListExclusions\022(.google.logging.v2" - + ".ListExclusionsRequest\032).google.logging." - + "v2.ListExclusionsResponse\"\320\001\332A\006parent\202\323\344" - + "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" - + "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" - + "parent=organizations/*}/exclusionsZ#\022!/v" - + "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" - + "parent=billingAccounts/*}/exclusions\022\250\002\n" - + "\014GetExclusion\022&.google.logging.v2.GetExc" - + "lusionRequest\032\037.google.logging.v2.LogExc" - + "lusion\"\316\001\332A\004name\202\323\344\223\002\300\001\022\033/v2/{name=*/*/e" - + "xclusions/*}Z$\022\"/v2/{name=projects/*/exc" - + "lusions/*}Z)\022\'/v2/{name=organizations/*/" - + "exclusions/*}Z#\022!/v2/{name=folders/*/exc" - + "lusions/*}Z+\022)/v2/{name=billingAccounts/" - + "*/exclusions/*}\022\361\002\n\017CreateExclusion\022).go" - + "ogle.logging.v2.CreateExclusionRequest\032\037" - + ".google.logging.v2.LogExclusion\"\221\002\332A\020par" - + "ent,exclusion\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/e" - + "xclusions:\texclusionZ/\"\"/v2/{parent=proj" - + "ects/*}/exclusions:\texclusionZ4\"\'/v2/{pa" - + "rent=organizations/*}/exclusions:\texclus" - + "ionZ.\"!/v2/{parent=folders/*}/exclusions" - + ":\texclusionZ6\")/v2/{parent=billingAccoun" - + "ts/*}/exclusions:\texclusion\022\373\002\n\017UpdateEx" - + "clusion\022).google.logging.v2.UpdateExclus" - + "ionRequest\032\037.google.logging.v2.LogExclus" - + "ion\"\233\002\332A\032name,exclusion,update_mask\202\323\344\223\002" - + "\367\0012\033/v2/{name=*/*/exclusions/*}:\texclusi" - + "onZ/2\"/v2/{name=projects/*/exclusions/*}" - + ":\texclusionZ42\'/v2/{name=organizations/*" - + "/exclusions/*}:\texclusionZ.2!/v2/{name=f" - + "olders/*/exclusions/*}:\texclusionZ62)/v2" - + "/{name=billingAccounts/*/exclusions/*}:\t" - + "exclusion\022\245\002\n\017DeleteExclusion\022).google.l" - + "ogging.v2.DeleteExclusionRequest\032\026.googl" - + "e.protobuf.Empty\"\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{" - + "name=*/*/exclusions/*}Z$*\"/v2/{name=proj" - + "ects/*/exclusions/*}Z)*\'/v2/{name=organi" - + "zations/*/exclusions/*}Z#*!/v2/{name=fol" - + "ders/*/exclusions/*}Z+*)/v2/{name=billin" - + "gAccounts/*/exclusions/*}\022\247\002\n\017GetCmekSet" - + "tings\022).google.logging.v2.GetCmekSetting" - + "sRequest\032\037.google.logging.v2.CmekSetting" - + "s\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*}/cmekSettings" - + "Z$\022\"/v2/{name=projects/*}/cmekSettingsZ)" - + "\022\'/v2/{name=organizations/*}/cmekSetting" - + "sZ#\022!/v2/{name=folders/*}/cmekSettingsZ+" - + "\022)/v2/{name=billingAccounts/*}/cmekSetti" - + "ngs\022\321\001\n\022UpdateCmekSettings\022,.google.logg" - + "ing.v2.UpdateCmekSettingsRequest\032\037.googl" - + "e.logging.v2.CmekSettings\"l\202\323\344\223\002f2\033/v2/{" - + "name=*/*}/cmekSettings:\rcmek_settingsZ82" - + "\'/v2/{name=organizations/*}/cmekSettings" - + ":\rcmek_settings\022\216\002\n\013GetSettings\022%.google" - + ".logging.v2.GetSettingsRequest\032\033.google." - + "logging.v2.Settings\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v" - + "2/{name=*/*}/settingsZ \022\036/v2/{name=proje" - + "cts/*}/settingsZ%\022#/v2/{name=organizatio" - + "ns/*}/settingsZ\037\022\035/v2/{name=folders/*}/s" - + "ettingsZ\'\022%/v2/{name=billingAccounts/*}/" - + "settings\022\366\001\n\016UpdateSettings\022(.google.log" - + "ging.v2.UpdateSettingsRequest\032\033.google.l" - + "ogging.v2.Settings\"\234\001\332A\024settings,update_" - + "mask\202\323\344\223\002\1772\027/v2/{name=*/*}/settings:\010set" - + "tingsZ/2#/v2/{name=organizations/*}/sett" - + "ings:\010settingsZ)2\035/v2/{name=folders/*}/s" - + "ettings:\010settings\022\251\001\n\016CopyLogEntries\022(.g" - + "oogle.logging.v2.CopyLogEntriesRequest\032\035" - + ".google.longrunning.Operation\"N\312A0\n\026Copy" - + "LogEntriesResponse\022\026CopyLogEntriesMetada" - + "ta\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\032\337\001\312A\026loggi" - + "ng.googleapis.com\322A\302\001https://www.googlea" - + "pis.com/auth/cloud-platform,https://www." - + "googleapis.com/auth/cloud-platform.read-" - + "only,https://www.googleapis.com/auth/log" - + "ging.admin,https://www.googleapis.com/au" - + "th/logging.readB\326\003\n\025com.google.logging.v" - + "2B\022LoggingConfigProtoP\001Z5cloud.google.co" - + "m/go/logging/apiv2/loggingpb;loggingpb\370\001" - + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" - + "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::" - + "V2\352A`\n+logging.googleapis.com/Organizati" - + "onLocation\0221organizations/{organization}" - + "/locations/{location}\352AN\n%logging.google" - + "apis.com/FolderLocation\022%folders/{folder" - + "}/locations/{location}\352Ag\n-logging.googl" - + "eapis.com/BillingAccountLocation\0226billin" - + "gAccounts/{billing_account}/locations/{l" - + "ocation}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_IndexConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_IndexConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_IndexConfig_descriptor, - new java.lang.String[] { - "FieldPath", "Type", "CreateTime", - }); - internal_static_google_logging_v2_LogBucket_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_LogBucket_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogBucket_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "UpdateTime", - "RetentionDays", - "Locked", - "LifecycleState", - "AnalyticsEnabled", - "RestrictedFields", - "IndexConfigs", - "CmekSettings", - }); - internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_LogView_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogView_descriptor, - new java.lang.String[] { - "Name", "Description", "CreateTime", "UpdateTime", "Filter", - }); - internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_LogSink_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogSink_descriptor, - new java.lang.String[] { - "Name", - "Destination", - "Filter", - "Description", - "Disabled", - "Exclusions", - "OutputVersionFormat", - "WriterIdentity", - "IncludeChildren", - "BigqueryOptions", - "CreateTime", - "UpdateTime", - "Options", - }); - internal_static_google_logging_v2_BigQueryDataset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BigQueryDataset_descriptor, - new java.lang.String[] { - "DatasetId", - }); - internal_static_google_logging_v2_Link_descriptor = getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_Link_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_Link_descriptor, - new java.lang.String[] { - "Name", "Description", "CreateTime", "LifecycleState", "BigqueryDataset", - }); - internal_static_google_logging_v2_BigQueryOptions_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BigQueryOptions_descriptor, - new java.lang.String[] { - "UsePartitionedTables", "UsesTimestampColumnPartitioning", - }); - internal_static_google_logging_v2_ListBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListBucketsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListBucketsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListBucketsResponse_descriptor, - new java.lang.String[] { - "Buckets", "NextPageToken", - }); - internal_static_google_logging_v2_CreateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateBucketRequest_descriptor, - new java.lang.String[] { - "Parent", "BucketId", "Bucket", - }); - internal_static_google_logging_v2_UpdateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateBucketRequest_descriptor, - new java.lang.String[] { - "Name", "Bucket", "UpdateMask", - }); - internal_static_google_logging_v2_GetBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetBucketRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_DeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteBucketRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_ListViewsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListViewsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListViewsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListViewsResponse_descriptor, - new java.lang.String[] { - "Views", "NextPageToken", - }); - internal_static_google_logging_v2_CreateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateViewRequest_descriptor, - new java.lang.String[] { - "Parent", "ViewId", "View", - }); - internal_static_google_logging_v2_UpdateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateViewRequest_descriptor, - new java.lang.String[] { - "Name", "View", "UpdateMask", - }); - internal_static_google_logging_v2_GetViewRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetViewRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_DeleteViewRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteViewRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_ListSinksRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListSinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListSinksResponse_descriptor, - new java.lang.String[] { - "Sinks", "NextPageToken", - }); - internal_static_google_logging_v2_GetSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetSinkRequest_descriptor, - new java.lang.String[] { - "SinkName", - }); - internal_static_google_logging_v2_CreateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateSinkRequest_descriptor, - new java.lang.String[] { - "Parent", "Sink", "UniqueWriterIdentity", - }); - internal_static_google_logging_v2_UpdateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateSinkRequest_descriptor, - new java.lang.String[] { - "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask", - }); - internal_static_google_logging_v2_DeleteSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteSinkRequest_descriptor, - new java.lang.String[] { - "SinkName", - }); - internal_static_google_logging_v2_CreateLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "Link", "LinkId", - }); - internal_static_google_logging_v2_DeleteLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_ListLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLinksResponse_descriptor, - new java.lang.String[] { - "Links", "NextPageToken", - }); - internal_static_google_logging_v2_GetLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_LogExclusion_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_logging_v2_LogExclusion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogExclusion_descriptor, - new java.lang.String[] { - "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime", - }); - internal_static_google_logging_v2_ListExclusionsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListExclusionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListExclusionsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListExclusionsResponse_descriptor, - new java.lang.String[] { - "Exclusions", "NextPageToken", - }); - internal_static_google_logging_v2_GetExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetExclusionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_CreateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateExclusionRequest_descriptor, - new java.lang.String[] { - "Parent", "Exclusion", - }); - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor, - new java.lang.String[] { - "Name", "Exclusion", "UpdateMask", - }); - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor, - new java.lang.String[] { - "Name", "CmekSettings", "UpdateMask", - }); - internal_static_google_logging_v2_CmekSettings_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_logging_v2_CmekSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CmekSettings_descriptor, - new java.lang.String[] { - "Name", "KmsKeyName", "KmsKeyVersionName", "ServiceAccountId", - }); - internal_static_google_logging_v2_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor, - new java.lang.String[] { - "Name", "Settings", "UpdateMask", - }); - internal_static_google_logging_v2_Settings_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_logging_v2_Settings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_Settings_descriptor, - new java.lang.String[] { - "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink", - }); - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "Destination", - }); - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor, - new java.lang.String[] { - "StartTime", - "EndTime", - "State", - "CancellationRequested", - "Request", - "Progress", - "WriterIdentity", - }); - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor, - new java.lang.String[] { - "LogEntriesCopiedCount", - }); - internal_static_google_logging_v2_BucketMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BucketMetadata_descriptor, - new java.lang.String[] { - "StartTime", - "EndTime", - "State", - "CreateBucketRequest", - "UpdateBucketRequest", - "Request", - }); - internal_static_google_logging_v2_LinkMetadata_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LinkMetadata_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "State", "CreateLinkRequest", "DeleteLinkRequest", "Request", - }); - internal_static_google_logging_v2_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LocationMetadata_descriptor, - new java.lang.String[] { - "LogAnalyticsEnabled", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java deleted file mode 100644 index 4ca9ca633..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public final class LoggingMetricsProto { - private LoggingMetricsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogMetric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetLogMetricRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/logging/v2/logging_metrics.prot" - + "o\022\021google.logging.v2\032\034google/api/annotat" - + "ions.proto\032\027google/api/client.proto\032\035goo" - + "gle/api/distribution.proto\032\037google/api/f" - + "ield_behavior.proto\032\027google/api/metric.p" - + "roto\032\031google/api/resource.proto\032\033google/" - + "protobuf/empty.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\275\005\n\tLogMetric\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" - + "er\030\003 \001(\tB\003\340A\002\022\030\n\013bucket_name\030\r \001(\tB\003\340A\001\022" - + "\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021metric_descrip" - + "tor\030\005 \001(\0132\034.google.api.MetricDescriptorB" - + "\003\340A\001\022\034\n\017value_extractor\030\006 \001(\tB\003\340A\001\022P\n\020la" - + "bel_extractors\030\007 \003(\01321.google.logging.v2" - + ".LogMetric.LabelExtractorsEntryB\003\340A\001\022C\n\016" - + "bucket_options\030\010 \001(\0132&.google.api.Distri" - + "bution.BucketOptionsB\003\340A\001\0224\n\013create_time" - + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\n \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022<\n\007version\030\004 \001(\0162\'.google." - + "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L" - + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020" - + "\001:J\352AG\n logging.googleapis.com/LogMetric" - + "\022#projects/{project}/metrics/{metric}\"\215\001" - + "\n\025ListLogMetricsRequest\022C\n\006parent\030\001 \001(\tB" - + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" - + ".com/Project\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n" - + "\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026ListLogMetricsR" - + "esponse\022-\n\007metrics\030\001 \003(\0132\034.google.loggin" - + "g.v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\"" - + "T\n\023GetLogMetricRequest\022=\n\013metric_name\030\001 " - + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" - + "etric\"\205\001\n\026CreateLogMetricRequest\0228\n\006pare" - + "nt\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapis.com" - + "/LogMetric\0221\n\006metric\030\002 \001(\0132\034.google.logg" - + "ing.v2.LogMetricB\003\340A\002\"\212\001\n\026UpdateLogMetri" - + "cRequest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n l" - + "ogging.googleapis.com/LogMetric\0221\n\006metri" - + "c\030\002 \001(\0132\034.google.logging.v2.LogMetricB\003\340" - + "A\002\"W\n\026DeleteLogMetricRequest\022=\n\013metric_n" - + "ame\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.co" - + "m/LogMetric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis" - + "tLogMetrics\022(.google.logging.v2.ListLogM" - + "etricsRequest\032).google.logging.v2.ListLo" - + "gMetricsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v2/{" - + "parent=projects/*}/metrics\022\222\001\n\014GetLogMet" - + "ric\022&.google.logging.v2.GetLogMetricRequ" - + "est\032\034.google.logging.v2.LogMetric\"<\332A\013me" - + "tric_name\202\323\344\223\002(\022&/v2/{metric_name=projec" - + "ts/*/metrics/*}\022\233\001\n\017CreateLogMetric\022).go" - + "ogle.logging.v2.CreateLogMetricRequest\032\034" - + ".google.logging.v2.LogMetric\"?\332A\rparent," - + "metric\202\323\344\223\002)\"\037/v2/{parent=projects/*}/me" - + "trics:\006metric\022\247\001\n\017UpdateLogMetric\022).goog" - + "le.logging.v2.UpdateLogMetricRequest\032\034.g" - + "oogle.logging.v2.LogMetric\"K\332A\022metric_na" - + "me,metric\202\323\344\223\0020\032&/v2/{metric_name=projec" - + "ts/*/metrics/*}:\006metric\022\222\001\n\017DeleteLogMet" - + "ric\022).google.logging.v2.DeleteLogMetricR" - + "equest\032\026.google.protobuf.Empty\"<\332A\013metri" - + "c_name\202\323\344\223\002(*&/v2/{metric_name=projects/" - + "*/metrics/*}\032\215\002\312A\026logging.googleapis.com" - + "\322A\360\001https://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/cloud-platform.read-only,https://www." - + "googleapis.com/auth/logging.admin,https:" - + "//www.googleapis.com/auth/logging.read,h" - + "ttps://www.googleapis.com/auth/logging.w" - + "riteB\271\001\n\025com.google.logging.v2B\023LoggingM" - + "etricsProtoP\001Z5cloud.google.com/go/loggi" - + "ng/apiv2/loggingpb;loggingpb\370\001\001\252\002\027Google" - + ".Cloud.Logging.V2\312\002\027Google\\Cloud\\Logging" - + "\\V2\352\002\032Google::Cloud::Logging::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.DistributionProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_LogMetric_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_LogMetric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogMetric_descriptor, - new java.lang.String[] { - "Name", - "Description", - "Filter", - "BucketName", - "Disabled", - "MetricDescriptor", - "ValueExtractor", - "LabelExtractors", - "BucketOptions", - "CreateTime", - "UpdateTime", - "Version", - }); - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor = - internal_static_google_logging_v2_LogMetric_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor, - new java.lang.String[] { - "Metrics", "NextPageToken", - }); - internal_static_google_logging_v2_GetLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetLogMetricRequest_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor, - new java.lang.String[] { - "Parent", "Metric", - }); - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor, - new java.lang.String[] { - "MetricName", "Metric", - }); - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor, - new java.lang.String[] { - "MetricName", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.DistributionProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java deleted file mode 100644 index 664adac40..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public final class LoggingProto { - private LoggingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteLogRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\037google/logging/v2/logging.proto\022\021googl" - + "e.logging.v2\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032#google/api/monitor" - + "ed_resource.proto\032\031google/api/resource.p" - + "roto\032!google/logging/v2/log_entry.proto\032" - + "\036google/protobuf/duration.proto\032\033google/" - + "protobuf/empty.proto\032\027google/rpc/status." - + "proto\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " - + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" - + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" - + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" - + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" - + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." - + "logging.v2.WriteLogEntriesRequest.Labels" - + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" - + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" - + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" - + "EntriesPartialErrors\022]\n\020log_entry_errors" - + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" - + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" - + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" - + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" - + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" - + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" - + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" - + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" - + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" - + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" - + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" - + "redResourceDescriptorsRequest\022\026\n\tpage_si" - + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" - + "\001\n(ListMonitoredResourceDescriptorsRespo" - + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" - + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" - + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" - + "pis.com/Log\022:\n\016resource_names\030\010 \003(\tB\"\340A\001" - + "\372A\034\022\032logging.googleapis.com/Log\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" - + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" - + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" - + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" - + "\033.google.logging.v2.LogEntry\022S\n\020suppress" - + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" - + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" - + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" - + "ogging.v2.TailLogEntriesResponse.Suppres" - + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" - + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" - + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\351\r\n\020Loggin" - + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" - + "g.v2.DeleteLogRequest\032\026.google.protobuf." - + "Empty\"\310\001\332A\010log_name\202\323\344\223\002\266\001* /v2/{log_nam" - + "e=projects/*/logs/*}Z\033*\031/v2/{log_name=*/" - + "*/logs/*}Z\'*%/v2/{log_name=organizations" - + "/*/logs/*}Z!*\037/v2/{log_name=folders/*/lo" - + "gs/*}Z)*\'/v2/{log_name=billingAccounts/*" - + "/logs/*}\022\251\001\n\017WriteLogEntries\022).google.lo" - + "gging.v2.WriteLogEntriesRequest\032*.google" - + ".logging.v2.WriteLogEntriesResponse\"?\332A " - + "log_name,resource,labels,entries\202\323\344\223\002\026\"\021" - + "/v2/entries:write:\001*\022\243\001\n\016ListLogEntries\022" - + "(.google.logging.v2.ListLogEntriesReques" - + "t\032).google.logging.v2.ListLogEntriesResp" - + "onse\"<\332A\036resource_names,filter,order_by\202" - + "\323\344\223\002\025\"\020/v2/entries:list:\001*\022\305\001\n ListMonit" - + "oredResourceDescriptors\022:.google.logging" - + ".v2.ListMonitoredResourceDescriptorsRequ" - + "est\032;.google.logging.v2.ListMonitoredRes" - + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" - + "nitoredResourceDescriptors\022\213\004\n\010ListLogs\022" - + "\".google.logging.v2.ListLogsRequest\032#.go" - + "ogle.logging.v2.ListLogsResponse\"\265\003\332A\006pa" - + "rent\202\323\344\223\002\245\003\022\025/v2/{parent=*/*}/logsZ\036\022\034/v" - + "2/{parent=projects/*}/logsZ#\022!/v2/{paren" - + "t=organizations/*}/logsZ\035\022\033/v2/{parent=f" - + "olders/*}/logsZ%\022#/v2/{parent=billingAcc" - + "ounts/*}/logsZ<\022:/v2/{parent=projects/*/" - + "locations/*/buckets/*/views/*}/logsZA\022?/" - + "v2/{parent=organizations/*/locations/*/b" - + "uckets/*/views/*}/logsZ;\0229/v2/{parent=fo" - + "lders/*/locations/*/buckets/*/views/*}/l" - + "ogsZC\022A/v2/{parent=billingAccounts/*/loc" - + "ations/*/buckets/*/views/*}/logs\022\206\001\n\016Tai" - + "lLogEntries\022(.google.logging.v2.TailLogE" - + "ntriesRequest\032).google.logging.v2.TailLo" - + "gEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:ta" - + "il:\001*(\0010\001\032\215\002\312A\026logging.googleapis.com\322A\360" - + "\001https://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "cloud-platform.read-only,https://www.goo" - + "gleapis.com/auth/logging.admin,https://w" - + "ww.googleapis.com/auth/logging.read,http" - + "s://www.googleapis.com/auth/logging.writ" - + "eB\262\001\n\025com.google.logging.v2B\014LoggingProt" - + "oP\001Z5cloud.google.com/go/logging/apiv2/l" - + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" - + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" - + "le::Cloud::Logging::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.logging.v2.LogEntryProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_logging_v2_DeleteLogRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLogRequest_descriptor, - new java.lang.String[] { - "LogName", - }); - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor, - new java.lang.String[] { - "LogName", "Resource", "Labels", "Entries", "PartialSuccess", "DryRun", - }); - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor = - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor, - new java.lang.String[] { - "LogEntryErrors", - }); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor = - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor - .getNestedTypes() - .get(0); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor, - new java.lang.String[] { - "ResourceNames", "Filter", "OrderBy", "PageSize", "PageToken", - }); - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor, - new java.lang.String[] { - "Entries", "NextPageToken", - }); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor, - new java.lang.String[] { - "PageSize", "PageToken", - }); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor, - new java.lang.String[] { - "ResourceDescriptors", "NextPageToken", - }); - internal_static_google_logging_v2_ListLogsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogsRequest_descriptor, - new java.lang.String[] { - "Parent", "ResourceNames", "PageSize", "PageToken", - }); - internal_static_google_logging_v2_ListLogsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogsResponse_descriptor, - new java.lang.String[] { - "LogNames", "NextPageToken", - }); - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor, - new java.lang.String[] { - "ResourceNames", "Filter", "BufferWindow", - }); - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor, - new java.lang.String[] { - "Entries", "SuppressionInfo", - }); - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor = - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor, - new java.lang.String[] { - "Reason", "SuppressedCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.logging.v2.LogEntryProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java deleted file mode 100644 index 21ec111c0..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -// Protobuf Java Version: 3.25.2 -package com.google.logging.v2; - -public interface WriteLogEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesResponse) - com.google.protobuf.MessageOrBuilder {}