public static final class UnittestLite.TestDeprecatedLite extends com.google.protobuf.GeneratedMessageLite implements UnittestLite.TestDeprecatedLiteOrBuilder
protobuf_unittest.TestDeprecatedLite
Test that deprecated fields work. We only verify that they compile (at one point this failed).
Modifier and Type | Class and Description |
---|---|
static class |
UnittestLite.TestDeprecatedLite.Builder
Protobuf type
protobuf_unittest.TestDeprecatedLite |
com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>
Modifier and Type | Field and Description |
---|---|
static int |
DEPRECATED_FIELD_FIELD_NUMBER |
static com.google.protobuf.Parser<UnittestLite.TestDeprecatedLite> |
PARSER |
Modifier and Type | Method and Description |
---|---|
static UnittestLite.TestDeprecatedLite |
getDefaultInstance() |
UnittestLite.TestDeprecatedLite |
getDefaultInstanceForType() |
int |
getDeprecatedField()
Deprecated.
|
com.google.protobuf.Parser<UnittestLite.TestDeprecatedLite> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasDeprecatedField()
Deprecated.
|
boolean |
isInitialized() |
static UnittestLite.TestDeprecatedLite.Builder |
newBuilder() |
static UnittestLite.TestDeprecatedLite.Builder |
newBuilder(UnittestLite.TestDeprecatedLite prototype) |
UnittestLite.TestDeprecatedLite.Builder |
newBuilderForType() |
static UnittestLite.TestDeprecatedLite |
parseDelimitedFrom(java.io.InputStream input) |
static UnittestLite.TestDeprecatedLite |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestLite.TestDeprecatedLite |
parseFrom(byte[] data) |
static UnittestLite.TestDeprecatedLite |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestLite.TestDeprecatedLite |
parseFrom(com.google.protobuf.ByteString data) |
static UnittestLite.TestDeprecatedLite |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestLite.TestDeprecatedLite |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UnittestLite.TestDeprecatedLite |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestLite.TestDeprecatedLite |
parseFrom(java.io.InputStream input) |
static UnittestLite.TestDeprecatedLite |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UnittestLite.TestDeprecatedLite.Builder |
toBuilder() |
protected java.lang.Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
makeExtensionsImmutable, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseUnknownField
public static com.google.protobuf.Parser<UnittestLite.TestDeprecatedLite> PARSER
public static final int DEPRECATED_FIELD_FIELD_NUMBER
public static UnittestLite.TestDeprecatedLite getDefaultInstance()
public UnittestLite.TestDeprecatedLite getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
public com.google.protobuf.Parser<UnittestLite.TestDeprecatedLite> getParserForType()
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageLite
@Deprecated public boolean hasDeprecatedField()
optional int32 deprecated_field = 1 [deprecated = true];
hasDeprecatedField
in interface UnittestLite.TestDeprecatedLiteOrBuilder
@Deprecated public int getDeprecatedField()
optional int32 deprecated_field = 1 [deprecated = true];
getDeprecatedField
in interface UnittestLite.TestDeprecatedLiteOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessageLite
java.io.ObjectStreamException
public static UnittestLite.TestDeprecatedLite parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestLite.TestDeprecatedLite parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestLite.TestDeprecatedLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestLite.TestDeprecatedLite parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestLite.TestDeprecatedLite parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestLite.TestDeprecatedLite.Builder newBuilder()
public UnittestLite.TestDeprecatedLite.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.MessageLite
public static UnittestLite.TestDeprecatedLite.Builder newBuilder(UnittestLite.TestDeprecatedLite prototype)
public UnittestLite.TestDeprecatedLite.Builder toBuilder()
toBuilder
in interface com.google.protobuf.MessageLite