Package com.google.protobuf
Class DescriptorProtos.ServiceDescriptorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.ServiceDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder
-
- All Implemented Interfaces:
DescriptorProtos.ServiceDescriptorProtoOrBuilder,MessageLite.Builder,MessageLiteOrBuilder,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.ServiceDescriptorProto
public static final class DescriptorProtos.ServiceDescriptorProto.Builder extends GeneratedMessageLite.Builder<DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.ServiceDescriptorProto.Builder> implements DescriptorProtos.ServiceDescriptorProtoOrBuilder
Protobuf typegoogle.protobuf.ServiceDescriptorProto
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.ServiceDescriptorProto.BuilderaddAllMethod(java.lang.Iterable<? extends DescriptorProtos.MethodDescriptorProto> values)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderaddMethod(int index, DescriptorProtos.MethodDescriptorProto value)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderaddMethod(int index, DescriptorProtos.MethodDescriptorProto.Builder builderForValue)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderaddMethod(DescriptorProtos.MethodDescriptorProto value)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderaddMethod(DescriptorProtos.MethodDescriptorProto.Builder builderForValue)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderclearMethod()repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuilderclearName()optional string name = 1 [json_name = "name"];DescriptorProtos.ServiceDescriptorProto.BuilderclearOptions()optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];DescriptorProtos.MethodDescriptorProtogetMethod(int index)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];intgetMethodCount()repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];java.util.List<DescriptorProtos.MethodDescriptorProto>getMethodList()repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];java.lang.StringgetName()optional string name = 1 [json_name = "name"];ByteStringgetNameBytes()optional string name = 1 [json_name = "name"];DescriptorProtos.ServiceOptionsgetOptions()optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];booleanhasName()optional string name = 1 [json_name = "name"];booleanhasOptions()optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];DescriptorProtos.ServiceDescriptorProto.BuildermergeOptions(DescriptorProtos.ServiceOptions value)optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];DescriptorProtos.ServiceDescriptorProto.BuilderremoveMethod(int index)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuildersetMethod(int index, DescriptorProtos.MethodDescriptorProto value)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuildersetMethod(int index, DescriptorProtos.MethodDescriptorProto.Builder builderForValue)repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];DescriptorProtos.ServiceDescriptorProto.BuildersetName(java.lang.String value)optional string name = 1 [json_name = "name"];DescriptorProtos.ServiceDescriptorProto.BuildersetNameBytes(ByteString value)optional string name = 1 [json_name = "name"];DescriptorProtos.ServiceDescriptorProto.BuildersetOptions(DescriptorProtos.ServiceOptions value)optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];DescriptorProtos.ServiceDescriptorProto.BuildersetOptions(DescriptorProtos.ServiceOptions.Builder builderForValue)optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
hasName
public boolean hasName()
optional string name = 1 [json_name = "name"];- Specified by:
hasNamein interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.ServiceDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.ServiceDescriptorProto.Builder clearName()
optional string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.ServiceDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMethodList
public java.util.List<DescriptorProtos.MethodDescriptorProto> getMethodList()
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];- Specified by:
getMethodListin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder
-
getMethodCount
public int getMethodCount()
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];- Specified by:
getMethodCountin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder
-
getMethod
public DescriptorProtos.MethodDescriptorProto getMethod(int index)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];- Specified by:
getMethodin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder
-
setMethod
public DescriptorProtos.ServiceDescriptorProto.Builder setMethod(int index, DescriptorProtos.MethodDescriptorProto value)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
setMethod
public DescriptorProtos.ServiceDescriptorProto.Builder setMethod(int index, DescriptorProtos.MethodDescriptorProto.Builder builderForValue)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
addMethod
public DescriptorProtos.ServiceDescriptorProto.Builder addMethod(DescriptorProtos.MethodDescriptorProto value)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
addMethod
public DescriptorProtos.ServiceDescriptorProto.Builder addMethod(int index, DescriptorProtos.MethodDescriptorProto value)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
addMethod
public DescriptorProtos.ServiceDescriptorProto.Builder addMethod(DescriptorProtos.MethodDescriptorProto.Builder builderForValue)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
addMethod
public DescriptorProtos.ServiceDescriptorProto.Builder addMethod(int index, DescriptorProtos.MethodDescriptorProto.Builder builderForValue)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
addAllMethod
public DescriptorProtos.ServiceDescriptorProto.Builder addAllMethod(java.lang.Iterable<? extends DescriptorProtos.MethodDescriptorProto> values)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
clearMethod
public DescriptorProtos.ServiceDescriptorProto.Builder clearMethod()
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
removeMethod
public DescriptorProtos.ServiceDescriptorProto.Builder removeMethod(int index)
repeated .google.protobuf.MethodDescriptorProto method = 2 [json_name = "method"];
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];- Specified by:
hasOptionsin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.ServiceOptions getOptions()
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];- Specified by:
getOptionsin interfaceDescriptorProtos.ServiceDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
public DescriptorProtos.ServiceDescriptorProto.Builder setOptions(DescriptorProtos.ServiceOptions value)
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];
-
setOptions
public DescriptorProtos.ServiceDescriptorProto.Builder setOptions(DescriptorProtos.ServiceOptions.Builder builderForValue)
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];
-
mergeOptions
public DescriptorProtos.ServiceDescriptorProto.Builder mergeOptions(DescriptorProtos.ServiceOptions value)
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];
-
clearOptions
public DescriptorProtos.ServiceDescriptorProto.Builder clearOptions()
optional .google.protobuf.ServiceOptions options = 3 [json_name = "options"];
-
-