public class ValueConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.protobuf.Value |
EMPTY_VALUE
An empty message.
|
| Constructor and Description |
|---|
ValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Message |
fromValue(com.google.protobuf.Message.Builder messageBuilder,
com.google.protobuf.Value value)
Converts a to a of the provided
.
|
static com.google.protobuf.Value |
toValue(com.google.protobuf.Message message)
Converts a message type to a .
|
public static final com.google.protobuf.Value EMPTY_VALUE
public static com.google.protobuf.Value toValue(com.google.protobuf.Message message)
throws com.google.protobuf.InvalidProtocolBufferException
message - the message to convertcom.google.protobuf.InvalidProtocolBufferExceptionpublic static com.google.protobuf.Message fromValue(com.google.protobuf.Message.Builder messageBuilder,
com.google.protobuf.Value value)
throws com.google.protobuf.InvalidProtocolBufferException
messageBuilder - a builder for the message typevalue - the Value to convert to a messagecom.google.protobuf.InvalidProtocolBufferExceptionCopyright © 2024 Google LLC. All rights reserved.