Package org.sonar.python.types.protobuf
Class DescriptorsProtos.ClassDescriptor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorsProtos.ClassDescriptor.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.ClassDescriptor.Builder>
org.sonar.python.types.protobuf.DescriptorsProtos.ClassDescriptor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,DescriptorsProtos.ClassDescriptorOrBuilder
- Enclosing class:
DescriptorsProtos.ClassDescriptor
public static final class DescriptorsProtos.ClassDescriptor.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.ClassDescriptor.Builder>
implements DescriptorsProtos.ClassDescriptorOrBuilder
Protobuf type
protoblog.ClassDescriptor-
Method Summary
Modifier and TypeMethodDescriptionaddAllSuperClasses(Iterable<String> values) repeated string superClasses = 3;addSuperClasses(String value) repeated string superClasses = 3;addSuperClassesBytes(com.google.protobuf.ByteString value) repeated string superClasses = 3;build()clear().protoblog.DescriptorList attributes = 15;.protoblog.LocationInFile definitionLocation = 9;string fullyQualifiedName = 2;bool hasDecorators = 8;bool hasMetaClass = 11;bool hasSuperClassWithoutDescriptor = 10;.protoblog.DescriptorList members = 14;.protoblog.DescriptorList metaClasses = 16;optional string metaClassFQN = 12;string name = 1;repeated string superClasses = 3;bool supportsGenerics = 13;.protoblog.DescriptorList attributes = 15;.protoblog.DescriptorList attributes = 15;.protoblog.DescriptorList attributes = 15;.protoblog.LocationInFile definitionLocation = 9;.protoblog.LocationInFile definitionLocation = 9;.protoblog.LocationInFile definitionLocation = 9;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring fullyQualifiedName = 2;com.google.protobuf.ByteStringstring fullyQualifiedName = 2;booleanbool hasDecorators = 8;booleanbool hasMetaClass = 11;booleanbool hasSuperClassWithoutDescriptor = 10;.protoblog.DescriptorList members = 14;.protoblog.DescriptorList members = 14;.protoblog.DescriptorList members = 14;.protoblog.DescriptorList metaClasses = 16;.protoblog.DescriptorList metaClasses = 16;.protoblog.DescriptorList metaClasses = 16;optional string metaClassFQN = 12;com.google.protobuf.ByteStringoptional string metaClassFQN = 12;getName()string name = 1;com.google.protobuf.ByteStringstring name = 1;getSuperClasses(int index) repeated string superClasses = 3;com.google.protobuf.ByteStringgetSuperClassesBytes(int index) repeated string superClasses = 3;intrepeated string superClasses = 3;com.google.protobuf.ProtocolStringListrepeated string superClasses = 3;booleanbool supportsGenerics = 13;boolean.protoblog.DescriptorList attributes = 15;boolean.protoblog.LocationInFile definitionLocation = 9;boolean.protoblog.DescriptorList members = 14;boolean.protoblog.DescriptorList metaClasses = 16;booleanoptional string metaClassFQN = 12;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.protoblog.DescriptorList attributes = 15;.protoblog.LocationInFile definitionLocation = 9;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .protoblog.DescriptorList members = 14;.protoblog.DescriptorList metaClasses = 16;.protoblog.DescriptorList attributes = 15;setAttributes(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList attributes = 15;.protoblog.LocationInFile definitionLocation = 9;setDefinitionLocation(DescriptorsProtos.LocationInFile.Builder builderForValue) .protoblog.LocationInFile definitionLocation = 9;setFullyQualifiedName(String value) string fullyQualifiedName = 2;setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fullyQualifiedName = 2;setHasDecorators(boolean value) bool hasDecorators = 8;setHasMetaClass(boolean value) bool hasMetaClass = 11;setHasSuperClassWithoutDescriptor(boolean value) bool hasSuperClassWithoutDescriptor = 10;.protoblog.DescriptorList members = 14;setMembers(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList members = 14;.protoblog.DescriptorList metaClasses = 16;setMetaClasses(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList metaClasses = 16;setMetaClassFQN(String value) optional string metaClassFQN = 12;setMetaClassFQNBytes(com.google.protobuf.ByteString value) optional string metaClassFQN = 12;string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setSuperClasses(int index, String value) repeated string superClasses = 3;setSupportsGenerics(boolean value) bool supportsGenerics = 13;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.ClassDescriptor.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.ClassDescriptor.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.ClassDescriptor.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.ClassDescriptor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DescriptorsProtos.ClassDescriptor.Builder>
-
mergeFrom
public DescriptorsProtos.ClassDescriptor.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.ClassDescriptor.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;- Specified by:
getNameBytesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- 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 fullyQualifiedName = 2;- Specified by:
getFullyQualifiedNamein interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The fullyQualifiedName.
-
getFullyQualifiedNameBytes
public com.google.protobuf.ByteString getFullyQualifiedNameBytes()string fullyQualifiedName = 2;- Specified by:
getFullyQualifiedNameBytesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- 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.ClassDescriptor.Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) string fullyQualifiedName = 2;- Parameters:
value- The bytes for fullyQualifiedName to set.- Returns:
- This builder for chaining.
-
getSuperClassesList
public com.google.protobuf.ProtocolStringList getSuperClassesList()repeated string superClasses = 3;- Specified by:
getSuperClassesListin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- A list containing the superClasses.
-
getSuperClassesCount
public int getSuperClassesCount()repeated string superClasses = 3;- Specified by:
getSuperClassesCountin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The count of superClasses.
-
getSuperClasses
repeated string superClasses = 3;- Specified by:
getSuperClassesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The superClasses at the given index.
-
getSuperClassesBytes
public com.google.protobuf.ByteString getSuperClassesBytes(int index) repeated string superClasses = 3;- Specified by:
getSuperClassesBytesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the superClasses at the given index.
-
setSuperClasses
repeated string superClasses = 3;- Parameters:
index- The index to set the value at.value- The superClasses to set.- Returns:
- This builder for chaining.
-
addSuperClasses
repeated string superClasses = 3;- Parameters:
value- The superClasses to add.- Returns:
- This builder for chaining.
-
addAllSuperClasses
repeated string superClasses = 3;- Parameters:
values- The superClasses to add.- Returns:
- This builder for chaining.
-
clearSuperClasses
repeated string superClasses = 3;- Returns:
- This builder for chaining.
-
addSuperClassesBytes
public DescriptorsProtos.ClassDescriptor.Builder addSuperClassesBytes(com.google.protobuf.ByteString value) repeated string superClasses = 3;- Parameters:
value- The bytes of the superClasses to add.- Returns:
- This builder for chaining.
-
getHasDecorators
public boolean getHasDecorators()bool hasDecorators = 8;- Specified by:
getHasDecoratorsin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The hasDecorators.
-
setHasDecorators
bool hasDecorators = 8;- Parameters:
value- The hasDecorators to set.- Returns:
- This builder for chaining.
-
clearHasDecorators
bool hasDecorators = 8;- Returns:
- This builder for chaining.
-
hasDefinitionLocation
public boolean hasDefinitionLocation().protoblog.LocationInFile definitionLocation = 9;- Specified by:
hasDefinitionLocationin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- Whether the definitionLocation field is set.
-
getDefinitionLocation
.protoblog.LocationInFile definitionLocation = 9;- Specified by:
getDefinitionLocationin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The definitionLocation.
-
setDefinitionLocation
public DescriptorsProtos.ClassDescriptor.Builder setDefinitionLocation(DescriptorsProtos.LocationInFile value) .protoblog.LocationInFile definitionLocation = 9; -
setDefinitionLocation
public DescriptorsProtos.ClassDescriptor.Builder setDefinitionLocation(DescriptorsProtos.LocationInFile.Builder builderForValue) .protoblog.LocationInFile definitionLocation = 9; -
mergeDefinitionLocation
public DescriptorsProtos.ClassDescriptor.Builder mergeDefinitionLocation(DescriptorsProtos.LocationInFile value) .protoblog.LocationInFile definitionLocation = 9; -
clearDefinitionLocation
.protoblog.LocationInFile definitionLocation = 9; -
getDefinitionLocationBuilder
.protoblog.LocationInFile definitionLocation = 9; -
getDefinitionLocationOrBuilder
.protoblog.LocationInFile definitionLocation = 9;- Specified by:
getDefinitionLocationOrBuilderin interfaceDescriptorsProtos.ClassDescriptorOrBuilder
-
getHasSuperClassWithoutDescriptor
public boolean getHasSuperClassWithoutDescriptor()bool hasSuperClassWithoutDescriptor = 10;- Specified by:
getHasSuperClassWithoutDescriptorin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The hasSuperClassWithoutDescriptor.
-
setHasSuperClassWithoutDescriptor
bool hasSuperClassWithoutDescriptor = 10;- Parameters:
value- The hasSuperClassWithoutDescriptor to set.- Returns:
- This builder for chaining.
-
clearHasSuperClassWithoutDescriptor
bool hasSuperClassWithoutDescriptor = 10;- Returns:
- This builder for chaining.
-
getHasMetaClass
public boolean getHasMetaClass()bool hasMetaClass = 11;- Specified by:
getHasMetaClassin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The hasMetaClass.
-
setHasMetaClass
bool hasMetaClass = 11;- Parameters:
value- The hasMetaClass to set.- Returns:
- This builder for chaining.
-
clearHasMetaClass
bool hasMetaClass = 11;- Returns:
- This builder for chaining.
-
hasMetaClassFQN
public boolean hasMetaClassFQN()optional string metaClassFQN = 12;- Specified by:
hasMetaClassFQNin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- Whether the metaClassFQN field is set.
-
getMetaClassFQN
optional string metaClassFQN = 12;- Specified by:
getMetaClassFQNin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The metaClassFQN.
-
getMetaClassFQNBytes
public com.google.protobuf.ByteString getMetaClassFQNBytes()optional string metaClassFQN = 12;- Specified by:
getMetaClassFQNBytesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The bytes for metaClassFQN.
-
setMetaClassFQN
optional string metaClassFQN = 12;- Parameters:
value- The metaClassFQN to set.- Returns:
- This builder for chaining.
-
clearMetaClassFQN
optional string metaClassFQN = 12;- Returns:
- This builder for chaining.
-
setMetaClassFQNBytes
public DescriptorsProtos.ClassDescriptor.Builder setMetaClassFQNBytes(com.google.protobuf.ByteString value) optional string metaClassFQN = 12;- Parameters:
value- The bytes for metaClassFQN to set.- Returns:
- This builder for chaining.
-
getSupportsGenerics
public boolean getSupportsGenerics()bool supportsGenerics = 13;- Specified by:
getSupportsGenericsin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The supportsGenerics.
-
setSupportsGenerics
bool supportsGenerics = 13;- Parameters:
value- The supportsGenerics to set.- Returns:
- This builder for chaining.
-
clearSupportsGenerics
bool supportsGenerics = 13;- Returns:
- This builder for chaining.
-
hasMembers
public boolean hasMembers().protoblog.DescriptorList members = 14;- Specified by:
hasMembersin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- Whether the members field is set.
-
getMembers
.protoblog.DescriptorList members = 14;- Specified by:
getMembersin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The members.
-
setMembers
.protoblog.DescriptorList members = 14; -
setMembers
public DescriptorsProtos.ClassDescriptor.Builder setMembers(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList members = 14; -
mergeMembers
public DescriptorsProtos.ClassDescriptor.Builder mergeMembers(DescriptorsProtos.DescriptorList value) .protoblog.DescriptorList members = 14; -
clearMembers
.protoblog.DescriptorList members = 14; -
getMembersBuilder
.protoblog.DescriptorList members = 14; -
getMembersOrBuilder
.protoblog.DescriptorList members = 14;- Specified by:
getMembersOrBuilderin interfaceDescriptorsProtos.ClassDescriptorOrBuilder
-
hasAttributes
public boolean hasAttributes().protoblog.DescriptorList attributes = 15;- Specified by:
hasAttributesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- Whether the attributes field is set.
-
getAttributes
.protoblog.DescriptorList attributes = 15;- Specified by:
getAttributesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The attributes.
-
setAttributes
public DescriptorsProtos.ClassDescriptor.Builder setAttributes(DescriptorsProtos.DescriptorList value) .protoblog.DescriptorList attributes = 15; -
setAttributes
public DescriptorsProtos.ClassDescriptor.Builder setAttributes(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList attributes = 15; -
mergeAttributes
public DescriptorsProtos.ClassDescriptor.Builder mergeAttributes(DescriptorsProtos.DescriptorList value) .protoblog.DescriptorList attributes = 15; -
clearAttributes
.protoblog.DescriptorList attributes = 15; -
getAttributesBuilder
.protoblog.DescriptorList attributes = 15; -
getAttributesOrBuilder
.protoblog.DescriptorList attributes = 15;- Specified by:
getAttributesOrBuilderin interfaceDescriptorsProtos.ClassDescriptorOrBuilder
-
hasMetaClasses
public boolean hasMetaClasses().protoblog.DescriptorList metaClasses = 16;- Specified by:
hasMetaClassesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- Whether the metaClasses field is set.
-
getMetaClasses
.protoblog.DescriptorList metaClasses = 16;- Specified by:
getMetaClassesin interfaceDescriptorsProtos.ClassDescriptorOrBuilder- Returns:
- The metaClasses.
-
setMetaClasses
public DescriptorsProtos.ClassDescriptor.Builder setMetaClasses(DescriptorsProtos.DescriptorList value) .protoblog.DescriptorList metaClasses = 16; -
setMetaClasses
public DescriptorsProtos.ClassDescriptor.Builder setMetaClasses(DescriptorsProtos.DescriptorList.Builder builderForValue) .protoblog.DescriptorList metaClasses = 16; -
mergeMetaClasses
public DescriptorsProtos.ClassDescriptor.Builder mergeMetaClasses(DescriptorsProtos.DescriptorList value) .protoblog.DescriptorList metaClasses = 16; -
clearMetaClasses
.protoblog.DescriptorList metaClasses = 16; -
getMetaClassesBuilder
.protoblog.DescriptorList metaClasses = 16; -
getMetaClassesOrBuilder
.protoblog.DescriptorList metaClasses = 16;- Specified by:
getMetaClassesOrBuilderin interfaceDescriptorsProtos.ClassDescriptorOrBuilder
-