public final class FieldPreconditions
extends java.lang.Object
FieldPrecondition
instances based on the field type.Modifier and Type | Method and Description |
---|---|
static FieldPrecondition |
preconditionFor(com.google.protobuf.Descriptors.FieldDescriptor field,
CodeLines jsOutput)
Creates a
FieldPrecondition for the given field . |
public static FieldPrecondition preconditionFor(com.google.protobuf.Descriptors.FieldDescriptor field, CodeLines jsOutput)
FieldPrecondition
for the given field
.field
- the descriptor of the Protobuf field to create the precondition forjsOutput
- the JsOutput
which will accumulate all the generated codeFieldPrecondition
of the appropriate type