Package org.sonar.python.types.protobuf
Class SymbolsProtos.FunctionSymbol.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SymbolsProtos.FunctionSymbol.Builder>
org.sonar.python.types.protobuf.SymbolsProtos.FunctionSymbol.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SymbolsProtos.FunctionSymbolOrBuilder
- Enclosing class:
- SymbolsProtos.FunctionSymbol
public static final class SymbolsProtos.FunctionSymbol.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SymbolsProtos.FunctionSymbol.Builder>
implements SymbolsProtos.FunctionSymbolOrBuilder
Protobuf type
protoblog.FunctionSymbol-
Method Summary
Modifier and TypeMethodDescriptionaddAllParameters(Iterable<? extends SymbolsProtos.ParameterSymbol> values) repeated .protoblog.ParameterSymbol parameters = 5;addAllResolvedDecoratorNames(Iterable<String> values) repeated string resolved_decorator_names = 7;addAllValidFor(Iterable<String> values) repeated string valid_for = 15;addParameters(int index, SymbolsProtos.ParameterSymbol value) repeated .protoblog.ParameterSymbol parameters = 5;addParameters(int index, SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5;repeated .protoblog.ParameterSymbol parameters = 5;addParameters(SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5;repeated .protoblog.ParameterSymbol parameters = 5;addParametersBuilder(int index) repeated .protoblog.ParameterSymbol parameters = 5;addResolvedDecoratorNames(String value) repeated string resolved_decorator_names = 7;addResolvedDecoratorNamesBytes(com.google.protobuf.ByteString value) repeated string resolved_decorator_names = 7;addValidFor(String value) repeated string valid_for = 15;addValidForBytes(com.google.protobuf.ByteString value) repeated string valid_for = 15;build()clear()string fully_qualified_name = 2;bool has_decorators = 6;bool is_abstract = 8;bool is_asynchronous = 9;bool is_class_method = 14;bool is_final = 10;bool is_overload = 11;bool is_property = 12;bool is_static = 13;string name = 1;repeated .protoblog.ParameterSymbol parameters = 5;repeated string resolved_decorator_names = 7;optional .protoblog.Type return_annotation = 4;repeated string valid_for = 15;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring fully_qualified_name = 2;com.google.protobuf.ByteStringstring fully_qualified_name = 2;booleanbool has_decorators = 6;booleanbool is_abstract = 8;booleanbool is_asynchronous = 9;booleanbool is_class_method = 14;booleanbool is_final = 10;booleanbool is_overload = 11;booleanbool is_property = 12;booleanbool is_static = 13;getName()string name = 1;com.google.protobuf.ByteStringstring name = 1;getParameters(int index) repeated .protoblog.ParameterSymbol parameters = 5;getParametersBuilder(int index) repeated .protoblog.ParameterSymbol parameters = 5;repeated .protoblog.ParameterSymbol parameters = 5;intrepeated .protoblog.ParameterSymbol parameters = 5;repeated .protoblog.ParameterSymbol parameters = 5;getParametersOrBuilder(int index) repeated .protoblog.ParameterSymbol parameters = 5;List<? extends SymbolsProtos.ParameterSymbolOrBuilder>repeated .protoblog.ParameterSymbol parameters = 5;getResolvedDecoratorNames(int index) repeated string resolved_decorator_names = 7;com.google.protobuf.ByteStringgetResolvedDecoratorNamesBytes(int index) repeated string resolved_decorator_names = 7;intrepeated string resolved_decorator_names = 7;com.google.protobuf.ProtocolStringListrepeated string resolved_decorator_names = 7;optional .protoblog.Type return_annotation = 4;optional .protoblog.Type return_annotation = 4;optional .protoblog.Type return_annotation = 4;getValidFor(int index) repeated string valid_for = 15;com.google.protobuf.ByteStringgetValidForBytes(int index) repeated string valid_for = 15;intrepeated string valid_for = 15;com.google.protobuf.ProtocolStringListrepeated string valid_for = 15;booleanoptional .protoblog.Type return_annotation = 4;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) optional .protoblog.Type return_annotation = 4;removeParameters(int index) repeated .protoblog.ParameterSymbol parameters = 5;setFullyQualifiedName(String value) string fully_qualified_name = 2;setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fully_qualified_name = 2;setHasDecorators(boolean value) bool has_decorators = 6;setIsAbstract(boolean value) bool is_abstract = 8;setIsAsynchronous(boolean value) bool is_asynchronous = 9;setIsClassMethod(boolean value) bool is_class_method = 14;setIsFinal(boolean value) bool is_final = 10;setIsOverload(boolean value) bool is_overload = 11;setIsProperty(boolean value) bool is_property = 12;setIsStatic(boolean value) bool is_static = 13;string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setParameters(int index, SymbolsProtos.ParameterSymbol value) repeated .protoblog.ParameterSymbol parameters = 5;setParameters(int index, SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5;setResolvedDecoratorNames(int index, String value) repeated string resolved_decorator_names = 7;optional .protoblog.Type return_annotation = 4;setReturnAnnotation(SymbolsProtos.Type.Builder builderForValue) optional .protoblog.Type return_annotation = 4;setValidFor(int index, String value) repeated string valid_for = 15;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<SymbolsProtos.FunctionSymbol.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<SymbolsProtos.FunctionSymbol.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<SymbolsProtos.FunctionSymbol.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<SymbolsProtos.FunctionSymbol.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SymbolsProtos.FunctionSymbol.Builder>
-
mergeFrom
public SymbolsProtos.FunctionSymbol.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<SymbolsProtos.FunctionSymbol.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;- Specified by:
getNameBytesin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFullyQualifiedName
string fully_qualified_name = 2;- Specified by:
getFullyQualifiedNamein interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The fullyQualifiedName.
-
getFullyQualifiedNameBytes
public com.google.protobuf.ByteString getFullyQualifiedNameBytes()string fully_qualified_name = 2;- Specified by:
getFullyQualifiedNameBytesin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The bytes for fullyQualifiedName.
-
setFullyQualifiedName
string fully_qualified_name = 2;- Parameters:
value- The fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
clearFullyQualifiedName
string fully_qualified_name = 2;- Returns:
- This builder for chaining.
-
setFullyQualifiedNameBytes
public SymbolsProtos.FunctionSymbol.Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fully_qualified_name = 2;- Parameters:
value- The bytes for fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
hasReturnAnnotation
public boolean hasReturnAnnotation()optional .protoblog.Type return_annotation = 4;- Specified by:
hasReturnAnnotationin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- Whether the returnAnnotation field is set.
-
getReturnAnnotation
optional .protoblog.Type return_annotation = 4;- Specified by:
getReturnAnnotationin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The returnAnnotation.
-
setReturnAnnotation
optional .protoblog.Type return_annotation = 4; -
setReturnAnnotation
public SymbolsProtos.FunctionSymbol.Builder setReturnAnnotation(SymbolsProtos.Type.Builder builderForValue) optional .protoblog.Type return_annotation = 4; -
mergeReturnAnnotation
optional .protoblog.Type return_annotation = 4; -
clearReturnAnnotation
optional .protoblog.Type return_annotation = 4; -
getReturnAnnotationBuilder
optional .protoblog.Type return_annotation = 4; -
getReturnAnnotationOrBuilder
optional .protoblog.Type return_annotation = 4;- Specified by:
getReturnAnnotationOrBuilderin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
getParametersList
repeated .protoblog.ParameterSymbol parameters = 5;- Specified by:
getParametersListin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
getParametersCount
public int getParametersCount()repeated .protoblog.ParameterSymbol parameters = 5;- Specified by:
getParametersCountin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
getParameters
repeated .protoblog.ParameterSymbol parameters = 5;- Specified by:
getParametersin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
setParameters
public SymbolsProtos.FunctionSymbol.Builder setParameters(int index, SymbolsProtos.ParameterSymbol value) repeated .protoblog.ParameterSymbol parameters = 5; -
setParameters
public SymbolsProtos.FunctionSymbol.Builder setParameters(int index, SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5; -
addParameters
repeated .protoblog.ParameterSymbol parameters = 5; -
addParameters
public SymbolsProtos.FunctionSymbol.Builder addParameters(int index, SymbolsProtos.ParameterSymbol value) repeated .protoblog.ParameterSymbol parameters = 5; -
addParameters
public SymbolsProtos.FunctionSymbol.Builder addParameters(SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5; -
addParameters
public SymbolsProtos.FunctionSymbol.Builder addParameters(int index, SymbolsProtos.ParameterSymbol.Builder builderForValue) repeated .protoblog.ParameterSymbol parameters = 5; -
addAllParameters
public SymbolsProtos.FunctionSymbol.Builder addAllParameters(Iterable<? extends SymbolsProtos.ParameterSymbol> values) repeated .protoblog.ParameterSymbol parameters = 5; -
clearParameters
repeated .protoblog.ParameterSymbol parameters = 5; -
removeParameters
repeated .protoblog.ParameterSymbol parameters = 5; -
getParametersBuilder
repeated .protoblog.ParameterSymbol parameters = 5; -
getParametersOrBuilder
repeated .protoblog.ParameterSymbol parameters = 5;- Specified by:
getParametersOrBuilderin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
getParametersOrBuilderList
repeated .protoblog.ParameterSymbol parameters = 5;- Specified by:
getParametersOrBuilderListin interfaceSymbolsProtos.FunctionSymbolOrBuilder
-
addParametersBuilder
repeated .protoblog.ParameterSymbol parameters = 5; -
addParametersBuilder
repeated .protoblog.ParameterSymbol parameters = 5; -
getParametersBuilderList
repeated .protoblog.ParameterSymbol parameters = 5; -
getHasDecorators
public boolean getHasDecorators()bool has_decorators = 6;- Specified by:
getHasDecoratorsin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The hasDecorators.
-
setHasDecorators
bool has_decorators = 6;- Parameters:
value- The hasDecorators to set.- Returns:
- This builder for chaining.
-
clearHasDecorators
bool has_decorators = 6;- Returns:
- This builder for chaining.
-
getResolvedDecoratorNamesList
public com.google.protobuf.ProtocolStringList getResolvedDecoratorNamesList()repeated string resolved_decorator_names = 7;- Specified by:
getResolvedDecoratorNamesListin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- A list containing the resolvedDecoratorNames.
-
getResolvedDecoratorNamesCount
public int getResolvedDecoratorNamesCount()repeated string resolved_decorator_names = 7;- Specified by:
getResolvedDecoratorNamesCountin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The count of resolvedDecoratorNames.
-
getResolvedDecoratorNames
repeated string resolved_decorator_names = 7;- Specified by:
getResolvedDecoratorNamesin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resolvedDecoratorNames at the given index.
-
getResolvedDecoratorNamesBytes
public com.google.protobuf.ByteString getResolvedDecoratorNamesBytes(int index) repeated string resolved_decorator_names = 7;- Specified by:
getResolvedDecoratorNamesBytesin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resolvedDecoratorNames at the given index.
-
setResolvedDecoratorNames
repeated string resolved_decorator_names = 7;- Parameters:
index- The index to set the value at.value- The resolvedDecoratorNames to set.- Returns:
- This builder for chaining.
-
addResolvedDecoratorNames
repeated string resolved_decorator_names = 7;- Parameters:
value- The resolvedDecoratorNames to add.- Returns:
- This builder for chaining.
-
addAllResolvedDecoratorNames
repeated string resolved_decorator_names = 7;- Parameters:
values- The resolvedDecoratorNames to add.- Returns:
- This builder for chaining.
-
clearResolvedDecoratorNames
repeated string resolved_decorator_names = 7;- Returns:
- This builder for chaining.
-
addResolvedDecoratorNamesBytes
public SymbolsProtos.FunctionSymbol.Builder addResolvedDecoratorNamesBytes(com.google.protobuf.ByteString value) repeated string resolved_decorator_names = 7;- Parameters:
value- The bytes of the resolvedDecoratorNames to add.- Returns:
- This builder for chaining.
-
getIsAbstract
public boolean getIsAbstract()bool is_abstract = 8;- Specified by:
getIsAbstractin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isAbstract.
-
setIsAbstract
bool is_abstract = 8;- Parameters:
value- The isAbstract to set.- Returns:
- This builder for chaining.
-
clearIsAbstract
bool is_abstract = 8;- Returns:
- This builder for chaining.
-
getIsAsynchronous
public boolean getIsAsynchronous()bool is_asynchronous = 9;- Specified by:
getIsAsynchronousin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isAsynchronous.
-
setIsAsynchronous
bool is_asynchronous = 9;- Parameters:
value- The isAsynchronous to set.- Returns:
- This builder for chaining.
-
clearIsAsynchronous
bool is_asynchronous = 9;- Returns:
- This builder for chaining.
-
getIsFinal
public boolean getIsFinal()bool is_final = 10;- Specified by:
getIsFinalin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isFinal.
-
setIsFinal
bool is_final = 10;- Parameters:
value- The isFinal to set.- Returns:
- This builder for chaining.
-
clearIsFinal
bool is_final = 10;- Returns:
- This builder for chaining.
-
getIsOverload
public boolean getIsOverload()bool is_overload = 11;- Specified by:
getIsOverloadin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isOverload.
-
setIsOverload
bool is_overload = 11;- Parameters:
value- The isOverload to set.- Returns:
- This builder for chaining.
-
clearIsOverload
bool is_overload = 11;- Returns:
- This builder for chaining.
-
getIsProperty
public boolean getIsProperty()bool is_property = 12;- Specified by:
getIsPropertyin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isProperty.
-
setIsProperty
bool is_property = 12;- Parameters:
value- The isProperty to set.- Returns:
- This builder for chaining.
-
clearIsProperty
bool is_property = 12;- Returns:
- This builder for chaining.
-
getIsStatic
public boolean getIsStatic()bool is_static = 13;- Specified by:
getIsStaticin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isStatic.
-
setIsStatic
bool is_static = 13;- Parameters:
value- The isStatic to set.- Returns:
- This builder for chaining.
-
clearIsStatic
bool is_static = 13;- Returns:
- This builder for chaining.
-
getIsClassMethod
public boolean getIsClassMethod()bool is_class_method = 14;- Specified by:
getIsClassMethodin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The isClassMethod.
-
setIsClassMethod
bool is_class_method = 14;- Parameters:
value- The isClassMethod to set.- Returns:
- This builder for chaining.
-
clearIsClassMethod
bool is_class_method = 14;- Returns:
- This builder for chaining.
-
getValidForList
public com.google.protobuf.ProtocolStringList getValidForList()repeated string valid_for = 15;- Specified by:
getValidForListin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- A list containing the validFor.
-
getValidForCount
public int getValidForCount()repeated string valid_for = 15;- Specified by:
getValidForCountin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Returns:
- The count of validFor.
-
getValidFor
repeated string valid_for = 15;- Specified by:
getValidForin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The validFor at the given index.
-
getValidForBytes
public com.google.protobuf.ByteString getValidForBytes(int index) repeated string valid_for = 15;- Specified by:
getValidForBytesin interfaceSymbolsProtos.FunctionSymbolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the validFor at the given index.
-
setValidFor
repeated string valid_for = 15;- Parameters:
index- The index to set the value at.value- The validFor to set.- Returns:
- This builder for chaining.
-
addValidFor
repeated string valid_for = 15;- Parameters:
value- The validFor to add.- Returns:
- This builder for chaining.
-
addAllValidFor
repeated string valid_for = 15;- Parameters:
values- The validFor to add.- Returns:
- This builder for chaining.
-
clearValidFor
repeated string valid_for = 15;- Returns:
- This builder for chaining.
-
addValidForBytes
repeated string valid_for = 15;- Parameters:
value- The bytes of the validFor to add.- Returns:
- This builder for chaining.
-