Package org.sonar.python.types.protobuf
Class SymbolsProtos.VarSymbol.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
- org.sonar.python.types.protobuf.SymbolsProtos.VarSymbol.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SymbolsProtos.VarSymbolOrBuilder
- Enclosing class:
- SymbolsProtos.VarSymbol
public static final class SymbolsProtos.VarSymbol.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder> implements SymbolsProtos.VarSymbolOrBuilder
Protobuf typeprotoblog.VarSymbol
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SymbolsProtos.VarSymbol.BuilderaddAllValidFor(Iterable<String> values)repeated string valid_for = 5;SymbolsProtos.VarSymbol.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SymbolsProtos.VarSymbol.BuilderaddValidFor(String value)repeated string valid_for = 5;SymbolsProtos.VarSymbol.BuilderaddValidForBytes(com.google.protobuf.ByteString value)repeated string valid_for = 5;SymbolsProtos.VarSymbolbuild()SymbolsProtos.VarSymbolbuildPartial()SymbolsProtos.VarSymbol.Builderclear()SymbolsProtos.VarSymbol.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SymbolsProtos.VarSymbol.BuilderclearFullyQualifiedName()string fully_qualified_name = 2;SymbolsProtos.VarSymbol.BuilderclearIsImportedModule()bool is_imported_module = 4;SymbolsProtos.VarSymbol.BuilderclearName()string name = 1;SymbolsProtos.VarSymbol.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SymbolsProtos.VarSymbol.BuilderclearTypeAnnotation()optional .protoblog.Type type_annotation = 3;SymbolsProtos.VarSymbol.BuilderclearValidFor()repeated string valid_for = 5;SymbolsProtos.VarSymbol.Builderclone()SymbolsProtos.VarSymbolgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFullyQualifiedName()string fully_qualified_name = 2;com.google.protobuf.ByteStringgetFullyQualifiedNameBytes()string fully_qualified_name = 2;booleangetIsImportedModule()bool is_imported_module = 4;StringgetName()string name = 1;com.google.protobuf.ByteStringgetNameBytes()string name = 1;SymbolsProtos.TypegetTypeAnnotation()optional .protoblog.Type type_annotation = 3;SymbolsProtos.Type.BuildergetTypeAnnotationBuilder()optional .protoblog.Type type_annotation = 3;SymbolsProtos.TypeOrBuildergetTypeAnnotationOrBuilder()optional .protoblog.Type type_annotation = 3;StringgetValidFor(int index)repeated string valid_for = 5;com.google.protobuf.ByteStringgetValidForBytes(int index)repeated string valid_for = 5;intgetValidForCount()repeated string valid_for = 5;com.google.protobuf.ProtocolStringListgetValidForList()repeated string valid_for = 5;booleanhasTypeAnnotation()optional .protoblog.Type type_annotation = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SymbolsProtos.VarSymbol.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SymbolsProtos.VarSymbol.BuildermergeFrom(com.google.protobuf.Message other)SymbolsProtos.VarSymbol.BuildermergeFrom(SymbolsProtos.VarSymbol other)SymbolsProtos.VarSymbol.BuildermergeTypeAnnotation(SymbolsProtos.Type value)optional .protoblog.Type type_annotation = 3;SymbolsProtos.VarSymbol.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SymbolsProtos.VarSymbol.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SymbolsProtos.VarSymbol.BuildersetFullyQualifiedName(String value)string fully_qualified_name = 2;SymbolsProtos.VarSymbol.BuildersetFullyQualifiedNameBytes(com.google.protobuf.ByteString value)string fully_qualified_name = 2;SymbolsProtos.VarSymbol.BuildersetIsImportedModule(boolean value)bool is_imported_module = 4;SymbolsProtos.VarSymbol.BuildersetName(String value)string name = 1;SymbolsProtos.VarSymbol.BuildersetNameBytes(com.google.protobuf.ByteString value)string name = 1;SymbolsProtos.VarSymbol.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SymbolsProtos.VarSymbol.BuildersetTypeAnnotation(SymbolsProtos.Type value)optional .protoblog.Type type_annotation = 3;SymbolsProtos.VarSymbol.BuildersetTypeAnnotation(SymbolsProtos.Type.Builder builderForValue)optional .protoblog.Type type_annotation = 3;SymbolsProtos.VarSymbol.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SymbolsProtos.VarSymbol.BuildersetValidFor(int index, String value)repeated string valid_for = 5;-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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<SymbolsProtos.VarSymbol.Builder>
-
clear
public SymbolsProtos.VarSymbol.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<SymbolsProtos.VarSymbol.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<SymbolsProtos.VarSymbol.Builder>
-
getDefaultInstanceForType
public SymbolsProtos.VarSymbol getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SymbolsProtos.VarSymbol build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SymbolsProtos.VarSymbol buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SymbolsProtos.VarSymbol.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<SymbolsProtos.VarSymbol.Builder>
-
setField
public SymbolsProtos.VarSymbol.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
clearField
public SymbolsProtos.VarSymbol.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
clearOneof
public SymbolsProtos.VarSymbol.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
setRepeatedField
public SymbolsProtos.VarSymbol.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
addRepeatedField
public SymbolsProtos.VarSymbol.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
mergeFrom
public SymbolsProtos.VarSymbol.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SymbolsProtos.VarSymbol.Builder>
-
mergeFrom
public SymbolsProtos.VarSymbol.Builder mergeFrom(SymbolsProtos.VarSymbol other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
mergeFrom
public SymbolsProtos.VarSymbol.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.VarSymbol.Builder>- Throws:
IOException
-
getName
public String getName()
string name = 1;- Specified by:
getNamein interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 1;- Specified by:
getNameBytesin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The bytes for name.
-
setName
public SymbolsProtos.VarSymbol.Builder setName(String value)
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SymbolsProtos.VarSymbol.Builder clearName()
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public SymbolsProtos.VarSymbol.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFullyQualifiedName
public String getFullyQualifiedName()
string fully_qualified_name = 2;- Specified by:
getFullyQualifiedNamein interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The fullyQualifiedName.
-
getFullyQualifiedNameBytes
public com.google.protobuf.ByteString getFullyQualifiedNameBytes()
string fully_qualified_name = 2;- Specified by:
getFullyQualifiedNameBytesin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The bytes for fullyQualifiedName.
-
setFullyQualifiedName
public SymbolsProtos.VarSymbol.Builder setFullyQualifiedName(String value)
string fully_qualified_name = 2;- Parameters:
value- The fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
clearFullyQualifiedName
public SymbolsProtos.VarSymbol.Builder clearFullyQualifiedName()
string fully_qualified_name = 2;- Returns:
- This builder for chaining.
-
setFullyQualifiedNameBytes
public SymbolsProtos.VarSymbol.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.
-
hasTypeAnnotation
public boolean hasTypeAnnotation()
optional .protoblog.Type type_annotation = 3;- Specified by:
hasTypeAnnotationin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- Whether the typeAnnotation field is set.
-
getTypeAnnotation
public SymbolsProtos.Type getTypeAnnotation()
optional .protoblog.Type type_annotation = 3;- Specified by:
getTypeAnnotationin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The typeAnnotation.
-
setTypeAnnotation
public SymbolsProtos.VarSymbol.Builder setTypeAnnotation(SymbolsProtos.Type value)
optional .protoblog.Type type_annotation = 3;
-
setTypeAnnotation
public SymbolsProtos.VarSymbol.Builder setTypeAnnotation(SymbolsProtos.Type.Builder builderForValue)
optional .protoblog.Type type_annotation = 3;
-
mergeTypeAnnotation
public SymbolsProtos.VarSymbol.Builder mergeTypeAnnotation(SymbolsProtos.Type value)
optional .protoblog.Type type_annotation = 3;
-
clearTypeAnnotation
public SymbolsProtos.VarSymbol.Builder clearTypeAnnotation()
optional .protoblog.Type type_annotation = 3;
-
getTypeAnnotationBuilder
public SymbolsProtos.Type.Builder getTypeAnnotationBuilder()
optional .protoblog.Type type_annotation = 3;
-
getTypeAnnotationOrBuilder
public SymbolsProtos.TypeOrBuilder getTypeAnnotationOrBuilder()
optional .protoblog.Type type_annotation = 3;- Specified by:
getTypeAnnotationOrBuilderin interfaceSymbolsProtos.VarSymbolOrBuilder
-
getIsImportedModule
public boolean getIsImportedModule()
bool is_imported_module = 4;- Specified by:
getIsImportedModulein interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The isImportedModule.
-
setIsImportedModule
public SymbolsProtos.VarSymbol.Builder setIsImportedModule(boolean value)
bool is_imported_module = 4;- Parameters:
value- The isImportedModule to set.- Returns:
- This builder for chaining.
-
clearIsImportedModule
public SymbolsProtos.VarSymbol.Builder clearIsImportedModule()
bool is_imported_module = 4;- Returns:
- This builder for chaining.
-
getValidForList
public com.google.protobuf.ProtocolStringList getValidForList()
repeated string valid_for = 5;- Specified by:
getValidForListin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- A list containing the validFor.
-
getValidForCount
public int getValidForCount()
repeated string valid_for = 5;- Specified by:
getValidForCountin interfaceSymbolsProtos.VarSymbolOrBuilder- Returns:
- The count of validFor.
-
getValidFor
public String getValidFor(int index)
repeated string valid_for = 5;- Specified by:
getValidForin interfaceSymbolsProtos.VarSymbolOrBuilder- 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 = 5;- Specified by:
getValidForBytesin interfaceSymbolsProtos.VarSymbolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the validFor at the given index.
-
setValidFor
public SymbolsProtos.VarSymbol.Builder setValidFor(int index, String value)
repeated string valid_for = 5;- Parameters:
index- The index to set the value at.value- The validFor to set.- Returns:
- This builder for chaining.
-
addValidFor
public SymbolsProtos.VarSymbol.Builder addValidFor(String value)
repeated string valid_for = 5;- Parameters:
value- The validFor to add.- Returns:
- This builder for chaining.
-
addAllValidFor
public SymbolsProtos.VarSymbol.Builder addAllValidFor(Iterable<String> values)
repeated string valid_for = 5;- Parameters:
values- The validFor to add.- Returns:
- This builder for chaining.
-
clearValidFor
public SymbolsProtos.VarSymbol.Builder clearValidFor()
repeated string valid_for = 5;- Returns:
- This builder for chaining.
-
addValidForBytes
public SymbolsProtos.VarSymbol.Builder addValidForBytes(com.google.protobuf.ByteString value)
repeated string valid_for = 5;- Parameters:
value- The bytes of the validFor to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SymbolsProtos.VarSymbol.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
mergeUnknownFields
public final SymbolsProtos.VarSymbol.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
-
-