webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | List of all members
com.google.protobuf.UnknownFieldSet Class Reference
Inheritance diagram for com.google.protobuf.UnknownFieldSet:
com.google.protobuf.MessageLite com.google.protobuf.MessageLiteOrBuilder

Classes

class  Builder
 
class  Field
 
class  Parser
 

Public Member Functions

UnknownFieldSet getDefaultInstanceForType ()
 
boolean equals (final Object other)
 
int hashCode ()
 
Map< Integer, Field > asMap ()
 
boolean hasField (final int number)
 
Field getField (final int number)
 
void writeTo (final CodedOutputStream output) throws IOException
 
String toString ()
 
ByteString toByteString ()
 
byte [] toByteArray ()
 
void writeTo (final OutputStream output) throws IOException
 
void writeDelimitedTo (OutputStream output) throws IOException
 
int getSerializedSize ()
 
void writeAsMessageSetTo (final CodedOutputStream output) throws IOException
 
int getSerializedSizeAsMessageSet ()
 
boolean isInitialized ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
final Parser getParserForType ()
 

Static Public Member Functions

static Builder newBuilder ()
 
static Builder newBuilder (final UnknownFieldSet copyFrom)
 
static UnknownFieldSet getDefaultInstance ()
 
static UnknownFieldSet parseFrom (final CodedInputStream input) throws IOException
 
static UnknownFieldSet parseFrom (final ByteString data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (final byte[] data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (final InputStream input) throws IOException
 

Detailed Description

UnknownFieldSet

is used to keep track of fields which were seen when parsing a protocol message but whose field numbers or types are unrecognized. This most frequently occurs when new fields are added to a message type and then messages containing those fields are read by old software that was compiled before the new types were added.

Every Message contains an

UnknownFieldSet

(and every Message.Builder contains an Builder).

Most users will never need to use this class.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Member Function Documentation

◆ asMap()

Map<Integer, Field> com.google.protobuf.UnknownFieldSet.asMap ( )
inline

Get a map of fields in the set by number.

◆ equals()

boolean com.google.protobuf.UnknownFieldSet.equals ( final Object  other)
inline

◆ getDefaultInstance()

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.getDefaultInstance ( )
inlinestatic

Get an empty

UnknownFieldSet

.

◆ getDefaultInstanceForType()

UnknownFieldSet com.google.protobuf.UnknownFieldSet.getDefaultInstanceForType ( )
inline

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the

method of generated message classes in that this method is an abstract method of the

MessageLite

interface whereas

is a static method of a specific class. They return the same thing.

Implements com.google.protobuf.MessageLiteOrBuilder.

◆ getField()

Field com.google.protobuf.UnknownFieldSet.getField ( final int  number)
inline

Get a field by number. Returns an empty field if not present. Never returns

null

.

◆ getParserForType()

final Parser com.google.protobuf.UnknownFieldSet.getParserForType ( )
inline

Gets the parser for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

◆ getSerializedSize()

int com.google.protobuf.UnknownFieldSet.getSerializedSize ( )
inline

Get the number of bytes required to encode this set.

Implements com.google.protobuf.MessageLite.

◆ getSerializedSizeAsMessageSet()

int com.google.protobuf.UnknownFieldSet.getSerializedSizeAsMessageSet ( )
inline

Get the number of bytes required to encode this set using

MessageSet

wire format.

◆ hasField()

boolean com.google.protobuf.UnknownFieldSet.hasField ( final int  number)
inline

Check if the given field number is present in the set.

◆ hashCode()

int com.google.protobuf.UnknownFieldSet.hashCode ( void  )
inline

◆ isInitialized()

boolean com.google.protobuf.UnknownFieldSet.isInitialized ( )
inline

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Implements com.google.protobuf.MessageLiteOrBuilder.

◆ newBuilder() [1/2]

static Builder com.google.protobuf.UnknownFieldSet.newBuilder ( )
inlinestatic

Create a new Builder.

◆ newBuilder() [2/2]

static Builder com.google.protobuf.UnknownFieldSet.newBuilder ( final UnknownFieldSet  copyFrom)
inlinestatic

Create a new Builder and initialize it to be a copy of

copyFrom

.

◆ newBuilderForType()

Builder com.google.protobuf.UnknownFieldSet.newBuilderForType ( )
inline

Constructs a new builder for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

◆ parseFrom() [1/4]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final CodedInputStream  input) throws IOException
inlinestatic

Parse an

UnknownFieldSet

from the given input stream.

◆ parseFrom() [2/4]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final ByteString  data) throws InvalidProtocolBufferException
inlinestatic

Parse

as an

UnknownFieldSet

and return it.

◆ parseFrom() [3/4]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final byte []  data) throws InvalidProtocolBufferException
inlinestatic

Parse

as an

UnknownFieldSet

and return it.

◆ parseFrom() [4/4]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final InputStream  input) throws IOException
inlinestatic

Parse an

UnknownFieldSet

from

and return it.

◆ toBuilder()

Builder com.google.protobuf.UnknownFieldSet.toBuilder ( )
inline

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Implements com.google.protobuf.MessageLite.

◆ toByteArray()

byte [] com.google.protobuf.UnknownFieldSet.toByteArray ( )
inline

Serializes the message to a

byte

array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

◆ toByteString()

ByteString com.google.protobuf.UnknownFieldSet.toByteString ( )
inline

Serializes the message to a

ByteString

and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

◆ toString()

String com.google.protobuf.UnknownFieldSet.toString ( )
inline

Converts the set to a string in protocol buffer text format. This is just a trivial wrapper around TextFormat#printToString(UnknownFieldSet).

◆ writeAsMessageSetTo()

void com.google.protobuf.UnknownFieldSet.writeAsMessageSetTo ( final CodedOutputStream  output) throws IOException
inline

Serializes the set and writes it to

using

MessageSet

wire format.

◆ writeDelimitedTo()

void com.google.protobuf.UnknownFieldSet.writeDelimitedTo ( OutputStream  output) throws IOException
inline

Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use Builder#mergeDelimitedFrom(InputStream) (or the static method

YourMessageType.parseDelimitedFrom(InputStream)

) to parse messages written by this method.

Implements com.google.protobuf.MessageLite.

◆ writeTo() [1/2]

void com.google.protobuf.UnknownFieldSet.writeTo ( final CodedOutputStream  output) throws IOException
inline

Serializes the set and writes it to

.

Implements com.google.protobuf.MessageLite.

◆ writeTo() [2/2]

void com.google.protobuf.UnknownFieldSet.writeTo ( final OutputStream  output) throws IOException
inline

Serializes the message and writes it to

. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.


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