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.MethodDescriptorProto
instance, 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, mergeFrom
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public boolean hasName()
optional string name = 1;
hasName
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public String getName()
optional string name = 1;
getName
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public ByteString getNameBytes()
optional string name = 1;
getNameBytes
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public String getOutputType()
optional string output_type = 3;
getOutputType
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public ByteString getOutputTypeBytes()
optional string output_type = 3;
getOutputTypeBytes
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public DescriptorProtos.MethodOptions getOptions()
optional .google.protobuf.MethodOptions options = 4;
getOptions
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public boolean getClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
getClientStreaming
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public 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.MethodDescriptorProtoOrBuilder
public boolean getServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
getServerStreaming
in interface DescriptorProtos.MethodDescriptorProtoOrBuilder
public 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.