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
NameDescription
valueint
Returns
TypeDescription
UnknownFieldSet.Field.Builder

addFixed64(long value)

public UnknownFieldSet.Field.Builder addFixed64(long value)

Add a fixed64 value.

Parameter
NameDescription
valuelong
Returns
TypeDescription
UnknownFieldSet.Field.Builder

addGroup(UnknownFieldSet value)

public UnknownFieldSet.Field.Builder addGroup(UnknownFieldSet value)

Add an embedded group.

Parameter
NameDescription
valueUnknownFieldSet
Returns
TypeDescription
UnknownFieldSet.Field.Builder

addLengthDelimited(ByteString value)

public UnknownFieldSet.Field.Builder addLengthDelimited(ByteString value)

Add a length-delimited value.

Parameter
NameDescription
valueByteString
Returns
TypeDescription
UnknownFieldSet.Field.Builder

addVarint(long value)

public UnknownFieldSet.Field.Builder addVarint(long value)

Add a varint value.

Parameter
NameDescription
valuelong
Returns
TypeDescription
UnknownFieldSet.Field.Builder

build()

public UnknownFieldSet.Field build()

Build the field.

Returns
TypeDescription
UnknownFieldSet.Field

clear()

public UnknownFieldSet.Field.Builder clear()

Discard the field's contents.

Returns
TypeDescription
UnknownFieldSet.Field.Builder

clone()

public UnknownFieldSet.Field.Builder clone()
Returns
TypeDescription
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
NameDescription
otherUnknownFieldSet.Field
Returns
TypeDescription
UnknownFieldSet.Field.Builder