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
instance, isBuilt
Modifier and Type | Method and Description |
---|---|
Method.Builder |
addAllOptions(Iterable<? extends Option> values)
Any metadata attached to the method.
|
Method.Builder |
addOptions(int index,
Option.Builder builderForValue)
Any metadata attached to the method.
|
Method.Builder |
addOptions(int index,
Option value)
Any metadata attached to the method.
|
Method.Builder |
addOptions(Option.Builder builderForValue)
Any metadata attached to the method.
|
Method.Builder |
addOptions(Option value)
Any metadata attached to the method.
|
Method.Builder |
clearName()
The simple name of this method.
|
Method.Builder |
clearOptions()
Any metadata attached to the method.
|
Method.Builder |
clearRequestStreaming()
If true, the request is streamed.
|
Method.Builder |
clearRequestTypeUrl()
A URL of the input message type.
|
Method.Builder |
clearResponseStreaming()
If true, the response is streamed.
|
Method.Builder |
clearResponseTypeUrl()
The URL of the output message type.
|
Method.Builder |
clearSyntax()
The source syntax of this method.
|
String |
getName()
The simple name of this method.
|
ByteString |
getNameBytes()
The simple name of this method.
|
Option |
getOptions(int index)
Any metadata attached to the method.
|
int |
getOptionsCount()
Any metadata attached to the method.
|
List<Option> |
getOptionsList()
Any metadata attached to the method.
|
boolean |
getRequestStreaming()
If true, the request is streamed.
|
String |
getRequestTypeUrl()
A URL of the input message type.
|
ByteString |
getRequestTypeUrlBytes()
A URL of the input message type.
|
boolean |
getResponseStreaming()
If true, the response is streamed.
|
String |
getResponseTypeUrl()
The URL of the output message type.
|
ByteString |
getResponseTypeUrlBytes()
The URL of the output message type.
|
Syntax |
getSyntax()
The source syntax of this method.
|
int |
getSyntaxValue()
The source syntax of this method.
|
Method.Builder |
removeOptions(int index)
Any metadata attached to the method.
|
Method.Builder |
setName(String value)
The simple name of this method.
|
Method.Builder |
setNameBytes(ByteString value)
The simple name of this method.
|
Method.Builder |
setOptions(int index,
Option.Builder builderForValue)
Any metadata attached to the method.
|
Method.Builder |
setOptions(int index,
Option value)
Any metadata attached to the method.
|
Method.Builder |
setRequestStreaming(boolean value)
If true, the request is streamed.
|
Method.Builder |
setRequestTypeUrl(String value)
A URL of the input message type.
|
Method.Builder |
setRequestTypeUrlBytes(ByteString value)
A URL of the input message type.
|
Method.Builder |
setResponseStreaming(boolean value)
If true, the response is streamed.
|
Method.Builder |
setResponseTypeUrl(String value)
The URL of the output message type.
|
Method.Builder |
setResponseTypeUrlBytes(ByteString value)
The URL of the output message type.
|
Method.Builder |
setSyntax(Syntax value)
The source syntax of this method.
|
Method.Builder |
setSyntaxValue(int value)
The source syntax of this method.
|
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public String getName()
The simple name of this method.
string name = 1;
getName
in interface MethodOrBuilder
public ByteString getNameBytes()
The simple name of this method.
string name = 1;
getNameBytes
in interface MethodOrBuilder
public Method.Builder setName(String value)
The simple name of this method.
string name = 1;
value
- The name to set.public Method.Builder clearName()
The simple name of this method.
string name = 1;
public Method.Builder setNameBytes(ByteString value)
The simple name of this method.
string name = 1;
value
- The bytes for name to set.public String getRequestTypeUrl()
A URL of the input message type.
string request_type_url = 2;
getRequestTypeUrl
in interface MethodOrBuilder
public ByteString getRequestTypeUrlBytes()
A URL of the input message type.
string request_type_url = 2;
getRequestTypeUrlBytes
in interface MethodOrBuilder
public Method.Builder setRequestTypeUrl(String value)
A URL of the input message type.
string request_type_url = 2;
value
- The requestTypeUrl to set.public Method.Builder clearRequestTypeUrl()
A URL of the input message type.
string request_type_url = 2;
public Method.Builder setRequestTypeUrlBytes(ByteString value)
A URL of the input message type.
string request_type_url = 2;
value
- The bytes for requestTypeUrl to set.public boolean getRequestStreaming()
If true, the request is streamed.
bool request_streaming = 3;
getRequestStreaming
in interface MethodOrBuilder
public Method.Builder setRequestStreaming(boolean value)
If true, the request is streamed.
bool request_streaming = 3;
value
- The requestStreaming to set.public Method.Builder clearRequestStreaming()
If true, the request is streamed.
bool request_streaming = 3;
public String getResponseTypeUrl()
The URL of the output message type.
string response_type_url = 4;
getResponseTypeUrl
in interface MethodOrBuilder
public ByteString getResponseTypeUrlBytes()
The URL of the output message type.
string response_type_url = 4;
getResponseTypeUrlBytes
in interface MethodOrBuilder
public Method.Builder setResponseTypeUrl(String value)
The URL of the output message type.
string response_type_url = 4;
value
- The responseTypeUrl to set.public Method.Builder clearResponseTypeUrl()
The URL of the output message type.
string response_type_url = 4;
public Method.Builder setResponseTypeUrlBytes(ByteString value)
The URL of the output message type.
string response_type_url = 4;
value
- The bytes for responseTypeUrl to set.public boolean getResponseStreaming()
If true, the response is streamed.
bool response_streaming = 5;
getResponseStreaming
in interface MethodOrBuilder
public Method.Builder setResponseStreaming(boolean value)
If true, the response is streamed.
bool response_streaming = 5;
value
- The responseStreaming to set.public Method.Builder clearResponseStreaming()
If true, the response is streamed.
bool response_streaming = 5;
public List<Option> getOptionsList()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getOptionsList
in interface MethodOrBuilder
public int getOptionsCount()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getOptionsCount
in interface MethodOrBuilder
public Option getOptions(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
getOptions
in interface MethodOrBuilder
public Method.Builder setOptions(int index, Option value)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder setOptions(int index, Option.Builder builderForValue)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder addOptions(Option value)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder addOptions(int index, Option value)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder addOptions(Option.Builder builderForValue)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder addOptions(int index, Option.Builder builderForValue)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder addAllOptions(Iterable<? extends Option> values)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder clearOptions()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public Method.Builder removeOptions(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;
public int getSyntaxValue()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
getSyntaxValue
in interface MethodOrBuilder
public Method.Builder setSyntaxValue(int value)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
value
- The syntax to set.public Syntax getSyntax()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
getSyntax
in interface MethodOrBuilder
public Method.Builder setSyntax(Syntax value)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
value
- The enum numeric value on the wire for syntax to set.public Method.Builder clearSyntax()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;
Copyright © 2008–2021. All rights reserved.