public static final class DescriptorProtos.MethodDescriptorProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder> implements DescriptorProtos.MethodDescriptorProtoOrBuilder
Describes a method of a service.Protobuf type
google.protobuf.MethodDescriptorProto| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.MethodDescriptorProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
DescriptorProtos.MethodDescriptorProto |
build() |
DescriptorProtos.MethodDescriptorProto |
buildPartial() |
DescriptorProtos.MethodDescriptorProto.Builder |
clear() |
DescriptorProtos.MethodDescriptorProto.Builder |
clearClientStreaming()
Identifies if client streams multiple client messages
|
DescriptorProtos.MethodDescriptorProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DescriptorProtos.MethodDescriptorProto.Builder |
clearInputType()
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
clearName()
optional string name = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DescriptorProtos.MethodDescriptorProto.Builder |
clearOptions()
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodDescriptorProto.Builder |
clearOutputType()
optional string output_type = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
clearServerStreaming()
Identifies if server streams multiple server messages
|
DescriptorProtos.MethodDescriptorProto.Builder |
clone() |
boolean |
getClientStreaming()
Identifies if client streams multiple client messages
|
DescriptorProtos.MethodDescriptorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getInputType()
Input and output type names.
|
com.google.protobuf.ByteString |
getInputTypeBytes()
Input and output type names.
|
java.lang.String |
getName()
optional string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 1; |
DescriptorProtos.MethodOptions |
getOptions()
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodOptions.Builder |
getOptionsBuilder()
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodOptionsOrBuilder |
getOptionsOrBuilder()
optional .google.protobuf.MethodOptions options = 4; |
java.lang.String |
getOutputType()
optional string output_type = 3; |
com.google.protobuf.ByteString |
getOutputTypeBytes()
optional string output_type = 3; |
boolean |
getServerStreaming()
Identifies if server streams multiple server messages
|
boolean |
hasClientStreaming()
Identifies if client streams multiple client messages
|
boolean |
hasInputType()
Input and output type names.
|
boolean |
hasName()
optional string name = 1; |
boolean |
hasOptions()
optional .google.protobuf.MethodOptions options = 4; |
boolean |
hasOutputType()
optional string output_type = 3; |
boolean |
hasServerStreaming()
Identifies if server streams multiple server messages
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DescriptorProtos.MethodDescriptorProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.MethodDescriptorProto.Builder |
mergeFrom(DescriptorProtos.MethodDescriptorProto other) |
DescriptorProtos.MethodDescriptorProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
DescriptorProtos.MethodDescriptorProto.Builder |
mergeOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodDescriptorProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DescriptorProtos.MethodDescriptorProto.Builder |
setClientStreaming(boolean value)
Identifies if client streams multiple client messages
|
DescriptorProtos.MethodDescriptorProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
DescriptorProtos.MethodDescriptorProto.Builder |
setInputType(java.lang.String value)
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
setInputTypeBytes(com.google.protobuf.ByteString value)
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
setName(java.lang.String value)
optional string name = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
setOptions(DescriptorProtos.MethodOptions.Builder builderForValue)
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodDescriptorProto.Builder |
setOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodDescriptorProto.Builder |
setOutputType(java.lang.String value)
optional string output_type = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
setOutputTypeBytes(com.google.protobuf.ByteString value)
optional string output_type = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
DescriptorProtos.MethodDescriptorProto.Builder |
setServerStreaming(boolean value)
Identifies if server streams multiple server messages
|
DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DescriptorProtos.MethodDescriptorProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.MethodDescriptorProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.MethodDescriptorProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.Builder mergeFrom(DescriptorProtos.MethodDescriptorProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public DescriptorProtos.MethodDescriptorProto.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<DescriptorProtos.MethodDescriptorProto.Builder>java.io.IOExceptionpublic boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic java.lang.String getName()
optional string name = 1;getName in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;public DescriptorProtos.MethodDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.MethodDescriptorProto.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1;public boolean hasInputType()
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;hasInputType in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic java.lang.String getInputType()
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;getInputType in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic com.google.protobuf.ByteString getInputTypeBytes()
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;getInputTypeBytes in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setInputType(java.lang.String value)
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;public DescriptorProtos.MethodDescriptorProto.Builder clearInputType()
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;public DescriptorProtos.MethodDescriptorProto.Builder setInputTypeBytes(com.google.protobuf.ByteString value)
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;public boolean hasOutputType()
optional string output_type = 3;hasOutputType in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic java.lang.String getOutputType()
optional string output_type = 3;getOutputType in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic com.google.protobuf.ByteString getOutputTypeBytes()
optional string output_type = 3;getOutputTypeBytes in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setOutputType(java.lang.String value)
optional string output_type = 3;public DescriptorProtos.MethodDescriptorProto.Builder clearOutputType()
optional string output_type = 3;public DescriptorProtos.MethodDescriptorProto.Builder setOutputTypeBytes(com.google.protobuf.ByteString value)
optional string output_type = 3;public boolean hasOptions()
optional .google.protobuf.MethodOptions options = 4;hasOptions in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodOptions getOptions()
optional .google.protobuf.MethodOptions options = 4;getOptions in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4;public DescriptorProtos.MethodDescriptorProto.Builder setOptions(DescriptorProtos.MethodOptions.Builder builderForValue)
optional .google.protobuf.MethodOptions options = 4;public DescriptorProtos.MethodDescriptorProto.Builder mergeOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4;public DescriptorProtos.MethodDescriptorProto.Builder clearOptions()
optional .google.protobuf.MethodOptions options = 4;public DescriptorProtos.MethodOptions.Builder getOptionsBuilder()
optional .google.protobuf.MethodOptions options = 4;public DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MethodOptions options = 4;getOptionsOrBuilder in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic boolean hasClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];hasClientStreaming in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic boolean getClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];getClientStreaming in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setClientStreaming(boolean value)
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];public DescriptorProtos.MethodDescriptorProto.Builder clearClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];public boolean hasServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];hasServerStreaming in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic boolean getServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];getServerStreaming in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setServerStreaming(boolean value)
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];public DescriptorProtos.MethodDescriptorProto.Builder clearServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];public final DescriptorProtos.MethodDescriptorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>public final DescriptorProtos.MethodDescriptorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>