public static final class Method.Builder extends GeneratedMessageLite.Builder<Method,Method.Builder> implements MethodOrBuilder
Method represents a method of an api.Protobuf type
google.protobuf.Methodinstance, 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, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic String getName()
The simple name of this method.
optional string name = 1;getName in interface MethodOrBuilderpublic ByteString getNameBytes()
The simple name of this method.
optional string name = 1;getNameBytes in interface MethodOrBuilderpublic Method.Builder setName(String value)
The simple name of this method.
optional string name = 1;public Method.Builder clearName()
The simple name of this method.
optional string name = 1;public Method.Builder setNameBytes(ByteString value)
The simple name of this method.
optional string name = 1;public String getRequestTypeUrl()
A URL of the input message type.
optional string request_type_url = 2;getRequestTypeUrl in interface MethodOrBuilderpublic ByteString getRequestTypeUrlBytes()
A URL of the input message type.
optional string request_type_url = 2;getRequestTypeUrlBytes in interface MethodOrBuilderpublic Method.Builder setRequestTypeUrl(String value)
A URL of the input message type.
optional string request_type_url = 2;public Method.Builder clearRequestTypeUrl()
A URL of the input message type.
optional string request_type_url = 2;public Method.Builder setRequestTypeUrlBytes(ByteString value)
A URL of the input message type.
optional string request_type_url = 2;public boolean getRequestStreaming()
If true, the request is streamed.
optional bool request_streaming = 3;getRequestStreaming in interface MethodOrBuilderpublic Method.Builder setRequestStreaming(boolean value)
If true, the request is streamed.
optional bool request_streaming = 3;public Method.Builder clearRequestStreaming()
If true, the request is streamed.
optional bool request_streaming = 3;public String getResponseTypeUrl()
The URL of the output message type.
optional string response_type_url = 4;getResponseTypeUrl in interface MethodOrBuilderpublic ByteString getResponseTypeUrlBytes()
The URL of the output message type.
optional string response_type_url = 4;getResponseTypeUrlBytes in interface MethodOrBuilderpublic Method.Builder setResponseTypeUrl(String value)
The URL of the output message type.
optional string response_type_url = 4;public Method.Builder clearResponseTypeUrl()
The URL of the output message type.
optional string response_type_url = 4;public Method.Builder setResponseTypeUrlBytes(ByteString value)
The URL of the output message type.
optional string response_type_url = 4;public boolean getResponseStreaming()
If true, the response is streamed.
optional bool response_streaming = 5;getResponseStreaming in interface MethodOrBuilderpublic Method.Builder setResponseStreaming(boolean value)
If true, the response is streamed.
optional bool response_streaming = 5;public Method.Builder clearResponseStreaming()
If true, the response is streamed.
optional bool response_streaming = 5;public List<Option> getOptionsList()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;getOptionsList in interface MethodOrBuilderpublic int getOptionsCount()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;getOptionsCount in interface MethodOrBuilderpublic Option getOptions(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;getOptions in interface MethodOrBuilderpublic 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.
optional .google.protobuf.Syntax syntax = 7;getSyntaxValue in interface MethodOrBuilderpublic Method.Builder setSyntaxValue(int value)
The source syntax of this method.
optional .google.protobuf.Syntax syntax = 7;public Syntax getSyntax()
The source syntax of this method.
optional .google.protobuf.Syntax syntax = 7;getSyntax in interface MethodOrBuilderpublic Method.Builder setSyntax(Syntax value)
The source syntax of this method.
optional .google.protobuf.Syntax syntax = 7;public Method.Builder clearSyntax()
The source syntax of this method.
optional .google.protobuf.Syntax syntax = 7;Copyright © 2008–2016 Google. All rights reserved.