diff --git a/gcloud-java-logging/.classpath b/gcloud-java-logging/.classpath new file mode 100644 index 000000000000..19d2611e3109 --- /dev/null +++ b/gcloud-java-logging/.classpath @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gcloud-java-logging/src/main/java/com/google/cloud/logging/spi/v2/testing/LocalLoggingImpl.java b/gcloud-java-logging/src/main/java/com/google/cloud/logging/spi/v2/testing/LocalLoggingImpl.java index 142c48b248e0..81e09944f935 100644 --- a/gcloud-java-logging/src/main/java/com/google/cloud/logging/spi/v2/testing/LocalLoggingImpl.java +++ b/gcloud-java-logging/src/main/java/com/google/cloud/logging/spi/v2/testing/LocalLoggingImpl.java @@ -21,8 +21,6 @@ import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; import com.google.logging.v2.LogEntry; import com.google.logging.v2.LoggingServiceV2Grpc; -import com.google.logging.v2.ReadLogEntriesRequest; -import com.google.logging.v2.ReadLogEntriesResponse; import com.google.logging.v2.WriteLogEntriesRequest; import com.google.logging.v2.WriteLogEntriesResponse; import com.google.protobuf.ByteString; @@ -77,22 +75,6 @@ public void listLogEntries( responseObserver.onCompleted(); } - @Override - public void readLogEntries( - ReadLogEntriesRequest request, StreamObserver responseObserver) { - List entries = new ArrayList<>(); - for (ByteString proj : request.getProjectIdsList().asByteStringList()) { - String prefix = "projects/" + proj.toStringUtf8() + "/"; - for (Map.Entry> entry : logs.entrySet()) { - if (entry.getKey().startsWith(prefix)) { - entries.addAll(entry.getValue()); - } - } - } - responseObserver.onNext(ReadLogEntriesResponse.newBuilder().addAllEntries(entries).build()); - responseObserver.onCompleted(); - } - @Override public void listMonitoredResourceDescriptors( ListMonitoredResourceDescriptorsRequest request,