Sample usage: - * - *
- * static HttpRequest buildPostRequest(
- * HttpRequestFactory requestFactory, GenericUrl url, MessageLite message) throws IOException {
- * return requestFactory.buildPostRequest(url, new ProtoHttpContent(message));
- * }
- *
- *
- * Implementation is not thread-safe.
- *
- * @since 1.5
- * @author Yaniv Inbar
- */
-@Beta
-public class ProtoHttpContent extends AbstractHttpContent {
-
- /** Message to serialize. */
- private final MessageLite message;
-
- /** @param message message to serialize */
- public ProtoHttpContent(MessageLite message) {
- super(ProtocolBuffers.CONTENT_TYPE);
- this.message = Preconditions.checkNotNull(message);
- }
-
- @Override
- public long getLength() throws IOException {
- return message.getSerializedSize();
- }
-
- public void writeTo(OutputStream out) throws IOException {
- message.writeTo(out);
- out.flush();
- }
-
- /** Returns the message to serialize. */
- public final MessageLite getMessage() {
- return message;
- }
-
- @Override
- public ProtoHttpContent setMediaType(HttpMediaType mediaType) {
- return (ProtoHttpContent) super.setMediaType(mediaType);
- }
-}
diff --git a/google-http-client-protobuf/src/main/java/com/google/api/client/http/protobuf/package-info.java b/google-http-client-protobuf/src/main/java/com/google/api/client/http/protobuf/package-info.java
deleted file mode 100644
index b786dba70..000000000
--- a/google-http-client-protobuf/src/main/java/com/google/api/client/http/protobuf/package-info.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2011 Google Inc.
- *
- * 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
- *
- * http://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.
- */
-
-/**
- * {@link com.google.api.client.util.Beta}
- * HTTP utilities for the Protocol Buffer
- * format based on the pluggable HTTP library.
- *
- * @since 1.5
- * @author Yaniv Inbar
- */
-@com.google.api.client.util.Beta
-package com.google.api.client.http.protobuf;
diff --git a/google-http-client-protobuf/src/main/java/com/google/api/client/protobuf/ProtoObjectParser.java b/google-http-client-protobuf/src/main/java/com/google/api/client/protobuf/ProtoObjectParser.java
deleted file mode 100644
index 60ed3f46a..000000000
--- a/google-http-client-protobuf/src/main/java/com/google/api/client/protobuf/ProtoObjectParser.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2012 Google Inc.
- *
- * 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
- *
- * http://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.api.client.protobuf;
-
-import com.google.api.client.util.Beta;
-import com.google.api.client.util.ObjectParser;
-import com.google.protobuf.MessageLite;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.Reader;
-import java.lang.reflect.Type;
-import java.nio.charset.Charset;
-
-/**
- * {@link Beta}
- * Parses protocol buffer HTTP response content into a protocol buffer message.
- *
- *
Implementation is immutable and therefore thread-safe. - * - *
Data-classes are expected to extend {@link MessageLite}. - * - *
All Charset parameters are ignored for protocol buffers.
- *
- * @author Matthias Linder (mlinder)
- * @since 1.10
- */
-@Beta
-public class ProtoObjectParser implements ObjectParser {
-
- @SuppressWarnings("unchecked")
- public There is no official media type for protocol buffers registered with the IANA. {@link
- * #CONTENT_TYPE} and {@link #ALT_CONTENT_TYPE} are some of the more popular choices being used
- * today, but other media types are also in use.
- *
- * @since 1.5
- * @author Yaniv Inbar
- */
-@Beta
-public class ProtocolBuffers {
-
- /** {@code "application/x-protobuf"} content type. */
- public static final String CONTENT_TYPE = "application/x-protobuf";
-
- /** {@code "application/x-protobuffer"} content type. */
- public static final String ALT_CONTENT_TYPE = "application/x-protobuffer";
-
- /**
- * Parses protocol buffer content from an input stream (closing the input stream) into a protocol
- * buffer message.
- *
- * @param
- * Utilities for protocol buffers.
- *
- *
- * Utilities for the Protocol Buffer
- * format.
- *
- * @since 1.5
- * @author Yaniv Inbar
- */
-@com.google.api.client.util.Beta
-package com.google.api.client.protobuf;
diff --git a/google-http-client-protobuf/src/test/java/com/google/api/client/protobuf/ProtocolBuffersTest.java b/google-http-client-protobuf/src/test/java/com/google/api/client/protobuf/ProtocolBuffersTest.java
deleted file mode 100644
index 94d7d1391..000000000
--- a/google-http-client-protobuf/src/test/java/com/google/api/client/protobuf/ProtocolBuffersTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2011 Google Inc.
- *
- * 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
- *
- * http://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.api.client.protobuf;
-
-import java.io.ByteArrayInputStream;
-import junit.framework.TestCase;
-
-/**
- * Tests {@link ProtocolBuffers}.
- *
- * @author Yaniv Inbar
- */
-public class ProtocolBuffersTest extends TestCase {
-
- public void testParseAndClose() throws Exception {
- SimpleProto.TestMessage mockResponse =
- SimpleProto.TestMessage.newBuilder()
- .setStatus(SimpleProto.TestStatus.SUCCESS)
- .setName("This is a test!")
- .setValue(123454321)
- .build();
- // Create the parser and test it with our mock response
- SimpleProto.TestMessage parsedResponse =
- ProtocolBuffers.parseAndClose(
- new ByteArrayInputStream(mockResponse.toByteArray()), SimpleProto.TestMessage.class);
- // Validate the parser properly parsed the response
- // (i.e. it matches the original mock response)
- assertEquals(mockResponse.getSerializedSize(), parsedResponse.getSerializedSize());
- assertEquals(mockResponse.getStatus(), parsedResponse.getStatus());
- assertEquals(mockResponse.getName(), parsedResponse.getName());
- assertEquals(mockResponse.getValue(), parsedResponse.getValue());
- }
-}
diff --git a/google-http-client-protobuf/src/test/proto/simple_proto.proto b/google-http-client-protobuf/src/test/proto/simple_proto.proto
deleted file mode 100644
index f4fe3bbe7..000000000
--- a/google-http-client-protobuf/src/test/proto/simple_proto.proto
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2011 Google Inc.
- *
- * 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
- *
- * http://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.
- */
-
-syntax = "proto2";
-option optimize_for = LITE_RUNTIME;
-option java_package = "com.google.api.client.protobuf";
-
-message TestMessage {
- required TestStatus status = 1;
- required string name = 2;
- required int64 value = 3;
-}
-
-enum TestStatus {
- SUCCESS = 1;
- FAILURE = 2;
-}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1cd3e58f7..bbe4e226e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,6 @@