public static final class Method.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder> implements MethodOrBuilder
Method represents a method of an API interface.Protobuf type
google.protobuf.Method| Modifier and Type | Method and Description |
|---|---|
Method.Builder |
addAllOptions(java.lang.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.
|
Option.Builder |
addOptionsBuilder()
Any metadata attached to the method.
|
Option.Builder |
addOptionsBuilder(int index)
Any metadata attached to the method.
|
Method.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Method |
build() |
Method |
buildPartial() |
Method.Builder |
clear() |
Method.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Method.Builder |
clearName()
The simple name of this method.
|
Method.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
Method.Builder |
clone() |
Method |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
The simple name of this method.
|
com.google.protobuf.ByteString |
getNameBytes()
The simple name of this method.
|
Option |
getOptions(int index)
Any metadata attached to the method.
|
Option.Builder |
getOptionsBuilder(int index)
Any metadata attached to the method.
|
java.util.List<Option.Builder> |
getOptionsBuilderList()
Any metadata attached to the method.
|
int |
getOptionsCount()
Any metadata attached to the method.
|
java.util.List<Option> |
getOptionsList()
Any metadata attached to the method.
|
OptionOrBuilder |
getOptionsOrBuilder(int index)
Any metadata attached to the method.
|
java.util.List<? extends OptionOrBuilder> |
getOptionsOrBuilderList()
Any metadata attached to the method.
|
boolean |
getRequestStreaming()
If true, the request is streamed.
|
java.lang.String |
getRequestTypeUrl()
A URL of the input message type.
|
com.google.protobuf.ByteString |
getRequestTypeUrlBytes()
A URL of the input message type.
|
boolean |
getResponseStreaming()
If true, the response is streamed.
|
java.lang.String |
getResponseTypeUrl()
The URL of the output message type.
|
com.google.protobuf.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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Method.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Method.Builder |
mergeFrom(com.google.protobuf.Message other) |
Method.Builder |
mergeFrom(Method other) |
Method.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Method.Builder |
removeOptions(int index)
Any metadata attached to the method.
|
Method.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Method.Builder |
setName(java.lang.String value)
The simple name of this method.
|
Method.Builder |
setNameBytes(com.google.protobuf.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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Method.Builder |
setRequestStreaming(boolean value)
If true, the request is streamed.
|
Method.Builder |
setRequestTypeUrl(java.lang.String value)
A URL of the input message type.
|
Method.Builder |
setRequestTypeUrlBytes(com.google.protobuf.ByteString value)
A URL of the input message type.
|
Method.Builder |
setResponseStreaming(boolean value)
If true, the response is streamed.
|
Method.Builder |
setResponseTypeUrl(java.lang.String value)
The URL of the output message type.
|
Method.Builder |
setResponseTypeUrlBytes(com.google.protobuf.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.
|
Method.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Method build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Method buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Method.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Method.Builder>public Method.Builder mergeFrom(Method other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public Method.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Method.Builder>java.io.IOExceptionpublic java.lang.String getName()
The simple name of this method.
string name = 1;getName in interface MethodOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The simple name of this method.
string name = 1;getNameBytes in interface MethodOrBuilderpublic Method.Builder setName(java.lang.String value)
The simple name of this method.
string name = 1;public Method.Builder clearName()
The simple name of this method.
string name = 1;public Method.Builder setNameBytes(com.google.protobuf.ByteString value)
The simple name of this method.
string name = 1;public java.lang.String getRequestTypeUrl()
A URL of the input message type.
string request_type_url = 2;getRequestTypeUrl in interface MethodOrBuilderpublic com.google.protobuf.ByteString getRequestTypeUrlBytes()
A URL of the input message type.
string request_type_url = 2;getRequestTypeUrlBytes in interface MethodOrBuilderpublic Method.Builder setRequestTypeUrl(java.lang.String value)
A URL of the input message type.
string request_type_url = 2;public Method.Builder clearRequestTypeUrl()
A URL of the input message type.
string request_type_url = 2;public Method.Builder setRequestTypeUrlBytes(com.google.protobuf.ByteString value)
A URL of the input message type.
string request_type_url = 2;public boolean getRequestStreaming()
If true, the request is streamed.
bool request_streaming = 3;getRequestStreaming in interface MethodOrBuilderpublic Method.Builder setRequestStreaming(boolean value)
If true, the request is streamed.
bool request_streaming = 3;public Method.Builder clearRequestStreaming()
If true, the request is streamed.
bool request_streaming = 3;public java.lang.String getResponseTypeUrl()
The URL of the output message type.
string response_type_url = 4;getResponseTypeUrl in interface MethodOrBuilderpublic com.google.protobuf.ByteString getResponseTypeUrlBytes()
The URL of the output message type.
string response_type_url = 4;getResponseTypeUrlBytes in interface MethodOrBuilderpublic Method.Builder setResponseTypeUrl(java.lang.String value)
The URL of the output message type.
string response_type_url = 4;public Method.Builder clearResponseTypeUrl()
The URL of the output message type.
string response_type_url = 4;public Method.Builder setResponseTypeUrlBytes(com.google.protobuf.ByteString value)
The URL of the output message type.
string response_type_url = 4;public boolean getResponseStreaming()
If true, the response is streamed.
bool response_streaming = 5;getResponseStreaming in interface MethodOrBuilderpublic Method.Builder setResponseStreaming(boolean value)
If true, the response is streamed.
bool response_streaming = 5;public Method.Builder clearResponseStreaming()
If true, the response is streamed.
bool response_streaming = 5;public java.util.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(java.lang.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 Option.Builder getOptionsBuilder(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;public OptionOrBuilder getOptionsOrBuilder(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;getOptionsOrBuilder in interface MethodOrBuilderpublic java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;getOptionsOrBuilderList in interface MethodOrBuilderpublic Option.Builder addOptionsBuilder()
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;public Option.Builder addOptionsBuilder(int index)
Any metadata attached to the method.
repeated .google.protobuf.Option options = 6;public java.util.List<Option.Builder> getOptionsBuilderList()
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 MethodOrBuilderpublic Method.Builder setSyntaxValue(int value)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;public Syntax getSyntax()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;getSyntax in interface MethodOrBuilderpublic Method.Builder setSyntax(Syntax value)
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;public Method.Builder clearSyntax()
The source syntax of this method.
.google.protobuf.Syntax syntax = 7;public final Method.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>public final Method.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Method.Builder>