Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
com.google.protobuf.DiscardUnknownFieldsTest Class Reference

Public Member Functions

void testProto2 () throws Exception
 
void testProto3 () throws Exception
 

Static Private Member Functions

static void assertReuseCodedInputStreamPreserve (Message message) throws Exception
 
static void assertUnknownFieldsExplicitlyDiscarded (Message message) throws Exception
 
static void assertUnknownFieldsInUnknownFieldSetArePreserve (Message message) throws Exception
 
static void assertUnknownFieldsPreserved (MessageLite message) throws Exception
 
static void testProto2Message (Message message) throws Exception
 
static void testProto3Message (Message message) throws Exception
 

Static Private Attributes

static final ByteString payload
 

Detailed Description

Unit tests for discard or preserve unknown fields.

Definition at line 43 of file DiscardUnknownFieldsTest.java.

Member Function Documentation

◆ assertReuseCodedInputStreamPreserve()

static void com.google.protobuf.DiscardUnknownFieldsTest.assertReuseCodedInputStreamPreserve ( Message  message) throws Exception
inlinestaticprivate

Definition at line 76 of file DiscardUnknownFieldsTest.java.

◆ assertUnknownFieldsExplicitlyDiscarded()

static void com.google.protobuf.DiscardUnknownFieldsTest.assertUnknownFieldsExplicitlyDiscarded ( Message  message) throws Exception
inlinestaticprivate

Definition at line 113 of file DiscardUnknownFieldsTest.java.

◆ assertUnknownFieldsInUnknownFieldSetArePreserve()

static void com.google.protobuf.DiscardUnknownFieldsTest.assertUnknownFieldsInUnknownFieldSetArePreserve ( Message  message) throws Exception
inlinestaticprivate

◆ assertUnknownFieldsPreserved()

static void com.google.protobuf.DiscardUnknownFieldsTest.assertUnknownFieldsPreserved ( MessageLite  message) throws Exception
inlinestaticprivate

Definition at line 105 of file DiscardUnknownFieldsTest.java.

◆ testProto2()

void com.google.protobuf.DiscardUnknownFieldsTest.testProto2 ( ) throws Exception
inline

Definition at line 45 of file DiscardUnknownFieldsTest.java.

◆ testProto2Message()

static void com.google.protobuf.DiscardUnknownFieldsTest.testProto2Message ( Message  message) throws Exception
inlinestaticprivate

Definition at line 62 of file DiscardUnknownFieldsTest.java.

◆ testProto3()

void com.google.protobuf.DiscardUnknownFieldsTest.testProto3 ( ) throws Exception
inline

Definition at line 56 of file DiscardUnknownFieldsTest.java.

◆ testProto3Message()

static void com.google.protobuf.DiscardUnknownFieldsTest.testProto3Message ( Message  message) throws Exception
inlinestaticprivate

Definition at line 69 of file DiscardUnknownFieldsTest.java.

Member Data Documentation

◆ payload

final ByteString com.google.protobuf.DiscardUnknownFieldsTest.payload
staticprivate
Initial value:
=
TestUtilLite.getAllLiteSetBuilder().build().toByteString()

Definition at line 118 of file DiscardUnknownFieldsTest.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07