public static final class DescriptorProtos.MethodOptions.Builder extends GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MethodOptions,DescriptorProtos.MethodOptions.Builder> implements DescriptorProtos.MethodOptionsOrBuilder
Protobuf type google.protobuf.MethodOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder<BuilderType> > GeneratedMessageV3.ExtendableBuilder > DescriptorProtos.MethodOptions.BuilderImplements
DescriptorProtos.MethodOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptors.Descriptor |
Methods
<Type>addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,List<Type>> extension, Type value)
public DescriptorProtos.MethodOptions.Builder <Type>addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,List<Type>> extension, Type value)
Append a value to a repeated extension.
Parameters | |
---|---|
Name | Description |
extension |
GeneratedExtension<MethodOptions,List<Type>> |
value |
Type |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
<Type>clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,?> extension)
public DescriptorProtos.MethodOptions.Builder <Type>clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,?> extension)
Clear an extension.
Parameter | |
---|---|
Name | Description |
extension |
GeneratedExtension<MethodOptions,?> |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
<Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,Type> extension, Type value)
public DescriptorProtos.MethodOptions.Builder <Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,Type> extension, Type value)
Set the value of an extension.
Parameters | |
---|---|
Name | Description |
extension |
GeneratedExtension<MethodOptions,Type> |
value |
Type |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
<Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,List<Type>> extension, int index, Type value)
public DescriptorProtos.MethodOptions.Builder <Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MethodOptions,List<Type>> extension, int index, Type value)
Set the value of one element of a repeated extension.
Parameters | |
---|---|
Name | Description |
extension |
GeneratedExtension<MethodOptions,List<Type>> |
index |
int |
value |
Type |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
public DescriptorProtos.MethodOptions.Builder addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.MethodOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.MethodOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
value |
DescriptorProtos.UninterpretedOption |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.MethodOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
builderForValue |
DescriptorProtos.UninterpretedOption.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.MethodOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
DescriptorProtos.UninterpretedOption |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.MethodOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
DescriptorProtos.UninterpretedOption.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
addUninterpretedOptionBuilder()
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
DescriptorProtos.UninterpretedOption.Builder |
addUninterpretedOptionBuilder(int index)
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.UninterpretedOption.Builder |
build()
public DescriptorProtos.MethodOptions build()
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions |
buildPartial()
public DescriptorProtos.MethodOptions buildPartial()
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions |
clear()
public DescriptorProtos.MethodOptions.Builder clear()
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
clearDeprecated()
public DescriptorProtos.MethodOptions.Builder clearDeprecated()
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DescriptorProtos.MethodOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
clearIdempotencyLevel()
public DescriptorProtos.MethodOptions.Builder clearIdempotencyLevel()
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DescriptorProtos.MethodOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
TODO(jieluo): Clear it when all subclasses have implemented this method.
Parameter | |
---|---|
Name | Description |
oneof |
Descriptors.OneofDescriptor |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
clearUninterpretedOption()
public DescriptorProtos.MethodOptions.Builder clearUninterpretedOption()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
clone()
public DescriptorProtos.MethodOptions.Builder clone()
Clones the Builder.
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
getDefaultInstanceForType()
public DescriptorProtos.MethodOptions getDefaultInstanceForType()
Get an instance of the type with no fields set. Because no fields are set, all getters for
singular fields will return default values and repeated fields will appear empty. This may or
may not be a singleton. This differs from the getDefaultInstance()
method of generated
message classes in that this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific class. They return the
same thing.
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions |
getDeprecated()
public boolean getDeprecated()
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns | |
---|---|
Type | Description |
boolean |
The deprecated. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Get the message's type's descriptor. This differs from the getDescriptor()
method of
generated message classes in that this method is an abstract method of the Message
interface whereas getDescriptor()
is a static method of a specific class. They return
the same thing.
Returns | |
---|---|
Type | Description |
Descriptors.Descriptor |
getIdempotencyLevel()
public DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel()
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.IdempotencyLevel |
The idempotencyLevel. |
getUninterpretedOption(int index)
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.UninterpretedOption |
getUninterpretedOptionBuilder(int index)
public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.UninterpretedOption.Builder |
getUninterpretedOptionBuilderList()
public List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
List<Builder> |
getUninterpretedOptionCount()
public int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
int |
getUninterpretedOptionList()
public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
List<UninterpretedOption> |
getUninterpretedOptionOrBuilder(int index)
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.UninterpretedOptionOrBuilder |
getUninterpretedOptionOrBuilderList()
public List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> |
hasDeprecated()
public boolean hasDeprecated()
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns | |
---|---|
Type | Description |
boolean |
Whether the deprecated field is set. |
hasIdempotencyLevel()
public boolean hasIdempotencyLevel()
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns | |
---|---|
Type | Description |
boolean |
Whether the idempotencyLevel field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.
Returns | |
---|---|
Type | Description |
GeneratedMessageV3.FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false otherwise.
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DescriptorProtos.MethodOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions
that you want to be able to parse must be registered in extensionRegistry
. Extensions
not in the registry will be treated as unknown fields.
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(DescriptorProtos.MethodOptions other)
public DescriptorProtos.MethodOptions.Builder mergeFrom(DescriptorProtos.MethodOptions other)
Parameter | |
---|---|
Name | Description |
other |
DescriptorProtos.MethodOptions |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
mergeFrom(Message other)
public DescriptorProtos.MethodOptions.Builder mergeFrom(Message other)
Merge other
into the message being built. other
must have the exact same type
as this
(i.e. getDescriptorForType() == other.getDescriptorForType()
).
Merging occurs as follows. For each field:
- For singular primitive fields, if the field is set in
other
, thenother
's value overwrites the value in this message. - For singular message fields, if the field is set in
other
, it is merged into the corresponding sub-message of this message using the same merging rules. - For repeated fields, the elements in
other
are concatenated with the elements in this message. For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.
This is equivalent to the
Message::MergeFrom
method in C++.
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.MethodOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Merge some unknown fields into the UnknownFieldSet for this message.
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
removeUninterpretedOption(int index)
public DescriptorProtos.MethodOptions.Builder removeUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
setDeprecated(boolean value)
public DescriptorProtos.MethodOptions.Builder setDeprecated(boolean value)
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Parameter | |
---|---|
Name | Description |
value |
boolean The deprecated to set. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.MethodOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
setIdempotencyLevel(DescriptorProtos.MethodOptions.IdempotencyLevel value)
public DescriptorProtos.MethodOptions.Builder setIdempotencyLevel(DescriptorProtos.MethodOptions.IdempotencyLevel value)
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Parameter | |
---|---|
Name | Description |
value |
DescriptorProtos.MethodOptions.IdempotencyLevel The idempotencyLevel to set. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DescriptorProtos.MethodOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
Descriptors.FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.MethodOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
DescriptorProtos.UninterpretedOption |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.MethodOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
DescriptorProtos.UninterpretedOption.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.MethodOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DescriptorProtos.MethodOptions.Builder |