Class StringValue.Builder (3.19.4)

public static final class StringValue.Builder extends GeneratedMessageLite.Builder<StringValue,StringValue.Builder> implements StringValueOrBuilder

Wrapper message for string. The JSON representation for StringValue is JSON string.

Protobuf type google.protobuf.StringValue

Methods

clearValue()

public StringValue.Builder clearValue()

The string value.

string value = 1;

Returns
Type Description
StringValue.Builder

This builder for chaining.

getValue()

public String getValue()

The string value.

string value = 1;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The string value.

string value = 1;

Returns
Type Description
ByteString

The bytes for value.

setValue(String value)

public StringValue.Builder setValue(String value)

The string value.

string value = 1;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
StringValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public StringValue.Builder setValueBytes(ByteString value)

The string value.

string value = 1;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
StringValue.Builder

This builder for chaining.