Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
com.google.protobuf.UnknownFieldSet.Builder Class Reference
Inheritance diagram for com.google.protobuf.UnknownFieldSet.Builder:
Inheritance graph
[legend]

Public Member Functions

Builder addField (final int number, final Field field)
 
Builder addField (int number, Field field)
 
Map< Integer, FieldasMap ()
 
Map< Integer, FieldasMap ()
 
UnknownFieldSet build ()
 
UnknownFieldSet build ()
 
UnknownFieldSet buildPartial ()
 
UnknownFieldSet buildPartial ()
 
Builder clear ()
 
Builder clear ()
 
Builder clearField (final int number)
 
Builder clearField (int number)
 
Builder clone ()
 
Builder clone ()
 
UnknownFieldSet getDefaultInstanceForType ()
 
UnknownFieldSet getDefaultInstanceForType ()
 
boolean hasField (final int number)
 
boolean hasField (int number)
 
boolean isInitialized ()
 
boolean isInitialized ()
 
boolean mergeDelimitedFrom (InputStream input) throws IOException
 
boolean mergeDelimitedFrom (InputStream input) throws IOException
 
boolean mergeDelimitedFrom (InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
boolean mergeDelimitedFrom (InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
Builder mergeField (final int number, final Field field)
 
Builder mergeField (int number, final Field field)
 
boolean mergeFieldFrom (final int tag, final CodedInputStream input) throws IOException
 
boolean mergeFieldFrom (int tag, CodedInputStream input) throws IOException
 
Builder mergeFrom (byte[] data) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, int off, int len) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, int off, int len) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (ByteString data) throws InvalidProtocolBufferException
 
Builder mergeFrom (ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
 
Builder mergeFrom (CodedInputStream input) throws IOException
 
Builder mergeFrom (CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
Builder mergeFrom (CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
Builder mergeFrom (final byte[] data) throws InvalidProtocolBufferException
 
Builder mergeFrom (final ByteString data) throws InvalidProtocolBufferException
 
Builder mergeFrom (final CodedInputStream input) throws IOException
 
Builder mergeFrom (final InputStream input) throws IOException
 
Builder mergeFrom (final UnknownFieldSet other)
 
Builder mergeFrom (InputStream input) throws IOException
 
Builder mergeFrom (InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
Builder mergeFrom (InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
Builder mergeFrom (MessageLite m)
 
Builder mergeFrom (MessageLite m)
 
Builder mergeFrom (UnknownFieldSet other)
 
Builder mergeLengthDelimitedField (final int number, final ByteString value)
 
Builder mergeLengthDelimitedField (int number, ByteString value)
 
Builder mergeVarintField (final int number, final int value)
 
Builder mergeVarintField (int number, int value)
 

Private Member Functions

 Builder ()
 
 Builder ()
 
Field.Builder getFieldBuilder (final int number)
 
Field.Builder getFieldBuilder (int number)
 
void reinitialize ()
 

Static Private Member Functions

static Builder create ()
 
static Builder create ()
 

Private Attributes

TreeMap< Integer, Field.BuilderfieldBuilders = new TreeMap<>()
 
Map< Integer, Fieldfields
 
Field.Builder lastField
 
int lastFieldNumber
 

Detailed Description

Builder for UnknownFieldSets.

Note that this class maintains Field.Builders for all fields in the set. Thus, adding one element to an existing Field does not require making a copy. This is important for efficient parsing of unknown repeated fields. However, it implies that {}s cannot be constructed independently, nor can two UnknownFieldSet}s share the same Field object. Use UnknownFieldSet#newBuilder() to construct a

.

Definition at line 308 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

Constructor & Destructor Documentation

◆ Builder() [1/2]

com.google.protobuf.UnknownFieldSet.Builder.Builder ( )
inlineprivate

◆ Builder() [2/2]

com.google.protobuf.UnknownFieldSet.Builder.Builder ( )
inlineprivate

Member Function Documentation

◆ addField() [1/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.addField ( final int  number,
final Field  field 
)
inline

Add a field to the

. If a field with the same number already exists, it is removed.

Definition at line 491 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ addField() [2/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.addField ( int  number,
Field  field 
)
inline

Add a field to the

. If a field with the same number already exists, it is removed.

Exceptions
IllegalArgumentExceptionif number is not positive

Definition at line 466 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ asMap() [1/2]

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

Get all present

s as an immutable

. If more fields are added, the changes may or may not be reflected in this map.

Definition at line 478 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ asMap() [2/2]

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

Get all present

s as an immutable

. If more fields are added, the changes may or may not be reflected in this map.

Definition at line 511 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ build() [1/2]

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

◆ build() [2/2]

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

Build the UnknownFieldSet and return it.

Once

has been called, the

will no longer be usable. Calling any method after

will result in undefined behavior and can cause a

NullPointerException

to be thrown.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 358 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ buildPartial() [1/2]

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

Like build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 349 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ buildPartial() [2/2]

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

Like build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 374 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ clear() [1/2]

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

Reset the builder to an empty set.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 372 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ clear() [2/2]

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

◆ clearField() [1/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.clearField ( final int  number)
inline

Clear fields from the set with a given field number.

Definition at line 407 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ clearField() [2/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.clearField ( int  number)
inline

Clear fields from the set with a given field number.

Exceptions
IllegalArgumentExceptionif number is not positive

Definition at line 382 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ clone() [1/2]

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

◆ clone() [2/2]

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

◆ create() [1/2]

static Builder com.google.protobuf.UnknownFieldSet.Builder.create ( )
inlinestaticprivate

◆ create() [2/2]

static Builder com.google.protobuf.UnknownFieldSet.Builder.create ( )
inlinestaticprivate

◆ getDefaultInstanceForType() [1/2]

UnknownFieldSet com.google.protobuf.UnknownFieldSet.Builder.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

interface whereas

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

Implements com.google.protobuf.MessageLiteOrBuilder.

Definition at line 366 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getDefaultInstanceForType() [2/2]

UnknownFieldSet com.google.protobuf.UnknownFieldSet.Builder.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

interface whereas

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

Implements com.google.protobuf.MessageLiteOrBuilder.

Definition at line 389 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getFieldBuilder() [1/2]

Field.Builder com.google.protobuf.UnknownFieldSet.Builder.getFieldBuilder ( final int  number)
inlineprivate

Get a field builder for the given field number which includes any values that already exist.

Definition at line 329 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getFieldBuilder() [2/2]

Field.Builder com.google.protobuf.UnknownFieldSet.Builder.getFieldBuilder ( int  number)
inlineprivate

Get a field builder for the given field number which includes any values that already exist.

Definition at line 317 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ hasField() [1/2]

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

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

Definition at line 480 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ hasField() [2/2]

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

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

Definition at line 456 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ isInitialized() [1/2]

boolean com.google.protobuf.UnknownFieldSet.Builder.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.

Definition at line 660 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ isInitialized() [2/2]

boolean com.google.protobuf.UnknownFieldSet.Builder.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.

Definition at line 690 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeDelimitedFrom() [1/4]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeDelimitedFrom ( InputStream  input) throws IOException
inline

◆ mergeDelimitedFrom() [2/4]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeDelimitedFrom ( InputStream  input) throws IOException
inline

◆ mergeDelimitedFrom() [3/4]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeDelimitedFrom ( InputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

◆ mergeDelimitedFrom() [4/4]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeDelimitedFrom ( InputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

◆ mergeField() [1/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeField ( final int  number,
final Field  field 
)
inline

Add a field to the

. If a field with the same number already exists, the two are merged.

Definition at line 439 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeField() [2/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeField ( int  number,
final Field  field 
)
inline

Add a field to the

. If a field with the same number already exists, the two are merged.

Exceptions
IllegalArgumentExceptionif number is not positive

Definition at line 411 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFieldFrom() [1/2]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeFieldFrom ( final int  tag,
final CodedInputStream  input 
) throws IOException
inline

Parse a single field from

and merge it into this set.

Parameters
tagThe field's tag number, which was already parsed.
Returns
false
if the tag is an end group tag.

Definition at line 534 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFieldFrom() [2/2]

boolean com.google.protobuf.UnknownFieldSet.Builder.mergeFieldFrom ( int  tag,
CodedInputStream  input 
) throws IOException
inline

Parse a single field from

and merge it into this set.

Parameters
tagThe field's tag number, which was already parsed.
Returns
false
if the tag is an end group tag.

Definition at line 504 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [1/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data) throws InvalidProtocolBufferException
inline

Parse

as an

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 555 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [2/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 630 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [3/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 660 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [4/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
int  off,
int  len 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 615 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [5/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
int  off,
int  len 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 645 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [6/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
int  off,
int  len,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 637 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [7/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( byte[]  data,
int  off,
int  len,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 667 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [8/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( ByteString  data) throws InvalidProtocolBufferException
inline

Parse

as an

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 536 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [9/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( ByteString  data,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 608 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [10/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( ByteString  data,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inline

Parse

as a message of this type and merge it with the message being built. This is just a small wrapper around mergeFrom(CodedInputStream,ExtensionRegistryLite).

Returns
this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 638 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [11/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( CodedInputStream  input) throws IOException
inline

Parse an entire message from

and merge its fields into this set.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 488 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [12/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( CodedInputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in

extensionRegistry

. Extensions not in the registry will be treated as unknown fields.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 601 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [13/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( CodedInputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in

extensionRegistry

. Extensions not in the registry will be treated as unknown fields.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 631 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [14/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( final byte[]  data) throws InvalidProtocolBufferException
inline

Parse

as an

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 585 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [15/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( final ByteString  data) throws InvalidProtocolBufferException
inline

Parse

as an

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 566 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [16/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( final CodedInputStream  input) throws IOException
inline

Parse an entire message from

and merge its fields into this set.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 518 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [17/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( final InputStream  input) throws IOException
inline

Parse an

from

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 604 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [18/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( final UnknownFieldSet  other)
inline

Merge the fields from

other

into this set. If a field number exists in both sets,

other

's values for that field will be appended to the values in this set.

Definition at line 426 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [19/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( InputStream  input) throws IOException
inline

Parse an

from

and merge it with the set being built. This is just a small wrapper around mergeFrom(CodedInputStream).

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 574 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [20/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( InputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Parse a message of this type from

and merge it with the message being built. This is just a small wrapper around {}. this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 644 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [21/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( InputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Parse a message of this type from

and merge it with the message being built. This is just a small wrapper around {}. this

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 674 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [22/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( MessageLite  other)
inline

Merge

other

into the message being built.

other

must have the exact same type as

this

(i.e.

getClass().equals(getDefaultInstanceForType().getClass())

).

Merging occurs as follows. For each field:

  • For singular primitive fields, if the field is set in
    other
    , then
    other
    's value overwrites the value in this message.
  • For singular message fields, if the field is set in
    other
    , it is merged into the corresponding sub-message of this message using the same merging rules.
  • For repeated fields, the elements in
    other
    are concatenated with the elements in this message. * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

This is equivalent to the

method in C++.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 651 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [23/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( MessageLite  other)
inline

Merge

other

into the message being built.

other

must have the exact same type as

this

(i.e.

getClass().equals(getDefaultInstanceForType().getClass())

).

Merging occurs as follows. For each field:

  • For singular primitive fields, if the field is set in
    other
    , then
    other
    's value overwrites the value in this message.
  • For singular message fields, if the field is set in
    other
    , it is merged into the corresponding sub-message of this message using the same merging rules.
  • For repeated fields, the elements in
    other
    are concatenated with the elements in this message. * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

This is equivalent to the

method in C++.

Implements com.google.protobuf.MessageLite.Builder.

Definition at line 681 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeFrom() [24/24]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeFrom ( UnknownFieldSet  other)
inline

Merge the fields from

other

into this set. If a field number exists in both sets,

other

's values for that field will be appended to the values in this set.

Definition at line 396 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeLengthDelimitedField() [1/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeLengthDelimitedField ( final int  number,
final ByteString  value 
)
inline

Convenience method for merging a length-delimited field.

For use by generated code only.

Definition at line 471 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeLengthDelimitedField() [2/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeLengthDelimitedField ( int  number,
ByteString  value 
)
inline

Convenience method for merging a length-delimited field.

For use by generated code only.

Exceptions
IllegalArgumentExceptionif number is not positive

Definition at line 447 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeVarintField() [1/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeVarintField ( final int  number,
final int  value 
)
inline

Convenience method for merging a new field containing a single varint value. This is used in particular when an unknown enum value is encountered.

Definition at line 458 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ mergeVarintField() [2/2]

Builder com.google.protobuf.UnknownFieldSet.Builder.mergeVarintField ( int  number,
int  value 
)
inline

Convenience method for merging a new field containing a single varint value. This is used in particular when an unknown enum value is encountered.

Exceptions
IllegalArgumentExceptionif number is not positive

Definition at line 432 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ reinitialize()

void com.google.protobuf.UnknownFieldSet.Builder.reinitialize ( )
inlineprivate

Member Data Documentation

◆ fieldBuilders

TreeMap<Integer, Field.Builder> com.google.protobuf.UnknownFieldSet.Builder.fieldBuilders = new TreeMap<>()
private

◆ fields

Map<Integer, Field> com.google.protobuf.UnknownFieldSet.Builder.fields
private

◆ lastField

Field.Builder com.google.protobuf.UnknownFieldSet.Builder.lastField
private

◆ lastFieldNumber

int com.google.protobuf.UnknownFieldSet.Builder.lastFieldNumber
private

The documentation for this class was generated from the following file:
com.google.protobuf.UnknownFieldSet.getDefaultInstance
static UnknownFieldSet getDefaultInstance()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:76
Map
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:451
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1339
com.google.protobuf.UnknownFieldSet.Builder.build
UnknownFieldSet build()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:358
grpc::protobuf::MessageLite
GRPC_CUSTOM_MESSAGELITE MessageLite
Definition: include/grpcpp/impl/codegen/config_protobuf.h:79
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
Builder
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:170
com.google.protobuf.UnknownFieldSet.UnknownFieldSet
UnknownFieldSet()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:60
com.google.protobuf.UnknownFieldSet.Builder.getDefaultInstanceForType
UnknownFieldSet getDefaultInstanceForType()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:389
input
std::string input
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/tokenizer_unittest.cc:197
Field
Definition: bloaty/third_party/protobuf/src/google/protobuf/type.pb.h:446


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:08