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, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public com.google.protobuf.Parser<ClassHierarchyProto.Node> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic boolean hasNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4;hasNamedParameterNode in interface ClassHierarchyProto.NodeOrBuilderpublic ClassHierarchyProto.NamedParameterNode getNamedParameterNode()
optional .NamedParameterNode named_parameter_node = 4;getNamedParameterNode in interface ClassHierarchyProto.NodeOrBuilderpublic ClassHierarchyProto.NamedParameterNodeOrBuilder getNamedParameterNodeOrBuilder()
optional .NamedParameterNode named_parameter_node = 4;getNamedParameterNodeOrBuilder in interface ClassHierarchyProto.NodeOrBuilderpublic boolean hasPackageNode()
optional .PackageNode package_node = 5;hasPackageNode in interface ClassHierarchyProto.NodeOrBuilderpublic ClassHierarchyProto.PackageNode getPackageNode()
optional .PackageNode package_node = 5;getPackageNode in interface ClassHierarchyProto.NodeOrBuilderpublic ClassHierarchyProto.PackageNodeOrBuilder getPackageNodeOrBuilder()
optional .PackageNode package_node = 5;getPackageNodeOrBuilder in interface ClassHierarchyProto.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic 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.NodeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessagepublic static ClassHierarchyProto.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassHierarchyProto.Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassHierarchyProto.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassHierarchyProto.Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassHierarchyProto.Node parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassHierarchyProto.Node.Builder newBuilder()
public ClassHierarchyProto.Node.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClassHierarchyProto.Node.Builder newBuilder(ClassHierarchyProto.Node prototype)
public ClassHierarchyProto.Node.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteCopyright © 2016 The Apache Software Foundation. All rights reserved.