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
+ implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
- 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>(this, METHODID_LIST_BUCKETS)))
- .addMethod(
- getGetBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>(
- this, METHODID_GET_BUCKET)))
- .addMethod(
- getCreateBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket>(
- this, METHODID_CREATE_BUCKET)))
- .addMethod(
- getUpdateBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket>(
- this, METHODID_UPDATE_BUCKET)))
- .addMethod(
- getDeleteBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_BUCKET)))
- .addMethod(
- getUndeleteBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty>(
- this, METHODID_UNDELETE_BUCKET)))
- .addMethod(
- getListViewsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListViewsRequest,
- com.google.logging.v2.ListViewsResponse>(this, METHODID_LIST_VIEWS)))
- .addMethod(
- getGetViewMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView>(
- this, METHODID_GET_VIEW)))
- .addMethod(
- getCreateViewMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView>(
- this, METHODID_CREATE_VIEW)))
- .addMethod(
- getUpdateViewMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView>(
- this, METHODID_UPDATE_VIEW)))
- .addMethod(
- getDeleteViewMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_VIEW)))
- .addMethod(
- getListSinksMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListSinksRequest,
- com.google.logging.v2.ListSinksResponse>(this, METHODID_LIST_SINKS)))
- .addMethod(
- getGetSinkMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink>(
- this, METHODID_GET_SINK)))
- .addMethod(
- getCreateSinkMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink>(
- this, METHODID_CREATE_SINK)))
- .addMethod(
- getUpdateSinkMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink>(
- this, METHODID_UPDATE_SINK)))
- .addMethod(
- getDeleteSinkMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_SINK)))
- .addMethod(
- getListExclusionsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListExclusionsRequest,
- com.google.logging.v2.ListExclusionsResponse>(
- this, METHODID_LIST_EXCLUSIONS)))
- .addMethod(
- getGetExclusionMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetExclusionRequest,
- com.google.logging.v2.LogExclusion>(this, METHODID_GET_EXCLUSION)))
- .addMethod(
- getCreateExclusionMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CreateExclusionRequest,
- com.google.logging.v2.LogExclusion>(this, METHODID_CREATE_EXCLUSION)))
- .addMethod(
- getUpdateExclusionMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateExclusionRequest,
- com.google.logging.v2.LogExclusion>(this, METHODID_UPDATE_EXCLUSION)))
- .addMethod(
- getDeleteExclusionMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_EXCLUSION)))
- .addMethod(
- getGetCmekSettingsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetCmekSettingsRequest,
- com.google.logging.v2.CmekSettings>(this, METHODID_GET_CMEK_SETTINGS)))
- .addMethod(
- getUpdateCmekSettingsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateCmekSettingsRequest,
- com.google.logging.v2.CmekSettings>(this, METHODID_UPDATE_CMEK_SETTINGS)))
- .addMethod(
- getGetSettingsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings>(
- this, METHODID_GET_SETTINGS)))
- .addMethod(
- getUpdateSettingsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings>(
- this, METHODID_UPDATE_SETTINGS)))
- .addMethod(
- getCopyLogEntriesMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CopyLogEntriesRequest,
- com.google.longrunning.Operation>(this, METHODID_COPY_LOG_ENTRIES)))
- .build();
+ 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.
@@ -2213,7 +2066,7 @@ public void copyLogEntries(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service ConfigServiceV2.
*
*
* Service for configuring sinks used to route log entries.
@@ -2633,7 +2486,7 @@ 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.
@@ -3092,10 +2945,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final ConfigServiceV2ImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(ConfigServiceV2ImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -3254,6 +3107,168 @@ 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)))
+ .addMethod(
+ getGetBucketMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>(
+ service, METHODID_GET_BUCKET)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .addMethod(
+ 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)))
+ .build();
+ }
+
private abstract static class ConfigServiceV2BaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
index dd74ab68c..3f3d4baae 100644
--- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
+++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
@@ -348,7 +348,7 @@ public LoggingServiceV2FutureStub newStub(
* Service for ingesting and querying logs.
*
*/
- public abstract static class LoggingServiceV2ImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -360,7 +360,7 @@ public abstract static class LoggingServiceV2ImplBase implements io.grpc.Bindabl
* delete operation with a timestamp before the operation will be deleted.
*
*/
- public void deleteLog(
+ default void deleteLog(
com.google.logging.v2.DeleteLogRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMethod(), responseObserver);
@@ -379,7 +379,7 @@ public void deleteLog(
* folders)
*
*/
- public void writeLogEntries(
+ default void writeLogEntries(
com.google.logging.v2.WriteLogEntriesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -397,7 +397,7 @@ public void writeLogEntries(
* Logs](https://cloud.google.com/logging/docs/export).
*
*/
- public void listLogEntries(
+ default void listLogEntries(
com.google.logging.v2.ListLogEntriesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -412,7 +412,7 @@ public void listLogEntries(
* Lists the descriptors for monitored resource types used by Logging.
*
*/
- public void listMonitoredResourceDescriptors(
+ default void listMonitoredResourceDescriptors(
com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -428,7 +428,7 @@ public void listMonitoredResourceDescriptors(
* Only logs that have entries are listed.
*
*/
- public void listLogs(
+ default void listLogs(
com.google.logging.v2.ListLogsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogsMethod(), responseObserver);
@@ -442,62 +442,32 @@ public void listLogs(
* terminated, it will continue reading logs.
*
*/
- public io.grpc.stub.StreamObserver tailLogEntries(
+ default io.grpc.stub.StreamObserver tailLogEntries(
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
+ implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getDeleteLogMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_LOG)))
- .addMethod(
- getWriteLogEntriesMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.WriteLogEntriesRequest,
- com.google.logging.v2.WriteLogEntriesResponse>(
- this, METHODID_WRITE_LOG_ENTRIES)))
- .addMethod(
- getListLogEntriesMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListLogEntriesRequest,
- com.google.logging.v2.ListLogEntriesResponse>(
- this, METHODID_LIST_LOG_ENTRIES)))
- .addMethod(
- getListMonitoredResourceDescriptorsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListMonitoredResourceDescriptorsRequest,
- com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>(
- this, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS)))
- .addMethod(
- getListLogsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListLogsRequest,
- com.google.logging.v2.ListLogsResponse>(this, METHODID_LIST_LOGS)))
- .addMethod(
- getTailLogEntriesMethod(),
- io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
- new MethodHandlers<
- com.google.logging.v2.TailLogEntriesRequest,
- com.google.logging.v2.TailLogEntriesResponse>(
- this, METHODID_TAIL_LOG_ENTRIES)))
- .build();
+ return LoggingServiceV2Grpc.bindService(this);
}
}
/**
- *
+ * A stub to allow clients to do asynchronous rpc calls to service LoggingServiceV2.
*
*
* Service for ingesting and querying logs.
@@ -623,7 +593,7 @@ public io.grpc.stub.StreamObserver
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service LoggingServiceV2.
*
*
* Service for ingesting and querying logs.
@@ -721,7 +691,7 @@ 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.
@@ -836,10 +806,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final LoggingServiceV2ImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(LoggingServiceV2ImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -899,6 +869,51 @@ 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)))
+ .addMethod(
+ 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)))
+ .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)))
+ .addMethod(
+ 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)))
+ .build();
+ }
+
private abstract static class LoggingServiceV2BaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
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
index d6b9a75ca..771318fbb 100644
--- 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
@@ -292,7 +292,7 @@ public MetricsServiceV2FutureStub newStub(
* Service for configuring logs-based metrics.
*
*/
- public abstract static class MetricsServiceV2ImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -301,7 +301,7 @@ public abstract static class MetricsServiceV2ImplBase implements io.grpc.Bindabl
* Lists logs-based metrics.
*
*/
- public void listLogMetrics(
+ default void listLogMetrics(
com.google.logging.v2.ListLogMetricsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -316,7 +316,7 @@ public void listLogMetrics(
* Gets a logs-based metric.
*
*/
- public void getLogMetric(
+ default void getLogMetric(
com.google.logging.v2.GetLogMetricRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
@@ -330,7 +330,7 @@ public void getLogMetric(
* Creates a logs-based metric.
*
*/
- public void createLogMetric(
+ default void createLogMetric(
com.google.logging.v2.CreateLogMetricRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
@@ -344,7 +344,7 @@ public void createLogMetric(
* Creates or updates a logs-based metric.
*
*/
- public void updateLogMetric(
+ default void updateLogMetric(
com.google.logging.v2.UpdateLogMetricRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
@@ -358,53 +358,32 @@ public void updateLogMetric(
* Deletes a logs-based metric.
*
*/
- public void deleteLogMetric(
+ 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 io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getListLogMetricsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.ListLogMetricsRequest,
- com.google.logging.v2.ListLogMetricsResponse>(
- this, METHODID_LIST_LOG_METRICS)))
- .addMethod(
- getGetLogMetricMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric>(
- this, METHODID_GET_LOG_METRIC)))
- .addMethod(
- getCreateLogMetricMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.CreateLogMetricRequest,
- com.google.logging.v2.LogMetric>(this, METHODID_CREATE_LOG_METRIC)))
- .addMethod(
- getUpdateLogMetricMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.UpdateLogMetricRequest,
- com.google.logging.v2.LogMetric>(this, METHODID_UPDATE_LOG_METRIC)))
- .addMethod(
- getDeleteLogMetricMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_LOG_METRIC)))
- .build();
+ return MetricsServiceV2Grpc.bindService(this);
}
}
/**
- *
+ * A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2.
*
*
* Service for configuring logs-based metrics.
@@ -504,7 +483,7 @@ public void deleteLogMetric(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service MetricsServiceV2.
*
*
* Service for configuring logs-based metrics.
@@ -589,7 +568,7 @@ public com.google.protobuf.Empty deleteLogMetric(
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricsServiceV2.
*
*
* Service for configuring logs-based metrics.
@@ -685,10 +664,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final MetricsServiceV2ImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(MetricsServiceV2ImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -739,6 +718,42 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ 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 {
diff --git a/pom.xml b/pom.xml
index d67ff91da..11695509a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-logging-parent
pom
- 3.14.7
+ 3.14.8
Google Cloud Logging Parent
https://github.com/googleapis/java-logging
@@ -61,23 +61,23 @@
com.google.api.grpc
proto-google-cloud-logging-v2
- 0.103.7
+ 0.103.8
com.google.api.grpc
grpc-google-cloud-logging-v2
- 0.103.7
+ 0.103.8
com.google.cloud
google-cloud-logging
- 3.14.7
+ 3.14.8
com.google.cloud
google-cloud-shared-dependencies
- 3.6.0
+ 3.7.0
pom
import
diff --git a/proto-google-cloud-logging-v2/pom.xml b/proto-google-cloud-logging-v2/pom.xml
index 53f7df675..06dbb2cb2 100644
--- a/proto-google-cloud-logging-v2/pom.xml
+++ b/proto-google-cloud-logging-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-logging-v2
- 0.103.7
+ 0.103.8
proto-google-cloud-logging-v2
PROTO library for proto-google-cloud-logging-v2
com.google.cloud
google-cloud-logging-parent
- 3.14.7
+ 3.14.8
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index b51dac3a2..8174cbf62 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-logging
- 3.14.6
+ 3.14.7
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index d50ec8738..0746c0c08 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-logging
- 3.14.7
+ 3.14.8
diff --git a/versions.txt b/versions.txt
index 27de76c43..3df781c0e 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-logging:3.14.7:3.14.7
-grpc-google-cloud-logging-v2:0.103.7:0.103.7
-proto-google-cloud-logging-v2:0.103.7:0.103.7
+google-cloud-logging:3.14.8:3.14.8
+grpc-google-cloud-logging-v2:0.103.8:0.103.8
+proto-google-cloud-logging-v2:0.103.8:0.103.8