Package com.google.protobuf
Class DescriptorProtos.MethodDescriptorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder
-
- All Implemented Interfaces:
DescriptorProtos.MethodDescriptorProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.MethodDescriptorProto
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 typegoogle.protobuf.MethodDescriptorProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.MethodDescriptorProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DescriptorProtos.MethodDescriptorProtobuild()DescriptorProtos.MethodDescriptorProtobuildPartial()DescriptorProtos.MethodDescriptorProto.Builderclear()DescriptorProtos.MethodDescriptorProto.BuilderclearClientStreaming()Identifies if client streams multiple client messagesDescriptorProtos.MethodDescriptorProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DescriptorProtos.MethodDescriptorProto.BuilderclearInputType()Input and output type names.DescriptorProtos.MethodDescriptorProto.BuilderclearName()optional string name = 1;DescriptorProtos.MethodDescriptorProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DescriptorProtos.MethodDescriptorProto.BuilderclearOptions()optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodDescriptorProto.BuilderclearOutputType()optional string output_type = 3;DescriptorProtos.MethodDescriptorProto.BuilderclearServerStreaming()Identifies if server streams multiple server messagesDescriptorProtos.MethodDescriptorProto.Builderclone()booleangetClientStreaming()Identifies if client streams multiple client messagesDescriptorProtos.MethodDescriptorProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetInputType()Input and output type names.com.google.protobuf.ByteStringgetInputTypeBytes()Input and output type names.java.lang.StringgetName()optional string name = 1;com.google.protobuf.ByteStringgetNameBytes()optional string name = 1;DescriptorProtos.MethodOptionsgetOptions()optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodOptions.BuildergetOptionsBuilder()optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.MethodOptions options = 4;java.lang.StringgetOutputType()optional string output_type = 3;com.google.protobuf.ByteStringgetOutputTypeBytes()optional string output_type = 3;booleangetServerStreaming()Identifies if server streams multiple server messagesbooleanhasClientStreaming()Identifies if client streams multiple client messagesbooleanhasInputType()Input and output type names.booleanhasName()optional string name = 1;booleanhasOptions()optional .google.protobuf.MethodOptions options = 4;booleanhasOutputType()optional string output_type = 3;booleanhasServerStreaming()Identifies if server streams multiple server messagesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DescriptorProtos.MethodDescriptorProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DescriptorProtos.MethodDescriptorProto.BuildermergeFrom(DescriptorProtos.MethodDescriptorProto other)DescriptorProtos.MethodDescriptorProto.BuildermergeFrom(com.google.protobuf.Message other)DescriptorProtos.MethodDescriptorProto.BuildermergeOptions(DescriptorProtos.MethodOptions value)optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodDescriptorProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DescriptorProtos.MethodDescriptorProto.BuildersetClientStreaming(boolean value)Identifies if client streams multiple client messagesDescriptorProtos.MethodDescriptorProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DescriptorProtos.MethodDescriptorProto.BuildersetInputType(java.lang.String value)Input and output type names.DescriptorProtos.MethodDescriptorProto.BuildersetInputTypeBytes(com.google.protobuf.ByteString value)Input and output type names.DescriptorProtos.MethodDescriptorProto.BuildersetName(java.lang.String value)optional string name = 1;DescriptorProtos.MethodDescriptorProto.BuildersetNameBytes(com.google.protobuf.ByteString value)optional string name = 1;DescriptorProtos.MethodDescriptorProto.BuildersetOptions(DescriptorProtos.MethodOptions value)optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodDescriptorProto.BuildersetOptions(DescriptorProtos.MethodOptions.Builder builderForValue)optional .google.protobuf.MethodOptions options = 4;DescriptorProtos.MethodDescriptorProto.BuildersetOutputType(java.lang.String value)optional string output_type = 3;DescriptorProtos.MethodDescriptorProto.BuildersetOutputTypeBytes(com.google.protobuf.ByteString value)optional string output_type = 3;DescriptorProtos.MethodDescriptorProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)DescriptorProtos.MethodDescriptorProto.BuildersetServerStreaming(boolean value)Identifies if server streams multiple server messagesDescriptorProtos.MethodDescriptorProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
clear
public DescriptorProtos.MethodDescriptorProto.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
getDefaultInstanceForType
public DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DescriptorProtos.MethodDescriptorProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DescriptorProtos.MethodDescriptorProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DescriptorProtos.MethodDescriptorProto.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
setField
public DescriptorProtos.MethodDescriptorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
clearField
public DescriptorProtos.MethodDescriptorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
clearOneof
public DescriptorProtos.MethodDescriptorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
setRepeatedField
public DescriptorProtos.MethodDescriptorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
addRepeatedField
public DescriptorProtos.MethodDescriptorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.MethodDescriptorProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.MethodDescriptorProto.Builder mergeFrom(DescriptorProtos.MethodDescriptorProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.MethodDescriptorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.MethodDescriptorProto.Builder>- Throws:
java.io.IOException
-
hasName
public boolean hasName()
optional string name = 1;- Specified by:
hasNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.MethodDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.MethodDescriptorProto.Builder clearName()
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.MethodDescriptorProto.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasInputType
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;- Specified by:
hasInputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the inputType field is set.
-
getInputType
public 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;- Specified by:
getInputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The inputType.
-
getInputTypeBytes
public 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;- Specified by:
getInputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for inputType.
-
setInputType
public 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;- Parameters:
value- The inputType to set.- Returns:
- This builder for chaining.
-
clearInputType
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;- Returns:
- This builder for chaining.
-
setInputTypeBytes
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;- Parameters:
value- The bytes for inputType to set.- Returns:
- This builder for chaining.
-
hasOutputType
public boolean hasOutputType()
optional string output_type = 3;- Specified by:
hasOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the outputType field is set.
-
getOutputType
public java.lang.String getOutputType()
optional string output_type = 3;- Specified by:
getOutputTypein interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The outputType.
-
getOutputTypeBytes
public com.google.protobuf.ByteString getOutputTypeBytes()
optional string output_type = 3;- Specified by:
getOutputTypeBytesin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The bytes for outputType.
-
setOutputType
public DescriptorProtos.MethodDescriptorProto.Builder setOutputType(java.lang.String value)
optional string output_type = 3;- Parameters:
value- The outputType to set.- Returns:
- This builder for chaining.
-
clearOutputType
public DescriptorProtos.MethodDescriptorProto.Builder clearOutputType()
optional string output_type = 3;- Returns:
- This builder for chaining.
-
setOutputTypeBytes
public DescriptorProtos.MethodDescriptorProto.Builder setOutputTypeBytes(com.google.protobuf.ByteString value)
optional string output_type = 3;- Parameters:
value- The bytes for outputType to set.- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
hasOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.MethodOptions getOptions()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
getOptionsin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
public DescriptorProtos.MethodDescriptorProto.Builder setOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4;
-
setOptions
public DescriptorProtos.MethodDescriptorProto.Builder setOptions(DescriptorProtos.MethodOptions.Builder builderForValue)
optional .google.protobuf.MethodOptions options = 4;
-
mergeOptions
public DescriptorProtos.MethodDescriptorProto.Builder mergeOptions(DescriptorProtos.MethodOptions value)
optional .google.protobuf.MethodOptions options = 4;
-
clearOptions
public DescriptorProtos.MethodDescriptorProto.Builder clearOptions()
optional .google.protobuf.MethodOptions options = 4;
-
getOptionsBuilder
public DescriptorProtos.MethodOptions.Builder getOptionsBuilder()
optional .google.protobuf.MethodOptions options = 4;
-
getOptionsOrBuilder
public DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MethodOptions options = 4;- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder
-
hasClientStreaming
public boolean hasClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];- Specified by:
hasClientStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the clientStreaming field is set.
-
getClientStreaming
public boolean getClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];- Specified by:
getClientStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The clientStreaming.
-
setClientStreaming
public DescriptorProtos.MethodDescriptorProto.Builder setClientStreaming(boolean value)
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];- Parameters:
value- The clientStreaming to set.- Returns:
- This builder for chaining.
-
clearClientStreaming
public DescriptorProtos.MethodDescriptorProto.Builder clearClientStreaming()
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];- Returns:
- This builder for chaining.
-
hasServerStreaming
public boolean hasServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];- Specified by:
hasServerStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- Whether the serverStreaming field is set.
-
getServerStreaming
public boolean getServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];- Specified by:
getServerStreamingin interfaceDescriptorProtos.MethodDescriptorProtoOrBuilder- Returns:
- The serverStreaming.
-
setServerStreaming
public DescriptorProtos.MethodDescriptorProto.Builder setServerStreaming(boolean value)
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];- Parameters:
value- The serverStreaming to set.- Returns:
- This builder for chaining.
-
clearServerStreaming
public DescriptorProtos.MethodDescriptorProto.Builder clearServerStreaming()
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];- Returns:
- This builder for chaining.
-
setUnknownFields
public final DescriptorProtos.MethodDescriptorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
mergeUnknownFields
public final DescriptorProtos.MethodDescriptorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.MethodDescriptorProto.Builder>
-
-