public static class ThriftField._Builder extends PMessageBuilder<ThriftField>
| Constructor and Description |
|---|
_Builder()
Make a model.ThriftField builder.
|
_Builder(ThriftField base)
Make a mutating builder off a base model.ThriftField.
|
| Modifier and Type | Method and Description |
|---|---|
ThriftField._Builder |
addTo(int key,
Object value) |
ThriftField |
build() |
ThriftField._Builder |
clear(int key) |
ThriftField._Builder |
clearAnnotations()
Clears the annotations field.
|
ThriftField._Builder |
clearComment()
Clears the comment field.
|
ThriftField._Builder |
clearDefaultValue()
Clears the default_value field.
|
ThriftField._Builder |
clearKey()
Clears the key field.
|
ThriftField._Builder |
clearName()
Clears the name field.
|
ThriftField._Builder |
clearRequirement()
Clears the requirement field.
|
ThriftField._Builder |
clearType()
Clears the type field.
|
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetComment()
Checks for presence of the comment field.
|
boolean |
isSetDefaultValue()
Checks for presence of the default_value field.
|
boolean |
isSetKey()
Checks for presence of the key field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetRequirement()
Checks for presence of the requirement field.
|
boolean |
isSetType()
Checks for presence of the type field.
|
boolean |
isValid() |
ThriftField._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
ThriftField._Builder |
set(int key,
Object value) |
ThriftField._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
ThriftField._Builder |
setComment(String value)
Sets the value of comment.
|
ThriftField._Builder |
setDefaultValue(String value)
Sets the value of default_value.
|
ThriftField._Builder |
setKey(int value)
Sets the value of key.
|
ThriftField._Builder |
setName(String value)
Sets the value of name.
|
ThriftField._Builder |
setRequirement(Requirement value)
Sets the value of requirement.
|
ThriftField._Builder |
setType(String value)
Sets the value of type.
|
public _Builder()
public _Builder(ThriftField base)
base - The base ThriftFieldpublic ThriftField._Builder setComment(String value)
value - The new valuepublic boolean isSetComment()
public ThriftField._Builder clearComment()
public ThriftField._Builder setKey(int value)
value - The new valuepublic boolean isSetKey()
public ThriftField._Builder clearKey()
public ThriftField._Builder setRequirement(Requirement value)
value - The new valuepublic boolean isSetRequirement()
public ThriftField._Builder clearRequirement()
public ThriftField._Builder setType(String value)
value - The new valuepublic boolean isSetType()
public ThriftField._Builder clearType()
public ThriftField._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public ThriftField._Builder clearName()
public ThriftField._Builder setDefaultValue(String value)
value - The new valuepublic boolean isSetDefaultValue()
public ThriftField._Builder clearDefaultValue()
public ThriftField._Builder setAnnotations(Map<String,String> value)
value - The new valuepublic ThriftField._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public ThriftField._Builder clearAnnotations()
public ThriftField._Builder set(int key, Object value)
set in class PMessageBuilder<ThriftField>public ThriftField._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ThriftField>public ThriftField._Builder clear(int key)
clear in class PMessageBuilder<ThriftField>public boolean isValid()
isValid in class PMessageBuilder<ThriftField>public ThriftField build()
Copyright © 2016. All rights reserved.