public class ProtoBufFieldProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtoBufFieldProcessor.BuilderInitializationStatus |
| Constructor and Description |
|---|
ProtoBufFieldProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfSomeButNotAllRequiredFieldsAreSet(com.google.protobuf.Message.Builder builder) |
static com.google.protobuf.Message.Builder |
clearRequiredField(com.google.protobuf.Message.Builder builder,
String fieldPath) |
static void |
clearRequiredFields(com.google.protobuf.Message.Builder builder) |
static String |
getDescription(com.google.protobuf.Message.Builder msg) |
static com.google.protobuf.Descriptors.FieldDescriptor |
getFieldDescriptor(Class<? extends com.google.protobuf.GeneratedMessage> messageClass,
int fieldNumber) |
static com.google.protobuf.Descriptors.FieldDescriptor |
getFieldDescriptor(com.google.protobuf.MessageOrBuilder builder,
int fieldNumber) |
static com.google.protobuf.Descriptors.FieldDescriptor |
getFieldDescriptor(com.google.protobuf.MessageOrBuilder msg,
String fieldName) |
static com.google.protobuf.Descriptors.FieldDescriptor[] |
getFieldDescriptors(Class<? extends com.google.protobuf.GeneratedMessage> messageClass,
int... fieldNumbers) |
static String |
getId(com.google.protobuf.Message.Builder msg) |
static String |
getId(com.google.protobuf.Message msg) |
static String |
getLabel(com.google.protobuf.Message.Builder msg) |
static com.google.protobuf.Message.Builder |
initFieldWithDefault(com.google.protobuf.Message.Builder builder,
String fieldPath) |
static void |
initRequiredFieldsWithDefault(com.google.protobuf.Message.Builder builder) |
public static com.google.protobuf.Descriptors.FieldDescriptor getFieldDescriptor(com.google.protobuf.MessageOrBuilder builder,
int fieldNumber)
public static com.google.protobuf.Descriptors.FieldDescriptor[] getFieldDescriptors(Class<? extends com.google.protobuf.GeneratedMessage> messageClass, int... fieldNumbers) throws CouldNotPerformException
CouldNotPerformExceptionpublic static com.google.protobuf.Descriptors.FieldDescriptor getFieldDescriptor(Class<? extends com.google.protobuf.GeneratedMessage> messageClass, int fieldNumber) throws CouldNotPerformException
CouldNotPerformExceptionpublic static com.google.protobuf.Descriptors.FieldDescriptor getFieldDescriptor(com.google.protobuf.MessageOrBuilder msg,
String fieldName)
public static String getId(com.google.protobuf.Message msg) throws CouldNotPerformException
CouldNotPerformExceptionpublic static String getId(com.google.protobuf.Message.Builder msg) throws CouldNotPerformException
CouldNotPerformExceptionpublic static String getDescription(com.google.protobuf.Message.Builder msg) throws CouldNotPerformException
CouldNotPerformExceptionpublic static String getLabel(com.google.protobuf.Message.Builder msg) throws CouldNotPerformException
CouldNotPerformExceptionpublic static void initRequiredFieldsWithDefault(com.google.protobuf.Message.Builder builder)
public static com.google.protobuf.Message.Builder initFieldWithDefault(com.google.protobuf.Message.Builder builder,
String fieldPath)
public static void clearRequiredFields(com.google.protobuf.Message.Builder builder)
public static com.google.protobuf.Message.Builder clearRequiredField(com.google.protobuf.Message.Builder builder,
String fieldPath)
public static boolean checkIfSomeButNotAllRequiredFieldsAreSet(com.google.protobuf.Message.Builder builder)
Copyright © 2015–2017 openbase.org. All rights reserved.