public
static
final
class
Method
.
Builder
extends
GeneratedMessageLite
.
Builder<Method
,
Method
.
Builder
>
implements
MethodOrBuilder
Method represents a method of an API interface.
Protobuf type google.protobuf.Method
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > Method.BuilderImplements
MethodOrBuilderMethods
addAllOptions(Iterable<? extends Option> values)
public
Method
.
Builder
addAllOptions
(
Iterable
< ?
extends
Option
>
values
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
addOptions(Option value)
public
Method
.
Builder
addOptions
(
Option
value
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
addOptions(Option.Builder builderForValue)
public
Method
.
Builder
addOptions
(
Option
.
Builder
builderForValue
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
addOptions(int index, Option value)
public
Method
.
Builder
addOptions
(
int
index
,
Option
value
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
addOptions(int index, Option.Builder builderForValue)
public
Method
.
Builder
addOptions
(
int
index
,
Option
.
Builder
builderForValue
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
clearName()
public
Method
.
Builder
clearName
()
The simple name of this method.
string name = 1;
clearOptions()
public
Method
.
Builder
clearOptions
()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
clearRequestStreaming()
public
Method
.
Builder
clearRequestStreaming
()
If true, the request is streamed.
bool request_streaming = 3;
clearRequestTypeUrl()
public
Method
.
Builder
clearRequestTypeUrl
()
A URL of the input message type.
string request_type_url = 2;
clearResponseStreaming()
public
Method
.
Builder
clearResponseStreaming
()
If true, the response is streamed.
bool response_streaming = 5;
clearResponseTypeUrl()
public
Method
.
Builder
clearResponseTypeUrl
()
The URL of the output message type.
string response_type_url = 4;
clearSyntax()
public
Method
.
Builder
clearSyntax
()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
getName()
public
String
getName
()
The simple name of this method.
string name = 1;
getNameBytes()
public
ByteString
getNameBytes
()
The simple name of this method.
string name = 1;
getOptions(int index)
public
Option
getOptions
(
int
index
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getOptionsCount()
public
int
getOptionsCount
()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getOptionsList()
public
List<Option>
getOptionsList
()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getRequestStreaming()
public
boolean
getRequestStreaming
()
If true, the request is streamed.
bool request_streaming = 3;
getRequestTypeUrl()
public
String
getRequestTypeUrl
()
A URL of the input message type.
string request_type_url = 2;
getRequestTypeUrlBytes()
public
ByteString
getRequestTypeUrlBytes
()
A URL of the input message type.
string request_type_url = 2;
getResponseStreaming()
public
boolean
getResponseStreaming
()
If true, the response is streamed.
bool response_streaming = 5;
getResponseTypeUrl()
public
String
getResponseTypeUrl
()
The URL of the output message type.
string response_type_url = 4;
getResponseTypeUrlBytes()
public
ByteString
getResponseTypeUrlBytes
()
The URL of the output message type.
string response_type_url = 4;
getSyntax()
public
Syntax
getSyntax
()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
getSyntaxValue()
public
int
getSyntaxValue
()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
removeOptions(int index)
public
Method
.
Builder
removeOptions
(
int
index
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
setName(String value)
public
Method
.
Builder
setName
(
String
value
)
The simple name of this method.
string name = 1;
setNameBytes(ByteString value)
public
Method
.
Builder
setNameBytes
(
ByteString
value
)
The simple name of this method.
string name = 1;
setOptions(int index, Option value)
public
Method
.
Builder
setOptions
(
int
index
,
Option
value
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
setOptions(int index, Option.Builder builderForValue)
public
Method
.
Builder
setOptions
(
int
index
,
Option
.
Builder
builderForValue
)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
setRequestStreaming(boolean value)
public
Method
.
Builder
setRequestStreaming
(
boolean
value
)
If true, the request is streamed.
bool request_streaming = 3;
setRequestTypeUrl(String value)
public
Method
.
Builder
setRequestTypeUrl
(
String
value
)
A URL of the input message type.
string request_type_url = 2;
setRequestTypeUrlBytes(ByteString value)
public
Method
.
Builder
setRequestTypeUrlBytes
(
ByteString
value
)
A URL of the input message type.
string request_type_url = 2;
setResponseStreaming(boolean value)
public
Method
.
Builder
setResponseStreaming
(
boolean
value
)
If true, the response is streamed.
bool response_streaming = 5;
setResponseTypeUrl(String value)
public
Method
.
Builder
setResponseTypeUrl
(
String
value
)
The URL of the output message type.
string response_type_url = 4;
setResponseTypeUrlBytes(ByteString value)
public
Method
.
Builder
setResponseTypeUrlBytes
(
ByteString
value
)
The URL of the output message type.
string response_type_url = 4;
setSyntax(Syntax value)
public
Method
.
Builder
setSyntax
(
Syntax
value
)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
setSyntaxValue(int value)
public
Method
.
Builder
setSyntaxValue
(
int
value
)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;