public static class ServiceMethod._Builder extends PMessageBuilder<ServiceMethod>
| Constructor and Description |
|---|
_Builder()
Make a model.ServiceMethod builder.
|
_Builder(ServiceMethod base)
Make a mutating builder off a base model.ServiceMethod.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceMethod._Builder |
addTo(int key,
Object value) |
ServiceMethod._Builder |
addToExceptions(ThriftField... values)
Adds entries to exceptions.
|
ServiceMethod._Builder |
addToParams(ThriftField... values)
Adds entries to params.
|
ServiceMethod |
build() |
ServiceMethod._Builder |
clear(int key) |
ServiceMethod._Builder |
clearAnnotations()
Clears the annotations field.
|
ServiceMethod._Builder |
clearComment()
Clears the comment field.
|
ServiceMethod._Builder |
clearExceptions()
Clears the exceptions field.
|
ServiceMethod._Builder |
clearName()
Clears the name field.
|
ServiceMethod._Builder |
clearOneWay()
Clears the one_way field.
|
ServiceMethod._Builder |
clearParams()
Clears the params field.
|
ServiceMethod._Builder |
clearReturnType()
Clears the return_type field.
|
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetComment()
Checks for presence of the comment field.
|
boolean |
isSetExceptions()
Checks for presence of the exceptions field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetOneWay()
Checks for presence of the one_way field.
|
boolean |
isSetParams()
Checks for presence of the params field.
|
boolean |
isSetReturnType()
Checks for presence of the return_type field.
|
boolean |
isValid() |
ServiceMethod._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
ServiceMethod._Builder |
set(int key,
Object value) |
ServiceMethod._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
ServiceMethod._Builder |
setComment(String value)
Sets the value of comment.
|
ServiceMethod._Builder |
setExceptions(Collection<ThriftField> value)
Sets the value of exceptions.
|
ServiceMethod._Builder |
setName(String value)
Sets the value of name.
|
ServiceMethod._Builder |
setOneWay(boolean value)
Sets the value of one_way.
|
ServiceMethod._Builder |
setParams(Collection<ThriftField> value)
Sets the value of params.
|
ServiceMethod._Builder |
setReturnType(String value)
Sets the value of return_type.
|
public _Builder()
public _Builder(ServiceMethod base)
base - The base ServiceMethodpublic ServiceMethod._Builder setComment(String value)
value - The new valuepublic boolean isSetComment()
public ServiceMethod._Builder clearComment()
public ServiceMethod._Builder setOneWay(boolean value)
value - The new valuepublic boolean isSetOneWay()
public ServiceMethod._Builder clearOneWay()
public ServiceMethod._Builder setReturnType(String value)
value - The new valuepublic boolean isSetReturnType()
public ServiceMethod._Builder clearReturnType()
public ServiceMethod._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public ServiceMethod._Builder clearName()
public ServiceMethod._Builder setParams(Collection<ThriftField> value)
value - The new valuepublic ServiceMethod._Builder addToParams(ThriftField... values)
values - The added valuepublic boolean isSetParams()
public ServiceMethod._Builder clearParams()
public ServiceMethod._Builder setExceptions(Collection<ThriftField> value)
value - The new valuepublic ServiceMethod._Builder addToExceptions(ThriftField... values)
values - The added valuepublic boolean isSetExceptions()
public ServiceMethod._Builder clearExceptions()
public ServiceMethod._Builder setAnnotations(Map<String,String> value)
value - The new valuepublic ServiceMethod._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public ServiceMethod._Builder clearAnnotations()
public ServiceMethod._Builder set(int key, Object value)
set in class PMessageBuilder<ServiceMethod>public ServiceMethod._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<ServiceMethod>public ServiceMethod._Builder clear(int key)
clear in class PMessageBuilder<ServiceMethod>public boolean isValid()
isValid in class PMessageBuilder<ServiceMethod>public ServiceMethod build()
Copyright © 2016. All rights reserved.