| Modifier and Type | Method and Description |
|---|---|
static OptionElement |
OptionElement.create(String name,
OptionElement.Kind kind,
Object value) |
static OptionElement |
OptionElement.create(String name,
OptionElement.Kind kind,
Object value,
boolean isParenthesized) |
static OptionElement |
OptionElement.findByName(List<OptionElement> options,
String name)
Return the option with the specified name from the supplied list or null.
|
OptionElement |
FieldElement.getDefault()
Returns the
default option value or null. |
| Modifier and Type | Method and Description |
|---|---|
List<OptionElement> |
TypeElement.options() |
abstract List<OptionElement> |
ServiceElement.options() |
abstract List<OptionElement> |
RpcElement.options() |
abstract List<OptionElement> |
ProtoFile.options() |
abstract List<OptionElement> |
MessageElement.options() |
abstract List<OptionElement> |
FieldElement.options() |
abstract List<OptionElement> |
EnumElement.options() |
abstract List<OptionElement> |
EnumConstantElement.options() |
| Modifier and Type | Method and Description |
|---|---|
ServiceElement.Builder |
ServiceElement.Builder.addOption(OptionElement option) |
RpcElement.Builder |
RpcElement.Builder.addOption(OptionElement option) |
ProtoFile.Builder |
ProtoFile.Builder.addOption(OptionElement option) |
MessageElement.Builder |
MessageElement.Builder.addOption(OptionElement option) |
FieldElement.Builder |
FieldElement.Builder.addOption(OptionElement option) |
EnumElement.Builder |
EnumElement.Builder.addOption(OptionElement option) |
EnumConstantElement.Builder |
EnumConstantElement.Builder.addOption(OptionElement option) |
| Modifier and Type | Method and Description |
|---|---|
ServiceElement.Builder |
ServiceElement.Builder.addOptions(Collection<OptionElement> options) |
RpcElement.Builder |
RpcElement.Builder.addOptions(Collection<OptionElement> options) |
ProtoFile.Builder |
ProtoFile.Builder.addOptions(Collection<OptionElement> options) |
MessageElement.Builder |
MessageElement.Builder.addOptions(Collection<OptionElement> options) |
FieldElement.Builder |
FieldElement.Builder.addOptions(Collection<OptionElement> options) |
EnumElement.Builder |
EnumElement.Builder.addOptions(Collection<OptionElement> options) |
static OptionElement |
OptionElement.findByName(List<OptionElement> options,
String name)
Return the option with the specified name from the supplied list or null.
|
static Map<String,Object> |
OptionElement.optionsAsMap(List<OptionElement> options) |
Copyright © 2015 Square, Inc.. All Rights Reserved.