Class UnknownFieldSet.Field.Builder (3.19.4)

public static final class UnknownFieldSet.Field.Builder

Used to build a Field within an UnknownFieldSet.

Use Field#newBuilder() to construct a Builder.

Inheritance

java.lang.Object > UnknownFieldSet.Field.Builder

Methods

addFixed32(int value)

public UnknownFieldSet.Field.Builder addFixed32(int value)

Add a fixed32 value.

Parameter
Name Description
value int
Returns
Type Description
UnknownFieldSet.Field.Builder

addFixed64(long value)

public UnknownFieldSet.Field.Builder addFixed64(long value)

Add a fixed64 value.

Parameter
Name Description
value long
Returns
Type Description
UnknownFieldSet.Field.Builder

addGroup(UnknownFieldSet value)

public UnknownFieldSet.Field.Builder addGroup(UnknownFieldSet value)

Add an embedded group.

Parameter
Name Description
value UnknownFieldSet
Returns
Type Description
UnknownFieldSet.Field.Builder

addLengthDelimited(ByteString value)

public UnknownFieldSet.Field.Builder addLengthDelimited(ByteString value)

Add a length-delimited value.

Parameter
Name Description
value ByteString
Returns
Type Description
UnknownFieldSet.Field.Builder

addVarint(long value)

public UnknownFieldSet.Field.Builder addVarint(long value)

Add a varint value.

Parameter
Name Description
value long
Returns
Type Description
UnknownFieldSet.Field.Builder

build()

public UnknownFieldSet.Field build()

Build the field.

Returns
Type Description
UnknownFieldSet.Field

clear()

public UnknownFieldSet.Field.Builder clear()

Discard the field's contents.

Returns
Type Description
UnknownFieldSet.Field.Builder

clone()

public UnknownFieldSet.Field.Builder clone()
Returns
Type Description
UnknownFieldSet.Field.Builder
Overrides

mergeFrom(UnknownFieldSet.Field other)

public UnknownFieldSet.Field.Builder mergeFrom(UnknownFieldSet.Field other)

Merge the values in other into this field. For each list of values, other's values are append to the ones in this field.

Parameter
Name Description
other UnknownFieldSet.Field
Returns
Type Description
UnknownFieldSet.Field.Builder