summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 14:04:14 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 14:04:14 -0800
commite834f9dbe7a360a72336daeb243015e082e67dd9 (patch)
tree8cc167a495ef9e348ba84f56188fe583564604e5 /src
parente61379af83d28b36d9085ac181b01e4852fcd171 (diff)
downloadexternal_protobuf-e834f9dbe7a360a72336daeb243015e082e67dd9.zip
external_protobuf-e834f9dbe7a360a72336daeb243015e082e67dd9.tar.gz
external_protobuf-e834f9dbe7a360a72336daeb243015e082e67dd9.tar.bz2
auto import from //depot/cupcake/@132589
Diffstat (limited to 'src')
-rw-r--r--src/com/google/common/io/protocol/ProtoBuf.java42
1 files changed, 4 insertions, 38 deletions
diff --git a/src/com/google/common/io/protocol/ProtoBuf.java b/src/com/google/common/io/protocol/ProtoBuf.java
index ff7a324..8ebd1b9 100644
--- a/src/com/google/common/io/protocol/ProtoBuf.java
+++ b/src/com/google/common/io/protocol/ProtoBuf.java
@@ -145,28 +145,6 @@ public class ProtoBuf {
}
/**
- * Adds a new protobuf for the specified tag, setting the child protobuf's
- * type correctly for the tag.
- * @param tag the tag for which to create a new protobuf
- * @return the newly created protobuf
- */
- public ProtoBuf addNewProtoBuf(int tag) {
- ProtoBuf child = newProtoBufForTag(tag);
- addProtoBuf(tag, child);
- return child;
- }
-
- /**
- * Creates and returns a new protobuf for the specified tag, setting the new
- * protobuf's type correctly for the tag.
- * @param tag the tag for which to create a new protobuf
- * @return the newly created protobuf
- */
- public ProtoBuf newProtoBufForTag(int tag) {
- return new ProtoBuf((ProtoBufType) msgType.getData(tag));
- }
-
- /**
* Appends the given (repeated) tag with the given String value.
*/
public void addString(int tag, String value){
@@ -203,7 +181,7 @@ public class ProtoBuf {
return (byte[]) getObject(tag, index, ProtoBufType.TYPE_DATA);
}
- /**
+ /**
* Returns the integer value for the given tag.
*/
public int getInt(int tag) {
@@ -218,7 +196,7 @@ public class ProtoBuf {
ProtoBufType.TYPE_INT32)).longValue();
}
- /**
+ /**
* Returns the long value for the given tag.
*/
public long getLong(int tag) {
@@ -260,7 +238,7 @@ public class ProtoBuf {
return Double.longBitsToDouble(getLong(tag, index));
}
- /**
+ /**
* Returns the group or nested message for the given tag.
*/
public ProtoBuf getProtoBuf(int tag) {
@@ -291,7 +269,7 @@ public class ProtoBuf {
return (String) getObject(tag, index, ProtoBufType.TYPE_TEXT);
}
- /**
+ /**
* Returns the type definition of this protocol buffer or group -- if set.
*/
public ProtoBufType getType() {
@@ -751,18 +729,6 @@ public class ProtoBuf {
setObject(tag, pb);
}
- /**
- * Sets a new protobuf for the specified tag, setting the child protobuf's
- * type correctly for the tag.
- * @param tag the tag for which to create a new protobuf
- * @return the newly created protobuf
- */
- public ProtoBuf setNewProtoBuf(int tag) {
- ProtoBuf child = newProtoBufForTag(tag);
- setProtoBuf(tag, child);
- return child;
- }
-
/**
* Sets the given tag to the given String value.
*/