public static final class ClassHierarchyProto.Node extends com.google.protobuf.GeneratedMessage implements ClassHierarchyProto.NodeOrBuilder
Node
Node is the abstract base type for all the data encoded in a class hierarchy. It is represented as an (un)tagged union, so only one of the three optional fields can be non-null.
Modifier and Type | Class and Description |
---|---|
static class |
ClassHierarchyProto.Node.Builder
Protobuf type
Node |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
CHILDREN_FIELD_NUMBER |
static int |
CLASS_NODE_FIELD_NUMBER |
static int |
FULL_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NAMED_PARAMETER_NODE_FIELD_NUMBER |
static int |
PACKAGE_NODE_FIELD_NUMBER |
static com.google.protobuf.Parser<ClassHierarchyProto.Node> |
PARSER |
Modifier and Type | Method and Description |
---|---|
ClassHierarchyProto.Node |
getChildren(int index)
repeated .Node children = 6; |
int |
getChildrenCount()
repeated .Node children = 6; |
List<ClassHierarchyProto.Node> |
getChildrenList()
repeated .Node children = 6; |
ClassHierarchyProto.NodeOrBuilder |
getChildrenOrBuilder(int index)
repeated .Node children = 6; |
List<? extends ClassHierarchyProto.NodeOrBuilder> |
getChildrenOrBuilderList()
repeated .Node children = 6; |
ClassHierarchyProto.ClassNode |
getClassNode()
optional .ClassNode class_node = 3; |
ClassHierarchyProto.ClassNodeOrBuilder |
getClassNodeOrBuilder()
optional .ClassNode class_node = 3; |
static ClassHierarchyProto.Node |
getDefaultInstance() |
ClassHierarchyProto.Node |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFullName()
required string full_name = 2; |
com.google.protobuf.ByteString |
getFullNameBytes()
required string full_name = 2; |
String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
ClassHierarchyProto.NamedParameterNode |
getNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4; |
ClassHierarchyProto.NamedParameterNodeOrBuilder |
getNamedParameterNodeOrBuilder()
optional .NamedParameterNode named_parameter_node = 4; |
ClassHierarchyProto.PackageNode |
getPackageNode()
optional .PackageNode package_node = 5; |
ClassHierarchyProto.PackageNodeOrBuilder |
getPackageNodeOrBuilder()
optional .PackageNode package_node = 5; |
com.google.protobuf.Parser<ClassHierarchyProto.Node> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasClassNode()
optional .ClassNode class_node = 3; |
boolean |
hasFullName()
required string full_name = 2; |
boolean |
hasName()
required string name = 1; |
boolean |
hasNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4; |
boolean |
hasPackageNode()
optional .PackageNode package_node = 5; |
boolean |
isInitialized() |
static ClassHierarchyProto.Node.Builder |
newBuilder() |
static ClassHierarchyProto.Node.Builder |
newBuilder(ClassHierarchyProto.Node prototype) |
ClassHierarchyProto.Node.Builder |
newBuilderForType() |
static ClassHierarchyProto.Node |
parseDelimitedFrom(InputStream input) |
static ClassHierarchyProto.Node |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClassHierarchyProto.Node |
parseFrom(byte[] data) |
static ClassHierarchyProto.Node |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClassHierarchyProto.Node |
parseFrom(com.google.protobuf.ByteString data) |
static ClassHierarchyProto.Node |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClassHierarchyProto.Node |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClassHierarchyProto.Node |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClassHierarchyProto.Node |
parseFrom(InputStream input) |
static ClassHierarchyProto.Node |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClassHierarchyProto.Node.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static com.google.protobuf.Parser<ClassHierarchyProto.Node> PARSER
public static final int NAME_FIELD_NUMBER
public static final int FULL_NAME_FIELD_NUMBER
public static final int CLASS_NODE_FIELD_NUMBER
public static final int NAMED_PARAMETER_NODE_FIELD_NUMBER
public static final int PACKAGE_NODE_FIELD_NUMBER
public static final int CHILDREN_FIELD_NUMBER
public static ClassHierarchyProto.Node getDefaultInstance()
public ClassHierarchyProto.Node getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public com.google.protobuf.Parser<ClassHierarchyProto.Node> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasName()
required string name = 1;
The short name of this node (e.g., a class name without the enclosing package, or a package name without the name of the enclosing package.
hasName
in interface ClassHierarchyProto.NodeOrBuilder
public String getName()
required string name = 1;
The short name of this node (e.g., a class name without the enclosing package, or a package name without the name of the enclosing package.
getName
in interface ClassHierarchyProto.NodeOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
The short name of this node (e.g., a class name without the enclosing package, or a package name without the name of the enclosing package.
getNameBytes
in interface ClassHierarchyProto.NodeOrBuilder
public boolean hasFullName()
required string full_name = 2;
For some languages it can be difficult to map from a list of nodes to the correct short name, so for now, the full name is (redundantly) encoded here. In Java, the full name is a bunch of short names that have been concatenated with "." and/or "$".
hasFullName
in interface ClassHierarchyProto.NodeOrBuilder
public String getFullName()
required string full_name = 2;
For some languages it can be difficult to map from a list of nodes to the correct short name, so for now, the full name is (redundantly) encoded here. In Java, the full name is a bunch of short names that have been concatenated with "." and/or "$".
getFullName
in interface ClassHierarchyProto.NodeOrBuilder
public com.google.protobuf.ByteString getFullNameBytes()
required string full_name = 2;
For some languages it can be difficult to map from a list of nodes to the correct short name, so for now, the full name is (redundantly) encoded here. In Java, the full name is a bunch of short names that have been concatenated with "." and/or "$".
getFullNameBytes
in interface ClassHierarchyProto.NodeOrBuilder
public boolean hasClassNode()
optional .ClassNode class_node = 3;
Exactly one of the next three fields must be defined. See below for their documentation.
hasClassNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.ClassNode getClassNode()
optional .ClassNode class_node = 3;
Exactly one of the next three fields must be defined. See below for their documentation.
getClassNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.ClassNodeOrBuilder getClassNodeOrBuilder()
optional .ClassNode class_node = 3;
Exactly one of the next three fields must be defined. See below for their documentation.
getClassNodeOrBuilder
in interface ClassHierarchyProto.NodeOrBuilder
public boolean hasNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4;
hasNamedParameterNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.NamedParameterNode getNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4;
getNamedParameterNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.NamedParameterNodeOrBuilder getNamedParameterNodeOrBuilder()
optional .NamedParameterNode named_parameter_node = 4;
getNamedParameterNodeOrBuilder
in interface ClassHierarchyProto.NodeOrBuilder
public boolean hasPackageNode()
optional .PackageNode package_node = 5;
hasPackageNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.PackageNode getPackageNode()
optional .PackageNode package_node = 5;
getPackageNode
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.PackageNodeOrBuilder getPackageNodeOrBuilder()
optional .PackageNode package_node = 5;
getPackageNodeOrBuilder
in interface ClassHierarchyProto.NodeOrBuilder
public List<ClassHierarchyProto.Node> getChildrenList()
repeated .Node children = 6;
Class hierarchy nodes are arranged in a tree that mirrors the language namespaces / packages that contain class names (e.g., Java packages, C++ namespaces). A NamedParameterNode cannot have any children. A ClassNode can not have any package nodes as children. PackageNodes cannot have PackageNodes as children.
getChildrenList
in interface ClassHierarchyProto.NodeOrBuilder
public List<? extends ClassHierarchyProto.NodeOrBuilder> getChildrenOrBuilderList()
repeated .Node children = 6;
Class hierarchy nodes are arranged in a tree that mirrors the language namespaces / packages that contain class names (e.g., Java packages, C++ namespaces). A NamedParameterNode cannot have any children. A ClassNode can not have any package nodes as children. PackageNodes cannot have PackageNodes as children.
getChildrenOrBuilderList
in interface ClassHierarchyProto.NodeOrBuilder
public int getChildrenCount()
repeated .Node children = 6;
Class hierarchy nodes are arranged in a tree that mirrors the language namespaces / packages that contain class names (e.g., Java packages, C++ namespaces). A NamedParameterNode cannot have any children. A ClassNode can not have any package nodes as children. PackageNodes cannot have PackageNodes as children.
getChildrenCount
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.Node getChildren(int index)
repeated .Node children = 6;
Class hierarchy nodes are arranged in a tree that mirrors the language namespaces / packages that contain class names (e.g., Java packages, C++ namespaces). A NamedParameterNode cannot have any children. A ClassNode can not have any package nodes as children. PackageNodes cannot have PackageNodes as children.
getChildren
in interface ClassHierarchyProto.NodeOrBuilder
public ClassHierarchyProto.NodeOrBuilder getChildrenOrBuilder(int index)
repeated .Node children = 6;
Class hierarchy nodes are arranged in a tree that mirrors the language namespaces / packages that contain class names (e.g., Java packages, C++ namespaces). A NamedParameterNode cannot have any children. A ClassNode can not have any package nodes as children. PackageNodes cannot have PackageNodes as children.
getChildrenOrBuilder
in interface ClassHierarchyProto.NodeOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
public static ClassHierarchyProto.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClassHierarchyProto.Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClassHierarchyProto.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClassHierarchyProto.Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClassHierarchyProto.Node parseFrom(InputStream input) throws IOException
IOException
public static ClassHierarchyProto.Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClassHierarchyProto.Node parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ClassHierarchyProto.Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClassHierarchyProto.Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ClassHierarchyProto.Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClassHierarchyProto.Node.Builder newBuilder()
public ClassHierarchyProto.Node.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ClassHierarchyProto.Node.Builder newBuilder(ClassHierarchyProto.Node prototype)
public ClassHierarchyProto.Node.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
Copyright © 2015 The Apache Software Foundation. All rights reserved.