Package org.sonar.python.types.protobuf
Class DescriptorsProtos.FunctionDescriptor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
org.sonar.python.types.protobuf.DescriptorsProtos.FunctionDescriptor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,DescriptorsProtos.FunctionDescriptorOrBuilder
- Enclosing class:
- DescriptorsProtos.FunctionDescriptor
public static final class DescriptorsProtos.FunctionDescriptor.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
implements DescriptorsProtos.FunctionDescriptorOrBuilder
Protobuf type
protoblog.FunctionDescriptor-
Method Summary
Modifier and TypeMethodDescriptionaddAllDecorators(Iterable<String> values) repeated string decorators = 6;addAllParameters(Iterable<? extends DescriptorsProtos.ParameterDescriptor> values) repeated .protoblog.ParameterDescriptor parameters = 3;addDecorators(String value) repeated string decorators = 6;addDecoratorsBytes(com.google.protobuf.ByteString value) repeated string decorators = 6;addParameters(int index, DescriptorsProtos.ParameterDescriptor value) repeated .protoblog.ParameterDescriptor parameters = 3;addParameters(int index, DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3;repeated .protoblog.ParameterDescriptor parameters = 3;addParameters(DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3;repeated .protoblog.ParameterDescriptor parameters = 3;addParametersBuilder(int index) repeated .protoblog.ParameterDescriptor parameters = 3;build()clear()optional string annotatedReturnType = 9;repeated string decorators = 6;.protoblog.LocationInFile definitionLocation = 8;string fullyQualifiedName = 2;bool hasDecorators = 7;bool isAsynchronous = 4;bool isInstanceMethod = 5;optional string name = 1;repeated .protoblog.ParameterDescriptor parameters = 3;optional string annotatedReturnType = 9;com.google.protobuf.ByteStringoptional string annotatedReturnType = 9;getDecorators(int index) repeated string decorators = 6;com.google.protobuf.ByteStringgetDecoratorsBytes(int index) repeated string decorators = 6;intrepeated string decorators = 6;com.google.protobuf.ProtocolStringListrepeated string decorators = 6;.protoblog.LocationInFile definitionLocation = 8;.protoblog.LocationInFile definitionLocation = 8;.protoblog.LocationInFile definitionLocation = 8;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring fullyQualifiedName = 2;com.google.protobuf.ByteStringstring fullyQualifiedName = 2;booleanbool hasDecorators = 7;booleanbool isAsynchronous = 4;booleanbool isInstanceMethod = 5;getName()optional string name = 1;com.google.protobuf.ByteStringoptional string name = 1;getParameters(int index) repeated .protoblog.ParameterDescriptor parameters = 3;getParametersBuilder(int index) repeated .protoblog.ParameterDescriptor parameters = 3;repeated .protoblog.ParameterDescriptor parameters = 3;intrepeated .protoblog.ParameterDescriptor parameters = 3;repeated .protoblog.ParameterDescriptor parameters = 3;getParametersOrBuilder(int index) repeated .protoblog.ParameterDescriptor parameters = 3;repeated .protoblog.ParameterDescriptor parameters = 3;booleanoptional string annotatedReturnType = 9;boolean.protoblog.LocationInFile definitionLocation = 8;booleanhasName()optional string name = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.protoblog.LocationInFile definitionLocation = 8;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeParameters(int index) repeated .protoblog.ParameterDescriptor parameters = 3;setAnnotatedReturnType(String value) optional string annotatedReturnType = 9;setAnnotatedReturnTypeBytes(com.google.protobuf.ByteString value) optional string annotatedReturnType = 9;setDecorators(int index, String value) repeated string decorators = 6;.protoblog.LocationInFile definitionLocation = 8;setDefinitionLocation(DescriptorsProtos.LocationInFile.Builder builderForValue) .protoblog.LocationInFile definitionLocation = 8;setFullyQualifiedName(String value) string fullyQualifiedName = 2;setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fullyQualifiedName = 2;setHasDecorators(boolean value) bool hasDecorators = 7;setIsAsynchronous(boolean value) bool isAsynchronous = 4;setIsInstanceMethod(boolean value) bool isInstanceMethod = 5;optional string name = 1;setNameBytes(com.google.protobuf.ByteString value) optional string name = 1;setParameters(int index, DescriptorsProtos.ParameterDescriptor value) repeated .protoblog.ParameterDescriptor parameters = 3;setParameters(int index, DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.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.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
-
mergeFrom
public DescriptorsProtos.FunctionDescriptor.Builder mergeFrom(DescriptorsProtos.FunctionDescriptor other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>
-
mergeFrom
public DescriptorsProtos.FunctionDescriptor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorsProtos.FunctionDescriptor.Builder>- Throws:
IOException
-
hasName
public boolean hasName()optional string name = 1;- Specified by:
hasNamein interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- Whether the name field is set.
-
getName
optional string name = 1;- Specified by:
getNamein interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The bytes for name.
-
setName
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorsProtos.FunctionDescriptor.Builder setNameBytes(com.google.protobuf.ByteString value) optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFullyQualifiedName
string fullyQualifiedName = 2;- Specified by:
getFullyQualifiedNamein interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The fullyQualifiedName.
-
getFullyQualifiedNameBytes
public com.google.protobuf.ByteString getFullyQualifiedNameBytes()string fullyQualifiedName = 2;- Specified by:
getFullyQualifiedNameBytesin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The bytes for fullyQualifiedName.
-
setFullyQualifiedName
string fullyQualifiedName = 2;- Parameters:
value- The fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
clearFullyQualifiedName
string fullyQualifiedName = 2;- Returns:
- This builder for chaining.
-
setFullyQualifiedNameBytes
public DescriptorsProtos.FunctionDescriptor.Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fullyQualifiedName = 2;- Parameters:
value- The bytes for fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
getParametersList
repeated .protoblog.ParameterDescriptor parameters = 3;- Specified by:
getParametersListin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
getParametersCount
public int getParametersCount()repeated .protoblog.ParameterDescriptor parameters = 3;- Specified by:
getParametersCountin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
getParameters
repeated .protoblog.ParameterDescriptor parameters = 3;- Specified by:
getParametersin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
setParameters
public DescriptorsProtos.FunctionDescriptor.Builder setParameters(int index, DescriptorsProtos.ParameterDescriptor value) repeated .protoblog.ParameterDescriptor parameters = 3; -
setParameters
public DescriptorsProtos.FunctionDescriptor.Builder setParameters(int index, DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3; -
addParameters
public DescriptorsProtos.FunctionDescriptor.Builder addParameters(DescriptorsProtos.ParameterDescriptor value) repeated .protoblog.ParameterDescriptor parameters = 3; -
addParameters
public DescriptorsProtos.FunctionDescriptor.Builder addParameters(int index, DescriptorsProtos.ParameterDescriptor value) repeated .protoblog.ParameterDescriptor parameters = 3; -
addParameters
public DescriptorsProtos.FunctionDescriptor.Builder addParameters(DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3; -
addParameters
public DescriptorsProtos.FunctionDescriptor.Builder addParameters(int index, DescriptorsProtos.ParameterDescriptor.Builder builderForValue) repeated .protoblog.ParameterDescriptor parameters = 3; -
addAllParameters
public DescriptorsProtos.FunctionDescriptor.Builder addAllParameters(Iterable<? extends DescriptorsProtos.ParameterDescriptor> values) repeated .protoblog.ParameterDescriptor parameters = 3; -
clearParameters
repeated .protoblog.ParameterDescriptor parameters = 3; -
removeParameters
repeated .protoblog.ParameterDescriptor parameters = 3; -
getParametersBuilder
repeated .protoblog.ParameterDescriptor parameters = 3; -
getParametersOrBuilder
repeated .protoblog.ParameterDescriptor parameters = 3;- Specified by:
getParametersOrBuilderin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
getParametersOrBuilderList
repeated .protoblog.ParameterDescriptor parameters = 3;- Specified by:
getParametersOrBuilderListin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
addParametersBuilder
repeated .protoblog.ParameterDescriptor parameters = 3; -
addParametersBuilder
repeated .protoblog.ParameterDescriptor parameters = 3; -
getParametersBuilderList
repeated .protoblog.ParameterDescriptor parameters = 3; -
getIsAsynchronous
public boolean getIsAsynchronous()bool isAsynchronous = 4;- Specified by:
getIsAsynchronousin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The isAsynchronous.
-
setIsAsynchronous
bool isAsynchronous = 4;- Parameters:
value- The isAsynchronous to set.- Returns:
- This builder for chaining.
-
clearIsAsynchronous
bool isAsynchronous = 4;- Returns:
- This builder for chaining.
-
getIsInstanceMethod
public boolean getIsInstanceMethod()bool isInstanceMethod = 5;- Specified by:
getIsInstanceMethodin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The isInstanceMethod.
-
setIsInstanceMethod
bool isInstanceMethod = 5;- Parameters:
value- The isInstanceMethod to set.- Returns:
- This builder for chaining.
-
clearIsInstanceMethod
bool isInstanceMethod = 5;- Returns:
- This builder for chaining.
-
getDecoratorsList
public com.google.protobuf.ProtocolStringList getDecoratorsList()repeated string decorators = 6;- Specified by:
getDecoratorsListin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- A list containing the decorators.
-
getDecoratorsCount
public int getDecoratorsCount()repeated string decorators = 6;- Specified by:
getDecoratorsCountin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The count of decorators.
-
getDecorators
repeated string decorators = 6;- Specified by:
getDecoratorsin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The decorators at the given index.
-
getDecoratorsBytes
public com.google.protobuf.ByteString getDecoratorsBytes(int index) repeated string decorators = 6;- Specified by:
getDecoratorsBytesin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the decorators at the given index.
-
setDecorators
repeated string decorators = 6;- Parameters:
index- The index to set the value at.value- The decorators to set.- Returns:
- This builder for chaining.
-
addDecorators
repeated string decorators = 6;- Parameters:
value- The decorators to add.- Returns:
- This builder for chaining.
-
addAllDecorators
repeated string decorators = 6;- Parameters:
values- The decorators to add.- Returns:
- This builder for chaining.
-
clearDecorators
repeated string decorators = 6;- Returns:
- This builder for chaining.
-
addDecoratorsBytes
public DescriptorsProtos.FunctionDescriptor.Builder addDecoratorsBytes(com.google.protobuf.ByteString value) repeated string decorators = 6;- Parameters:
value- The bytes of the decorators to add.- Returns:
- This builder for chaining.
-
getHasDecorators
public boolean getHasDecorators()bool hasDecorators = 7;- Specified by:
getHasDecoratorsin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The hasDecorators.
-
setHasDecorators
bool hasDecorators = 7;- Parameters:
value- The hasDecorators to set.- Returns:
- This builder for chaining.
-
clearHasDecorators
bool hasDecorators = 7;- Returns:
- This builder for chaining.
-
hasDefinitionLocation
public boolean hasDefinitionLocation().protoblog.LocationInFile definitionLocation = 8;- Specified by:
hasDefinitionLocationin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- Whether the definitionLocation field is set.
-
getDefinitionLocation
.protoblog.LocationInFile definitionLocation = 8;- Specified by:
getDefinitionLocationin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The definitionLocation.
-
setDefinitionLocation
public DescriptorsProtos.FunctionDescriptor.Builder setDefinitionLocation(DescriptorsProtos.LocationInFile value) .protoblog.LocationInFile definitionLocation = 8; -
setDefinitionLocation
public DescriptorsProtos.FunctionDescriptor.Builder setDefinitionLocation(DescriptorsProtos.LocationInFile.Builder builderForValue) .protoblog.LocationInFile definitionLocation = 8; -
mergeDefinitionLocation
public DescriptorsProtos.FunctionDescriptor.Builder mergeDefinitionLocation(DescriptorsProtos.LocationInFile value) .protoblog.LocationInFile definitionLocation = 8; -
clearDefinitionLocation
.protoblog.LocationInFile definitionLocation = 8; -
getDefinitionLocationBuilder
.protoblog.LocationInFile definitionLocation = 8; -
getDefinitionLocationOrBuilder
.protoblog.LocationInFile definitionLocation = 8;- Specified by:
getDefinitionLocationOrBuilderin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder
-
hasAnnotatedReturnType
public boolean hasAnnotatedReturnType()optional string annotatedReturnType = 9;- Specified by:
hasAnnotatedReturnTypein interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- Whether the annotatedReturnType field is set.
-
getAnnotatedReturnType
optional string annotatedReturnType = 9;- Specified by:
getAnnotatedReturnTypein interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The annotatedReturnType.
-
getAnnotatedReturnTypeBytes
public com.google.protobuf.ByteString getAnnotatedReturnTypeBytes()optional string annotatedReturnType = 9;- Specified by:
getAnnotatedReturnTypeBytesin interfaceDescriptorsProtos.FunctionDescriptorOrBuilder- Returns:
- The bytes for annotatedReturnType.
-
setAnnotatedReturnType
optional string annotatedReturnType = 9;- Parameters:
value- The annotatedReturnType to set.- Returns:
- This builder for chaining.
-
clearAnnotatedReturnType
optional string annotatedReturnType = 9;- Returns:
- This builder for chaining.
-
setAnnotatedReturnTypeBytes
public DescriptorsProtos.FunctionDescriptor.Builder setAnnotatedReturnTypeBytes(com.google.protobuf.ByteString value) optional string annotatedReturnType = 9;- Parameters:
value- The bytes for annotatedReturnType to set.- Returns:
- This builder for chaining.
-