Package com.google.protobuf
Class BytesValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<BytesValue,BytesValue.Builder>
-
- com.google.protobuf.BytesValue.Builder
-
- All Implemented Interfaces:
BytesValueOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- BytesValue
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 typegoogle.protobuf.BytesValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytesValue.Builder
clearValue()
The bytes value.ByteString
getValue()
The bytes value.BytesValue.Builder
setValue(ByteString value)
The bytes value.-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
getValue
public ByteString getValue()
The bytes value.
bytes value = 1;
- Specified by:
getValue
in interfaceBytesValueOrBuilder
- Returns:
- The value.
-
setValue
public BytesValue.Builder setValue(ByteString value)
The bytes value.
bytes value = 1;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public BytesValue.Builder clearValue()
The bytes value.
bytes value = 1;
- Returns:
- This builder for chaining.
-
-