Class BytesValue.Builder (3.19.4)

public static final class BytesValue.Builder extends GeneratedMessageLite.Builder<BytesValue,BytesValue.Builder> implements BytesValueOrBuilder

Wrapper message for bytes. The JSON representation for BytesValue is JSON string.

Protobuf type google.protobuf.BytesValue

Implements

BytesValueOrBuilder

Methods

clearValue()

public BytesValue.Builder clearValue()

The bytes value.

bytes value = 1;

Returns
TypeDescription
BytesValue.Builder

This builder for chaining.

getValue()

public ByteString getValue()

The bytes value.

bytes value = 1;

Returns
TypeDescription
ByteString

The value.

setValue(ByteString value)

public BytesValue.Builder setValue(ByteString value)

The bytes value.

bytes value = 1;

Parameter
NameDescription
valueByteString

The value to set.

Returns
TypeDescription
BytesValue.Builder

This builder for chaining.