public static final class DescriptorProtos.MethodDescriptorProto.Builder extends GeneratedMessageLite.Builder<DescriptorProtos.MethodDescriptorProto,DescriptorProtos.MethodDescriptorProto.Builder> implements DescriptorProtos.MethodDescriptorProtoOrBuilder
Describes a method of a service.Protobuf type
google.protobuf.MethodDescriptorProtoinstance, isBuilt| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.MethodDescriptorProto.Builder |
clearClientStreaming()
Identifies if client streams multiple client messages
|
DescriptorProtos.MethodDescriptorProto.Builder |
clearInputType()
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
clearName()
optional string name = 1; |
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
|
boolean |
getClientStreaming()
Identifies if client streams multiple client messages
|
String |
getInputType()
Input and output type names.
|
ByteString |
getInputTypeBytes()
Input and output type names.
|
String |
getName()
optional string name = 1; |
ByteString |
getNameBytes()
optional string name = 1; |
DescriptorProtos.MethodOptions |
getOptions()
optional .google.protobuf.MethodOptions options = 4; |
String |
getOutputType()
optional string output_type = 3; |
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
|
DescriptorProtos.MethodDescriptorProto.Builder |
mergeOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4; |
DescriptorProtos.MethodDescriptorProto.Builder |
setClientStreaming(boolean value)
Identifies if client streams multiple client messages
|
DescriptorProtos.MethodDescriptorProto.Builder |
setInputType(String value)
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
setInputTypeBytes(ByteString value)
Input and output type names.
|
DescriptorProtos.MethodDescriptorProto.Builder |
setName(String value)
optional string name = 1; |
DescriptorProtos.MethodDescriptorProto.Builder |
setNameBytes(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(String value)
optional string output_type = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
setOutputTypeBytes(ByteString value)
optional string output_type = 3; |
DescriptorProtos.MethodDescriptorProto.Builder |
setServerStreaming(boolean value)
Identifies if server streams multiple server messages
|
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 boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic String getName()
optional string name = 1;getName in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setName(String value)
optional string name = 1;public DescriptorProtos.MethodDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.MethodDescriptorProto.Builder setNameBytes(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 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 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(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(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 String getOutputType()
optional string output_type = 3;getOutputType in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic ByteString getOutputTypeBytes()
optional string output_type = 3;getOutputTypeBytes in interface DescriptorProtos.MethodDescriptorProtoOrBuilderpublic DescriptorProtos.MethodDescriptorProto.Builder setOutputType(String value)
optional string output_type = 3;public DescriptorProtos.MethodDescriptorProto.Builder clearOutputType()
optional string output_type = 3;public DescriptorProtos.MethodDescriptorProto.Builder setOutputTypeBytes(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 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];Copyright © 2008–2016 Google. All rights reserved.