Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* This integer indicates the position of the node among
*its siblings in the AST. The left-most child has an
*order of 0.
*
*
* ORDER = 4;
*/
ORDER(4),
/**
*
* Name of represented object, e.g., method name (e.g. "run")
*
*
* NAME = 5;
*/
NAME(5),
/**
*
* This is the fully-qualified name of an entity, e.g., the fully-qualified
*name of a method or type. The details of what constitutes a fully-qualified
*name are language specific. This field SHOULD be human readable.
*
*
* FULL_NAME = 6;
*/
FULL_NAME(6),
/**
*
* Indicates that the construct (METHOD or TYPE_DECL) is external, that is,
*it is referenced but not defined in the code (applies both to insular
*parsing and to library functions where we have header files only)
*
*
* IS_EXTERNAL = 7;
*/
IS_EXTERNAL(7),
/**
*
* This property denotes a string value as used in a key-value pair.
*
*
* VALUE = 8;
*/
VALUE(8),
/**
*
* This optional fields provides the column number of the program construct
*represented by the node.
*
* A version, given as a string. Used, for example, in the META_DATA node to
*indicate which version of the CPG spec this CPG conforms to
*
*
* VERSION = 13;
*/
VERSION(13),
/**
*
* For formal method input parameters, output parameters, and return parameters,
*this field holds the evaluation strategy, which is one of the following:
*1) `BY_REFERENCE` indicates that the parameter is passed by reference, 2)
*`BY_VALUE` indicates that it is passed by value, that is, a copy is made,
*3) `BY_SHARING` the parameter is a pointer/reference and it is shared with
*the caller/callee. While a copy of the pointer is made, a copy of the object
*that it points to is not made.
*
* This field indicates which CPG language frontend generated the CPG.
*Frontend developers may freely choose a value that describes their frontend
*so long as it is not used by an existing frontend. Reserved values are to date:
*C, LLVM, GHIDRA, PHP.
*
*
* LANGUAGE = 19;
*/
LANGUAGE(19),
/**
*
* Certain files, e.g., configuration files, may be included in the CPG as-is.
*For such files, the `CONTENT` field contains the files content.
*
*
* CONTENT = 20;
*/
CONTENT(20),
/**
*
* This field holds the code snippet that the node represents.
*
*
* CODE = 21;
*/
CODE(21),
/**
*
* The method signature encodes the types of parameters in a string.
*The string SHOULD be human readable and suitable for differentiating methods
*with different parameter types sufficiently to allow for resolving of
*function overloading. The present specification does not enforce a strict
*format for the signature, that is, it can be chosen by the frontend
*implementor to fit the source language.
*
*
* SIGNATURE = 22;
*/
SIGNATURE(22),
/**
*
* This field holds the dispatch type of a call, which is either `STATIC_DISPATCH` or
*`DYNAMIC_DISPATCH`. For statically dispatched method calls, the call target is known
*at compile time while for dynamically dispatched calls, it can only be determined at
*runtime as it may depend on the type of an object (as is the case for virtual method
*calls) or calculation of an offset.
*
* The modifier type is a free-form string. The following are known modifier types:
*`STATIC`, `PUBLIC`, `PROTECTED`, `PRIVATE`, `ABSTRACT`, `NATIVE`, `CONSTRUCTOR`, `VIRTUAL`.
*
* The `CONTROL_STRUCTURE_TYPE` field indicates which kind of control structure
*a `CONTROL_STRUCTURE` node represents. The available types are the following:
*BREAK, CONTINUE, DO, WHILE, FOR, GOTO, IF, ELSE, TRY, THROW and SWITCH.
*
* AST-children of CALL nodes have an argument index, that is used to match
*call-site arguments with callee parameters. Explicit parameters are numbered
*from 1 to N, while index 0 is reserved for implicit self / this parameter.
*CALLs without implicit parameter therefore have arguments starting with index 1.
*AST-children of BLOCK nodes may have an argument index as well; in this case,
*the last argument index determines the return expression of a BLOCK expression.
*If the `PARAMETER_NAME` field is set, then the `ARGUMENT_INDEX` field is
*ignored. It is suggested to set it to -1.
*
* Identifier which uniquely describes a CLOSURE_BINDING. This property is used to match captured LOCAL nodes with the corresponding CLOSURE_BINDING nodes
*
* This field contains the fully-qualified static type name of the program
*construct represented by a node. It is the name of an instantiated type, e.g.,
*`java.util.List<Integer>`, rather than `java.util.List[T]`. If the type
*cannot be determined, this field should be set to the empty string.
*
* The static type decl of a TYPE. This property is matched against the FULL_NAME
*of TYPE_DECL nodes. It is required to have exactly one TYPE_DECL for each
*different TYPE_DECL_FULL_NAME
*
* The static types a TYPE_DECL inherits from. This property is matched against the
*FULL_NAME of TYPE nodes and thus it is required to have at least one TYPE node
*for each TYPE_FULL_NAME
*
* The type of the AST parent. Since this is only used in some parts of the graph,
*the list does not include all possible parents by intention.
*Possible parents: METHOD, TYPE_DECL, NAMESPACE_BLOCK.
*
* The path of the source file this node was generated from, relative to the root
*path in the meta data node. This field must be set but may be set to the value `<unknown>` to
*indicate that no source file can be associated with the node, e.g., because the node represents
*an entity known to exist because it is referenced, but for which the file that is is declared in
*is unknown.
*
*
* FILENAME = 106;
*/
FILENAME(106),
/**
*
* The field contains the names of the overlays applied to this CPG, in order of their
*application. Names are free-form strings, that is, this specification does not
*dictate them but rather requires tool producers and consumers to communicate them
*between each other.
*
*
* OVERLAYS = 118;
*/
OVERLAYS(118),
/**
*
* This property contains a hash value in the form of a string.
*Hashes can be used to summarize data, e.g., to summarize the
*contents of source files or sub graphs. Such summaries are useful
*to determine whether code has already been analyzed in incremental
*analysis pipelines. This property is optional to allow its calculation
*to be deferred or skipped if the hash is not needed.
*
*
* HASH = 120;
*/
HASH(120),
/**
*
* For calls involving named parameters, the `ARGUMENT_NAME` field holds the
*name of the parameter initialized by the expression. For all other calls,
*this field is unset.
*
* Specifies whether a parameter is the variadic argument handling parameter of
*a variadic method. Only one parameter of a method is allowed to have this
*property set to true.
*
*
* IS_VARIADIC = 221;
*/
IS_VARIADIC(221),
/**
*
* The path to the root directory of the source/binary this CPG is generated from.
*
*
* ROOT = 1199;
*/
ROOT(1199),
/**
*
* Type hint for the dynamic type. These are observed to be verifiable at runtime.
*
* Similar to `DYNAMIC_TYPE_HINT_FULL_NAME`, but that this makes no guarantee that types within this property are correct. This property is used to capture observations between node interactions during a 'may-analysis'.
*
* Specifies an index, e.g., for a parameter or argument.
*Explicit parameters are numbered from 1 to N, while index 0 is reserved for implicit
*self / this parameter.
*
*
* INDEX = 2223;
*/
INDEX(2223),
/**
*
* Start offset into the CONTENT property of the corresponding FILE node.
*The offset is such that parts of the content can easily
*be accessed via `content.substring(offset, offsetEnd)`.
*This means that the offset must be measured in utf16 encoding (i.e. neither in
*characters/codeunits nor in byte-offsets into a utf8 encoding).
*E.g. for METHOD nodes this start offset points to the start of the methods
*source code in the string holding the source code of the entire file.
*
*
* OFFSET = 3812;
*/
OFFSET(3812),
/**
*
* End offset (exclusive) into the CONTENT property of the corresponding FILE node.
*See OFFSET documentation for finer details.
*E.g. for METHOD nodes this end offset points to the first code position which is
*not part of the method.
*
*
* OFFSET_END = 3813;
*/
OFFSET_END(3813),
/**
*
* This field holds the canonical name of a `FIELD_IDENTIFIER`. It is typically
*identical to the CODE field, but canonicalized according to source language
*semantics. Human readable names are preferable. `FIELD_IDENTIFIER` nodes must
*share identical `CANONICAL_NAME` if and
*only if they alias, e.g., in C-style unions (if the aliasing relationship is
*unknown or there are partial overlaps, then one must make a reasonable guess,
*and trade off between false negatives and false positives).
*
* References to other nodes. This is not a real property; it exists here for the sake of proto serialization only. valueType and cardinality are meaningless.
*
*
* CONTAINED_REF = 2007161;
*/
CONTAINED_REF(2007161),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_NODE_PROPERTY = 0;
*/
public static final int UNKNOWN_NODE_PROPERTY_VALUE = 0;
/**
*
* This optional field provides the line number of the program construct
*represented by the node.
*
*
* LINE_NUMBER = 2;
*/
public static final int LINE_NUMBER_VALUE = 2;
/**
*
* AST node type name emitted by parser.
*
*
* PARSER_TYPE_NAME = 3;
*/
public static final int PARSER_TYPE_NAME_VALUE = 3;
/**
*
* This integer indicates the position of the node among
*its siblings in the AST. The left-most child has an
*order of 0.
*
*
* ORDER = 4;
*/
public static final int ORDER_VALUE = 4;
/**
*
* Name of represented object, e.g., method name (e.g. "run")
*
*
* NAME = 5;
*/
public static final int NAME_VALUE = 5;
/**
*
* This is the fully-qualified name of an entity, e.g., the fully-qualified
*name of a method or type. The details of what constitutes a fully-qualified
*name are language specific. This field SHOULD be human readable.
*
*
* FULL_NAME = 6;
*/
public static final int FULL_NAME_VALUE = 6;
/**
*
* Indicates that the construct (METHOD or TYPE_DECL) is external, that is,
*it is referenced but not defined in the code (applies both to insular
*parsing and to library functions where we have header files only)
*
*
* IS_EXTERNAL = 7;
*/
public static final int IS_EXTERNAL_VALUE = 7;
/**
*
* This property denotes a string value as used in a key-value pair.
*
*
* VALUE = 8;
*/
public static final int VALUE_VALUE = 8;
/**
*
* This optional fields provides the column number of the program construct
*represented by the node.
*
*
* COLUMN_NUMBER = 11;
*/
public static final int COLUMN_NUMBER_VALUE = 11;
/**
*
* This optional fields provides the line number at which the program construct
*represented by the node ends.
*
*
* LINE_NUMBER_END = 12;
*/
public static final int LINE_NUMBER_END_VALUE = 12;
/**
*
* A version, given as a string. Used, for example, in the META_DATA node to
*indicate which version of the CPG spec this CPG conforms to
*
*
* VERSION = 13;
*/
public static final int VERSION_VALUE = 13;
/**
*
* For formal method input parameters, output parameters, and return parameters,
*this field holds the evaluation strategy, which is one of the following:
*1) `BY_REFERENCE` indicates that the parameter is passed by reference, 2)
*`BY_VALUE` indicates that it is passed by value, that is, a copy is made,
*3) `BY_SHARING` the parameter is a pointer/reference and it is shared with
*the caller/callee. While a copy of the pointer is made, a copy of the object
*that it points to is not made.
*
*
* EVALUATION_STRATEGY = 15;
*/
public static final int EVALUATION_STRATEGY_VALUE = 15;
/**
*
* This optional fields provides the column number at which the program construct
*represented by the node ends.
*
*
* COLUMN_NUMBER_END = 16;
*/
public static final int COLUMN_NUMBER_END_VALUE = 16;
/**
*
* This field indicates which CPG language frontend generated the CPG.
*Frontend developers may freely choose a value that describes their frontend
*so long as it is not used by an existing frontend. Reserved values are to date:
*C, LLVM, GHIDRA, PHP.
*
*
* LANGUAGE = 19;
*/
public static final int LANGUAGE_VALUE = 19;
/**
*
* Certain files, e.g., configuration files, may be included in the CPG as-is.
*For such files, the `CONTENT` field contains the files content.
*
*
* CONTENT = 20;
*/
public static final int CONTENT_VALUE = 20;
/**
*
* This field holds the code snippet that the node represents.
*
*
* CODE = 21;
*/
public static final int CODE_VALUE = 21;
/**
*
* The method signature encodes the types of parameters in a string.
*The string SHOULD be human readable and suitable for differentiating methods
*with different parameter types sufficiently to allow for resolving of
*function overloading. The present specification does not enforce a strict
*format for the signature, that is, it can be chosen by the frontend
*implementor to fit the source language.
*
*
* SIGNATURE = 22;
*/
public static final int SIGNATURE_VALUE = 22;
/**
*
* This field holds the dispatch type of a call, which is either `STATIC_DISPATCH` or
*`DYNAMIC_DISPATCH`. For statically dispatched method calls, the call target is known
*at compile time while for dynamically dispatched calls, it can only be determined at
*runtime as it may depend on the type of an object (as is the case for virtual method
*calls) or calculation of an offset.
*
*
* DISPATCH_TYPE = 25;
*/
public static final int DISPATCH_TYPE_VALUE = 25;
/**
*
* The modifier type is a free-form string. The following are known modifier types:
*`STATIC`, `PUBLIC`, `PROTECTED`, `PRIVATE`, `ABSTRACT`, `NATIVE`, `CONSTRUCTOR`, `VIRTUAL`.
*
*
* MODIFIER_TYPE = 26;
*/
public static final int MODIFIER_TYPE_VALUE = 26;
/**
*
* The `CONTROL_STRUCTURE_TYPE` field indicates which kind of control structure
*a `CONTROL_STRUCTURE` node represents. The available types are the following:
*BREAK, CONTINUE, DO, WHILE, FOR, GOTO, IF, ELSE, TRY, THROW and SWITCH.
*
*
* CONTROL_STRUCTURE_TYPE = 27;
*/
public static final int CONTROL_STRUCTURE_TYPE_VALUE = 27;
/**
*
* AST-children of CALL nodes have an argument index, that is used to match
*call-site arguments with callee parameters. Explicit parameters are numbered
*from 1 to N, while index 0 is reserved for implicit self / this parameter.
*CALLs without implicit parameter therefore have arguments starting with index 1.
*AST-children of BLOCK nodes may have an argument index as well; in this case,
*the last argument index determines the return expression of a BLOCK expression.
*If the `PARAMETER_NAME` field is set, then the `ARGUMENT_INDEX` field is
*ignored. It is suggested to set it to -1.
*
*
* ARGUMENT_INDEX = 40;
*/
public static final int ARGUMENT_INDEX_VALUE = 40;
/**
*
* Identifier which uniquely describes a CLOSURE_BINDING. This property is used to match captured LOCAL nodes with the corresponding CLOSURE_BINDING nodes
*
*
* CLOSURE_BINDING_ID = 50;
*/
public static final int CLOSURE_BINDING_ID_VALUE = 50;
/**
*
* This field contains the fully-qualified static type name of the program
*construct represented by a node. It is the name of an instantiated type, e.g.,
*`java.util.List<Integer>`, rather than `java.util.List[T]`. If the type
*cannot be determined, this field should be set to the empty string.
*
*
* TYPE_FULL_NAME = 51;
*/
public static final int TYPE_FULL_NAME_VALUE = 51;
/**
*
* The static type decl of a TYPE. This property is matched against the FULL_NAME
*of TYPE_DECL nodes. It is required to have exactly one TYPE_DECL for each
*different TYPE_DECL_FULL_NAME
*
*
* TYPE_DECL_FULL_NAME = 52;
*/
public static final int TYPE_DECL_FULL_NAME_VALUE = 52;
/**
*
* The static types a TYPE_DECL inherits from. This property is matched against the
*FULL_NAME of TYPE nodes and thus it is required to have at least one TYPE node
*for each TYPE_FULL_NAME
*
*
* INHERITS_FROM_TYPE_FULL_NAME = 53;
*/
public static final int INHERITS_FROM_TYPE_FULL_NAME_VALUE = 53;
/**
*
* The FULL_NAME of a method. Used to link CALL and METHOD nodes. It is required
*to have exactly one METHOD node for each METHOD_FULL_NAME
*
*
* METHOD_FULL_NAME = 54;
*/
public static final int METHOD_FULL_NAME_VALUE = 54;
/**
*
* The type of the AST parent. Since this is only used in some parts of the graph,
*the list does not include all possible parents by intention.
*Possible parents: METHOD, TYPE_DECL, NAMESPACE_BLOCK.
*
*
* AST_PARENT_TYPE = 56;
*/
public static final int AST_PARENT_TYPE_VALUE = 56;
/**
*
* This field holds the FULL_NAME of the AST parent of an entity.
*
*
* AST_PARENT_FULL_NAME = 57;
*/
public static final int AST_PARENT_FULL_NAME_VALUE = 57;
/**
*
* The group ID for a dependency
*
*
* DEPENDENCY_GROUP_ID = 58;
*/
public static final int DEPENDENCY_GROUP_ID_VALUE = 58;
/**
* SYMBOL = 100;
*/
public static final int SYMBOL_VALUE = 100;
/**
* METHOD_SHORT_NAME = 102;
*/
public static final int METHOD_SHORT_NAME_VALUE = 102;
/**
* PACKAGE_NAME = 103;
*/
public static final int PACKAGE_NAME_VALUE = 103;
/**
* CLASS_NAME = 104;
*/
public static final int CLASS_NAME_VALUE = 104;
/**
* NODE_LABEL = 105;
*/
public static final int NODE_LABEL_VALUE = 105;
/**
*
* The path of the source file this node was generated from, relative to the root
*path in the meta data node. This field must be set but may be set to the value `<unknown>` to
*indicate that no source file can be associated with the node, e.g., because the node represents
*an entity known to exist because it is referenced, but for which the file that is is declared in
*is unknown.
*
*
* FILENAME = 106;
*/
public static final int FILENAME_VALUE = 106;
/**
*
* The field contains the names of the overlays applied to this CPG, in order of their
*application. Names are free-form strings, that is, this specification does not
*dictate them but rather requires tool producers and consumers to communicate them
*between each other.
*
*
* OVERLAYS = 118;
*/
public static final int OVERLAYS_VALUE = 118;
/**
*
* This property contains a hash value in the form of a string.
*Hashes can be used to summarize data, e.g., to summarize the
*contents of source files or sub graphs. Such summaries are useful
*to determine whether code has already been analyzed in incremental
*analysis pipelines. This property is optional to allow its calculation
*to be deferred or skipped if the hash is not needed.
*
*
* HASH = 120;
*/
public static final int HASH_VALUE = 120;
/**
*
* For calls involving named parameters, the `ARGUMENT_NAME` field holds the
*name of the parameter initialized by the expression. For all other calls,
*this field is unset.
*
*
* ARGUMENT_NAME = 130;
*/
public static final int ARGUMENT_NAME_VALUE = 130;
/**
*
* This property denotes a key of a key-value pair.
*
*
* KEY = 131;
*/
public static final int KEY_VALUE = 131;
/**
* CLASS_SHORT_NAME = 132;
*/
public static final int CLASS_SHORT_NAME_VALUE = 132;
/**
*
* This property holds the fully qualified name of the type that the node is
*a type alias of.
*
*
* ALIAS_TYPE_FULL_NAME = 158;
*/
public static final int ALIAS_TYPE_FULL_NAME_VALUE = 158;
/**
*
* The original name of the (potentially mangled) captured variable
*
*
* CLOSURE_ORIGINAL_NAME = 159;
*/
public static final int CLOSURE_ORIGINAL_NAME_VALUE = 159;
/**
*
* Specifies whether a parameter is the variadic argument handling parameter of
*a variadic method. Only one parameter of a method is allowed to have this
*property set to true.
*
*
* IS_VARIADIC = 221;
*/
public static final int IS_VARIADIC_VALUE = 221;
/**
*
* The path to the root directory of the source/binary this CPG is generated from.
*
*
* ROOT = 1199;
*/
public static final int ROOT_VALUE = 1199;
/**
*
* Type hint for the dynamic type. These are observed to be verifiable at runtime.
*
*
* DYNAMIC_TYPE_HINT_FULL_NAME = 1591;
*/
public static final int DYNAMIC_TYPE_HINT_FULL_NAME_VALUE = 1591;
/**
*
* Similar to `DYNAMIC_TYPE_HINT_FULL_NAME`, but that this makes no guarantee that types within this property are correct. This property is used to capture observations between node interactions during a 'may-analysis'.
*
*
* POSSIBLE_TYPES = 1592;
*/
public static final int POSSIBLE_TYPES_VALUE = 1592;
/**
*
* Specifies an index, e.g., for a parameter or argument.
*Explicit parameters are numbered from 1 to N, while index 0 is reserved for implicit
*self / this parameter.
*
*
* INDEX = 2223;
*/
public static final int INDEX_VALUE = 2223;
/**
*
* Start offset into the CONTENT property of the corresponding FILE node.
*The offset is such that parts of the content can easily
*be accessed via `content.substring(offset, offsetEnd)`.
*This means that the offset must be measured in utf16 encoding (i.e. neither in
*characters/codeunits nor in byte-offsets into a utf8 encoding).
*E.g. for METHOD nodes this start offset points to the start of the methods
*source code in the string holding the source code of the entire file.
*
*
* OFFSET = 3812;
*/
public static final int OFFSET_VALUE = 3812;
/**
*
* End offset (exclusive) into the CONTENT property of the corresponding FILE node.
*See OFFSET documentation for finer details.
*E.g. for METHOD nodes this end offset points to the first code position which is
*not part of the method.
*
*
* OFFSET_END = 3813;
*/
public static final int OFFSET_END_VALUE = 3813;
/**
*
* This field holds the canonical name of a `FIELD_IDENTIFIER`. It is typically
*identical to the CODE field, but canonicalized according to source language
*semantics. Human readable names are preferable. `FIELD_IDENTIFIER` nodes must
*share identical `CANONICAL_NAME` if and
*only if they alias, e.g., in C-style unions (if the aliasing relationship is
*unknown or there are partial overlaps, then one must make a reasonable guess,
*and trade off between false negatives and false positives).
*
*
* CANONICAL_NAME = 2001092;
*/
public static final int CANONICAL_NAME_VALUE = 2001092;
/**
*
* References to other nodes. This is not a real property; it exists here for the sake of proto serialization only. valueType and cardinality are meaningless.
*
*
* CONTAINED_REF = 2007161;
*/
public static final int CONTAINED_REF_VALUE = 2007161;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodePropertyName valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NodePropertyName forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_NODE_PROPERTY;
case 2: return LINE_NUMBER;
case 3: return PARSER_TYPE_NAME;
case 4: return ORDER;
case 5: return NAME;
case 6: return FULL_NAME;
case 7: return IS_EXTERNAL;
case 8: return VALUE;
case 11: return COLUMN_NUMBER;
case 12: return LINE_NUMBER_END;
case 13: return VERSION;
case 15: return EVALUATION_STRATEGY;
case 16: return COLUMN_NUMBER_END;
case 19: return LANGUAGE;
case 20: return CONTENT;
case 21: return CODE;
case 22: return SIGNATURE;
case 25: return DISPATCH_TYPE;
case 26: return MODIFIER_TYPE;
case 27: return CONTROL_STRUCTURE_TYPE;
case 40: return ARGUMENT_INDEX;
case 50: return CLOSURE_BINDING_ID;
case 51: return TYPE_FULL_NAME;
case 52: return TYPE_DECL_FULL_NAME;
case 53: return INHERITS_FROM_TYPE_FULL_NAME;
case 54: return METHOD_FULL_NAME;
case 56: return AST_PARENT_TYPE;
case 57: return AST_PARENT_FULL_NAME;
case 58: return DEPENDENCY_GROUP_ID;
case 100: return SYMBOL;
case 102: return METHOD_SHORT_NAME;
case 103: return PACKAGE_NAME;
case 104: return CLASS_NAME;
case 105: return NODE_LABEL;
case 106: return FILENAME;
case 118: return OVERLAYS;
case 120: return HASH;
case 130: return ARGUMENT_NAME;
case 131: return KEY;
case 132: return CLASS_SHORT_NAME;
case 158: return ALIAS_TYPE_FULL_NAME;
case 159: return CLOSURE_ORIGINAL_NAME;
case 221: return IS_VARIADIC;
case 1199: return ROOT;
case 1591: return DYNAMIC_TYPE_HINT_FULL_NAME;
case 1592: return POSSIBLE_TYPES;
case 2223: return INDEX;
case 3812: return OFFSET;
case 3813: return OFFSET_END;
case 2001092: return CANONICAL_NAME;
case 2007161: return CONTAINED_REF;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NodePropertyName> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NodePropertyName findValueByNumber(int number) {
return NodePropertyName.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(0);
}
private static final NodePropertyName[] VALUES = values();
public static NodePropertyName valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private NodePropertyName(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.NodePropertyName)
}
/**
* Protobuf enum {@code cpg.EdgePropertyName}
*/
public enum EdgePropertyName
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_EDGE_PROPERTY = 0;
*/
UNKNOWN_EDGE_PROPERTY(0),
/**
*
* This edge property represents the variable propagated by a reaching definition edge.
*
*
* VARIABLE = 11;
*/
VARIABLE(11),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_EDGE_PROPERTY = 0;
*/
public static final int UNKNOWN_EDGE_PROPERTY_VALUE = 0;
/**
*
* This edge property represents the variable propagated by a reaching definition edge.
*
*
* VARIABLE = 11;
*/
public static final int VARIABLE_VALUE = 11;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EdgePropertyName valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EdgePropertyName forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_EDGE_PROPERTY;
case 11: return VARIABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EdgePropertyName> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EdgePropertyName findValueByNumber(int number) {
return EdgePropertyName.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(1);
}
private static final EdgePropertyName[] VALUES = values();
public static EdgePropertyName valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EdgePropertyName(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.EdgePropertyName)
}
/**
* Protobuf enum {@code cpg.ModifierTypes}
*/
public enum ModifierTypes
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_MODIFIER_TYPE = 0;
*/
UNKNOWN_MODIFIER_TYPE(0),
/**
*
* The static modifier
*
*
* STATIC = 1;
*/
STATIC(1),
/**
*
* The public modifier
*
*
* PUBLIC = 2;
*/
PUBLIC(2),
/**
*
* The protected modifier
*
*
* PROTECTED = 3;
*/
PROTECTED(3),
/**
*
* The private modifier
*
*
* PRIVATE = 4;
*/
PRIVATE(4),
/**
*
* The abstract modifier
*
*
* ABSTRACT = 5;
*/
ABSTRACT(5),
/**
*
* The native modifier
*
*
* NATIVE = 6;
*/
NATIVE(6),
/**
*
* The constructor modifier
*
*
* CONSTRUCTOR = 7;
*/
CONSTRUCTOR(7),
/**
*
* The virtual modifier
*
*
* VIRTUAL = 8;
*/
VIRTUAL(8),
/**
*
* The internal modifier
*
*
* INTERNAL = 9;
*/
INTERNAL(9),
/**
*
* The final modifier
*
*
* FINAL = 10;
*/
FINAL(10),
/**
*
* The readonly modifier
*
*
* READONLY = 11;
*/
READONLY(11),
/**
*
* Indicate that a method defines a module in the sense e.g. a python module does with the creation of a module object
*
*
* MODULE = 12;
*/
MODULE(12),
/**
*
* Indicate that a method is an anonymous function, lambda, or closure
*
*
* LAMBDA = 13;
*/
LAMBDA(13),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_MODIFIER_TYPE = 0;
*/
public static final int UNKNOWN_MODIFIER_TYPE_VALUE = 0;
/**
*
* The static modifier
*
*
* STATIC = 1;
*/
public static final int STATIC_VALUE = 1;
/**
*
* The public modifier
*
*
* PUBLIC = 2;
*/
public static final int PUBLIC_VALUE = 2;
/**
*
* The protected modifier
*
*
* PROTECTED = 3;
*/
public static final int PROTECTED_VALUE = 3;
/**
*
* The private modifier
*
*
* PRIVATE = 4;
*/
public static final int PRIVATE_VALUE = 4;
/**
*
* The abstract modifier
*
*
* ABSTRACT = 5;
*/
public static final int ABSTRACT_VALUE = 5;
/**
*
* The native modifier
*
*
* NATIVE = 6;
*/
public static final int NATIVE_VALUE = 6;
/**
*
* The constructor modifier
*
*
* CONSTRUCTOR = 7;
*/
public static final int CONSTRUCTOR_VALUE = 7;
/**
*
* The virtual modifier
*
*
* VIRTUAL = 8;
*/
public static final int VIRTUAL_VALUE = 8;
/**
*
* The internal modifier
*
*
* INTERNAL = 9;
*/
public static final int INTERNAL_VALUE = 9;
/**
*
* The final modifier
*
*
* FINAL = 10;
*/
public static final int FINAL_VALUE = 10;
/**
*
* The readonly modifier
*
*
* READONLY = 11;
*/
public static final int READONLY_VALUE = 11;
/**
*
* Indicate that a method defines a module in the sense e.g. a python module does with the creation of a module object
*
*
* MODULE = 12;
*/
public static final int MODULE_VALUE = 12;
/**
*
* Indicate that a method is an anonymous function, lambda, or closure
*
*
* LAMBDA = 13;
*/
public static final int LAMBDA_VALUE = 13;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ModifierTypes valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ModifierTypes forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_MODIFIER_TYPE;
case 1: return STATIC;
case 2: return PUBLIC;
case 3: return PROTECTED;
case 4: return PRIVATE;
case 5: return ABSTRACT;
case 6: return NATIVE;
case 7: return CONSTRUCTOR;
case 8: return VIRTUAL;
case 9: return INTERNAL;
case 10: return FINAL;
case 11: return READONLY;
case 12: return MODULE;
case 13: return LAMBDA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ModifierTypes> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ModifierTypes findValueByNumber(int number) {
return ModifierTypes.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(2);
}
private static final ModifierTypes[] VALUES = values();
public static ModifierTypes valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ModifierTypes(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.ModifierTypes)
}
/**
* Protobuf enum {@code cpg.LANGUAGES}
*/
public enum LANGUAGES
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_LANGUAGE = 0;
*/
UNKNOWN_LANGUAGE(0),
/**
* JAVA = 1;
*/
JAVA(1),
/**
* JAVASCRIPT = 2;
*/
JAVASCRIPT(2),
/**
* GOLANG = 3;
*/
GOLANG(3),
/**
* CSHARP = 4;
*/
CSHARP(4),
/**
* C = 5;
*/
C(5),
/**
* PYTHON = 6;
*/
PYTHON(6),
/**
* LLVM = 7;
*/
LLVM(7),
/**
* PHP = 8;
*/
PHP(8),
/**
* FUZZY_TEST_LANG = 9;
*/
FUZZY_TEST_LANG(9),
/**
*
*
* CSHARPSRC = 19;
*/
CSHARPSRC(19),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_LANGUAGE = 0;
*/
public static final int UNKNOWN_LANGUAGE_VALUE = 0;
/**
* JAVA = 1;
*/
public static final int JAVA_VALUE = 1;
/**
* JAVASCRIPT = 2;
*/
public static final int JAVASCRIPT_VALUE = 2;
/**
* GOLANG = 3;
*/
public static final int GOLANG_VALUE = 3;
/**
* CSHARP = 4;
*/
public static final int CSHARP_VALUE = 4;
/**
* C = 5;
*/
public static final int C_VALUE = 5;
/**
* PYTHON = 6;
*/
public static final int PYTHON_VALUE = 6;
/**
* LLVM = 7;
*/
public static final int LLVM_VALUE = 7;
/**
* PHP = 8;
*/
public static final int PHP_VALUE = 8;
/**
* FUZZY_TEST_LANG = 9;
*/
public static final int FUZZY_TEST_LANG_VALUE = 9;
/**
*
* generic reverse engineering framework
*
*
* GHIDRA = 10;
*/
public static final int GHIDRA_VALUE = 10;
/**
* KOTLIN = 11;
*/
public static final int KOTLIN_VALUE = 11;
/**
*
* Eclipse CDT based parser for C/C++
*
*
* NEWC = 12;
*/
public static final int NEWC_VALUE = 12;
/**
*
* Source-based front-end for Java
*
*
* JAVASRC = 13;
*/
public static final int JAVASRC_VALUE = 13;
/**
*
* Source-based front-end for Python
*
*
* PYTHONSRC = 14;
*/
public static final int PYTHONSRC_VALUE = 14;
/**
*
* Source-based JS frontend based on Babel
*
*
* JSSRC = 15;
*/
public static final int JSSRC_VALUE = 15;
/**
*
* Source-based frontend for Ruby
*
*
* RUBYSRC = 17;
*/
public static final int RUBYSRC_VALUE = 17;
/**
*
* Source-based frontend for Swift
*
*
* SWIFTSRC = 18;
*/
public static final int SWIFTSRC_VALUE = 18;
/**
*
* Source-based frontend for C# and .NET
*
*
* CSHARPSRC = 19;
*/
public static final int CSHARPSRC_VALUE = 19;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LANGUAGES valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LANGUAGES forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_LANGUAGE;
case 1: return JAVA;
case 2: return JAVASCRIPT;
case 3: return GOLANG;
case 4: return CSHARP;
case 5: return C;
case 6: return PYTHON;
case 7: return LLVM;
case 8: return PHP;
case 9: return FUZZY_TEST_LANG;
case 10: return GHIDRA;
case 11: return KOTLIN;
case 12: return NEWC;
case 13: return JAVASRC;
case 14: return PYTHONSRC;
case 15: return JSSRC;
case 17: return RUBYSRC;
case 18: return SWIFTSRC;
case 19: return CSHARPSRC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LANGUAGES> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LANGUAGES findValueByNumber(int number) {
return LANGUAGES.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(3);
}
private static final LANGUAGES[] VALUES = values();
public static LANGUAGES valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private LANGUAGES(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.LANGUAGES)
}
/**
* Protobuf enum {@code cpg.EvaluationStrategies}
*/
public enum EvaluationStrategies
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_EVALUATION_STRATEGY = 0;
*/
UNKNOWN_EVALUATION_STRATEGY(0),
/**
*
* A parameter or return of a function is passed by reference which means an address is used behind the scenes
*
*
* BY_REFERENCE = 1;
*/
BY_REFERENCE(1),
/**
*
* Only applicable to object parameter or return values. The pointer to the object is passed by value but the object itself is not copied and changes to it are thus propagated out of the method context
*
*
* BY_SHARING = 2;
*/
BY_SHARING(2),
/**
*
* A parameter or return of a function passed by value which means a flat copy is used
*
*
* BY_VALUE = 3;
*/
BY_VALUE(3),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_EVALUATION_STRATEGY = 0;
*/
public static final int UNKNOWN_EVALUATION_STRATEGY_VALUE = 0;
/**
*
* A parameter or return of a function is passed by reference which means an address is used behind the scenes
*
*
* BY_REFERENCE = 1;
*/
public static final int BY_REFERENCE_VALUE = 1;
/**
*
* Only applicable to object parameter or return values. The pointer to the object is passed by value but the object itself is not copied and changes to it are thus propagated out of the method context
*
*
* BY_SHARING = 2;
*/
public static final int BY_SHARING_VALUE = 2;
/**
*
* A parameter or return of a function passed by value which means a flat copy is used
*
*
* BY_VALUE = 3;
*/
public static final int BY_VALUE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EvaluationStrategies valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EvaluationStrategies forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_EVALUATION_STRATEGY;
case 1: return BY_REFERENCE;
case 2: return BY_SHARING;
case 3: return BY_VALUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EvaluationStrategies> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EvaluationStrategies findValueByNumber(int number) {
return EvaluationStrategies.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(4);
}
private static final EvaluationStrategies[] VALUES = values();
public static EvaluationStrategies valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EvaluationStrategies(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.EvaluationStrategies)
}
/**
* Protobuf enum {@code cpg.DispatchTypes}
*/
public enum DispatchTypes
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_DISPATCH_TYPE = 0;
*/
UNKNOWN_DISPATCH_TYPE(0),
/**
*
* For statically dispatched calls the call target is known before program execution
*
*
* INLINED = 3;
*/
INLINED(3),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_DISPATCH_TYPE = 0;
*/
public static final int UNKNOWN_DISPATCH_TYPE_VALUE = 0;
/**
*
* For statically dispatched calls the call target is known before program execution
*
*
* STATIC_DISPATCH = 1;
*/
public static final int STATIC_DISPATCH_VALUE = 1;
/**
*
* For dynamically dispatched calls the target is determined during runtime
*
*
* DYNAMIC_DISPATCH = 2;
*/
public static final int DYNAMIC_DISPATCH_VALUE = 2;
/**
*
* For macro expansions, code is inlined.
*
*
* INLINED = 3;
*/
public static final int INLINED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DispatchTypes valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DispatchTypes forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_DISPATCH_TYPE;
case 1: return STATIC_DISPATCH;
case 2: return DYNAMIC_DISPATCH;
case 3: return INLINED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DispatchTypes> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DispatchTypes findValueByNumber(int number) {
return DispatchTypes.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(5);
}
private static final DispatchTypes[] VALUES = values();
public static DispatchTypes valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DispatchTypes(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.DispatchTypes)
}
/**
* Protobuf enum {@code cpg.CONTROL_STRUCTURE_TYPES}
*/
public enum CONTROL_STRUCTURE_TYPES
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_CONTROL_STRUCTURE_TYPE = 0;
*/
UNKNOWN_CONTROL_STRUCTURE_TYPE(0),
/**
*
* Represents a break statement. Labeled breaks are expected to have a JUMP_LABEL
*node AST child with ORDER 1
*
*
* BREAK = 1;
*/
BREAK(1),
/**
*
* Represents a continue statement. Labeled continues are expected to have a JUMP_LABEL
*node AST child with ORDER 1
*
*
* CONTINUE = 2;
*/
CONTINUE(2),
/**
*
* Represents a while statement
*
*
* WHILE = 3;
*/
WHILE(3),
/**
*
* Represents a do statement
*
*
* DO = 4;
*/
DO(4),
/**
*
* Represents a for statement
*
*
* FOR = 5;
*/
FOR(5),
/**
*
* Represents a goto statement
*
*
* GOTO = 6;
*/
GOTO(6),
/**
*
* Represents an if statement
*
*
* IF = 7;
*/
IF(7),
/**
*
* Represents an else statement
*
*
* ELSE = 8;
*/
ELSE(8),
/**
*
* Represents a switch statement
*
*
* SWITCH = 9;
*/
SWITCH(9),
/**
*
* Represents a try statement
*
*
* TRY = 10;
*/
TRY(10),
/**
*
* Represents a throw statement
*
*
* THROW = 11;
*/
THROW(11),
/**
*
* Represents a match expression
*
*
* MATCH = 12;
*/
MATCH(12),
/**
*
* Represents a yield expression
*
*
* YIELD = 13;
*/
YIELD(13),
/**
*
* Represents a catch clause
*
*
* CATCH = 14;
*/
CATCH(14),
/**
*
* Represents a finally clause
*
*
* FINALLY = 15;
*/
FINALLY(15),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_CONTROL_STRUCTURE_TYPE = 0;
*/
public static final int UNKNOWN_CONTROL_STRUCTURE_TYPE_VALUE = 0;
/**
*
* Represents a break statement. Labeled breaks are expected to have a JUMP_LABEL
*node AST child with ORDER 1
*
*
* BREAK = 1;
*/
public static final int BREAK_VALUE = 1;
/**
*
* Represents a continue statement. Labeled continues are expected to have a JUMP_LABEL
*node AST child with ORDER 1
*
*
* CONTINUE = 2;
*/
public static final int CONTINUE_VALUE = 2;
/**
*
* Represents a while statement
*
*
* WHILE = 3;
*/
public static final int WHILE_VALUE = 3;
/**
*
* Represents a do statement
*
*
* DO = 4;
*/
public static final int DO_VALUE = 4;
/**
*
* Represents a for statement
*
*
* FOR = 5;
*/
public static final int FOR_VALUE = 5;
/**
*
* Represents a goto statement
*
*
* GOTO = 6;
*/
public static final int GOTO_VALUE = 6;
/**
*
* Represents an if statement
*
*
* IF = 7;
*/
public static final int IF_VALUE = 7;
/**
*
* Represents an else statement
*
*
* ELSE = 8;
*/
public static final int ELSE_VALUE = 8;
/**
*
* Represents a switch statement
*
*
* SWITCH = 9;
*/
public static final int SWITCH_VALUE = 9;
/**
*
* Represents a try statement
*
*
* TRY = 10;
*/
public static final int TRY_VALUE = 10;
/**
*
* Represents a throw statement
*
*
* THROW = 11;
*/
public static final int THROW_VALUE = 11;
/**
*
* Represents a match expression
*
*
* MATCH = 12;
*/
public static final int MATCH_VALUE = 12;
/**
*
* Represents a yield expression
*
*
* YIELD = 13;
*/
public static final int YIELD_VALUE = 13;
/**
*
* Represents a catch clause
*
*
* CATCH = 14;
*/
public static final int CATCH_VALUE = 14;
/**
*
* Represents a finally clause
*
*
* FINALLY = 15;
*/
public static final int FINALLY_VALUE = 15;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CONTROL_STRUCTURE_TYPES valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CONTROL_STRUCTURE_TYPES forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_CONTROL_STRUCTURE_TYPE;
case 1: return BREAK;
case 2: return CONTINUE;
case 3: return WHILE;
case 4: return DO;
case 5: return FOR;
case 6: return GOTO;
case 7: return IF;
case 8: return ELSE;
case 9: return SWITCH;
case 10: return TRY;
case 11: return THROW;
case 12: return MATCH;
case 13: return YIELD;
case 14: return CATCH;
case 15: return FINALLY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CONTROL_STRUCTURE_TYPES> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CONTROL_STRUCTURE_TYPES findValueByNumber(int number) {
return CONTROL_STRUCTURE_TYPES.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.getDescriptor().getEnumTypes().get(6);
}
private static final CONTROL_STRUCTURE_TYPES[] VALUES = values();
public static CONTROL_STRUCTURE_TYPES valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CONTROL_STRUCTURE_TYPES(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.CONTROL_STRUCTURE_TYPES)
}
public interface PropertyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.PropertyValue)
com.google.protobuf.MessageOrBuilder {
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
boolean hasStringValue();
/**
* string string_value = 1;
* @return The stringValue.
*/
java.lang.String getStringValue();
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
com.google.protobuf.ByteString
getStringValueBytes();
/**
* bool bool_value = 2;
* @return Whether the boolValue field is set.
*/
boolean hasBoolValue();
/**
* bool bool_value = 2;
* @return The boolValue.
*/
boolean getBoolValue();
/**
* int32 int_value = 3;
* @return Whether the intValue field is set.
*/
boolean hasIntValue();
/**
* int32 int_value = 3;
* @return The intValue.
*/
int getIntValue();
/**
* int64 long_value = 4;
* @return Whether the longValue field is set.
*/
boolean hasLongValue();
/**
* int64 long_value = 4;
* @return The longValue.
*/
long getLongValue();
/**
* float float_value = 5;
* @return Whether the floatValue field is set.
*/
boolean hasFloatValue();
/**
* float float_value = 5;
* @return The floatValue.
*/
float getFloatValue();
/**
* double double_value = 6;
* @return Whether the doubleValue field is set.
*/
boolean hasDoubleValue();
/**
* double double_value = 6;
* @return The doubleValue.
*/
double getDoubleValue();
/**
* .cpg.StringList string_list = 7;
* @return Whether the stringList field is set.
*/
boolean hasStringList();
/**
* .cpg.StringList string_list = 7;
* @return The stringList.
*/
io.shiftleft.proto.cpg.Cpg.StringList getStringList();
/**
* .cpg.StringList string_list = 7;
*/
io.shiftleft.proto.cpg.Cpg.StringListOrBuilder getStringListOrBuilder();
/**
* .cpg.BoolList bool_list = 8;
* @return Whether the boolList field is set.
*/
boolean hasBoolList();
/**
* .cpg.BoolList bool_list = 8;
* @return The boolList.
*/
io.shiftleft.proto.cpg.Cpg.BoolList getBoolList();
/**
* .cpg.BoolList bool_list = 8;
*/
io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder getBoolListOrBuilder();
/**
* .cpg.IntList int_list = 9;
* @return Whether the intList field is set.
*/
boolean hasIntList();
/**
* .cpg.IntList int_list = 9;
* @return The intList.
*/
io.shiftleft.proto.cpg.Cpg.IntList getIntList();
/**
* .cpg.IntList int_list = 9;
*/
io.shiftleft.proto.cpg.Cpg.IntListOrBuilder getIntListOrBuilder();
/**
* .cpg.LongList long_list = 10;
* @return Whether the longList field is set.
*/
boolean hasLongList();
/**
* .cpg.LongList long_list = 10;
* @return The longList.
*/
io.shiftleft.proto.cpg.Cpg.LongList getLongList();
/**
* .cpg.LongList long_list = 10;
*/
io.shiftleft.proto.cpg.Cpg.LongListOrBuilder getLongListOrBuilder();
/**
* .cpg.FloatList float_list = 11;
* @return Whether the floatList field is set.
*/
boolean hasFloatList();
/**
* .cpg.FloatList float_list = 11;
* @return The floatList.
*/
io.shiftleft.proto.cpg.Cpg.FloatList getFloatList();
/**
* .cpg.FloatList float_list = 11;
*/
io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder getFloatListOrBuilder();
/**
* .cpg.DoubleList double_list = 12;
* @return Whether the doubleList field is set.
*/
boolean hasDoubleList();
/**
* .cpg.DoubleList double_list = 12;
* @return The doubleList.
*/
io.shiftleft.proto.cpg.Cpg.DoubleList getDoubleList();
/**
* .cpg.DoubleList double_list = 12;
*/
io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder getDoubleListOrBuilder();
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return Whether the containedRefs field is set.
*/
boolean hasContainedRefs();
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return The containedRefs.
*/
io.shiftleft.proto.cpg.Cpg.ContainedRefs getContainedRefs();
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder getContainedRefsOrBuilder();
public io.shiftleft.proto.cpg.Cpg.PropertyValue.ValueCase getValueCase();
}
/**
* Protobuf type {@code cpg.PropertyValue}
*/
public static final class PropertyValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.PropertyValue)
PropertyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use PropertyValue.newBuilder() to construct.
private PropertyValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PropertyValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PropertyValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PropertyValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 1;
value_ = s;
break;
}
case 16: {
valueCase_ = 2;
value_ = input.readBool();
break;
}
case 24: {
valueCase_ = 3;
value_ = input.readInt32();
break;
}
case 32: {
valueCase_ = 4;
value_ = input.readInt64();
break;
}
case 45: {
valueCase_ = 5;
value_ = input.readFloat();
break;
}
case 49: {
valueCase_ = 6;
value_ = input.readDouble();
break;
}
case 58: {
io.shiftleft.proto.cpg.Cpg.StringList.Builder subBuilder = null;
if (valueCase_ == 7) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.StringList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.StringList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.StringList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 7;
break;
}
case 66: {
io.shiftleft.proto.cpg.Cpg.BoolList.Builder subBuilder = null;
if (valueCase_ == 8) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.BoolList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.BoolList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.BoolList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 8;
break;
}
case 74: {
io.shiftleft.proto.cpg.Cpg.IntList.Builder subBuilder = null;
if (valueCase_ == 9) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.IntList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.IntList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.IntList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 9;
break;
}
case 82: {
io.shiftleft.proto.cpg.Cpg.LongList.Builder subBuilder = null;
if (valueCase_ == 10) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.LongList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.LongList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.LongList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 10;
break;
}
case 90: {
io.shiftleft.proto.cpg.Cpg.FloatList.Builder subBuilder = null;
if (valueCase_ == 11) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.FloatList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.FloatList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.FloatList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 11;
break;
}
case 98: {
io.shiftleft.proto.cpg.Cpg.DoubleList.Builder subBuilder = null;
if (valueCase_ == 12) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.DoubleList) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.DoubleList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.DoubleList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 12;
break;
}
case 106: {
io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder subBuilder = null;
if (valueCase_ == 13) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.ContainedRefs.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 13;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_PropertyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_PropertyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.PropertyValue.class, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STRING_VALUE(1),
BOOL_VALUE(2),
INT_VALUE(3),
LONG_VALUE(4),
FLOAT_VALUE(5),
DOUBLE_VALUE(6),
STRING_LIST(7),
BOOL_LIST(8),
INT_LIST(9),
LONG_LIST(10),
FLOAT_LIST(11),
DOUBLE_LIST(12),
CONTAINED_REFS(13),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return STRING_VALUE;
case 2: return BOOL_VALUE;
case 3: return INT_VALUE;
case 4: return LONG_VALUE;
case 5: return FLOAT_VALUE;
case 6: return DOUBLE_VALUE;
case 7: return STRING_LIST;
case 8: return BOOL_LIST;
case 9: return INT_LIST;
case 10: return LONG_LIST;
case 11: return FLOAT_LIST;
case 12: return DOUBLE_LIST;
case 13: return CONTAINED_REFS;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int STRING_VALUE_FIELD_NUMBER = 1;
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
public boolean hasStringValue() {
return valueCase_ == 1;
}
/**
* string string_value = 1;
* @return The stringValue.
*/
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (valueCase_ == 1) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 1) {
value_ = s;
}
return s;
}
}
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (valueCase_ == 1) {
ref = value_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 1) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BOOL_VALUE_FIELD_NUMBER = 2;
/**
* bool bool_value = 2;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return valueCase_ == 2;
}
/**
* bool bool_value = 2;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
if (valueCase_ == 2) {
return (java.lang.Boolean) value_;
}
return false;
}
public static final int INT_VALUE_FIELD_NUMBER = 3;
/**
* int32 int_value = 3;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return valueCase_ == 3;
}
/**
* int32 int_value = 3;
* @return The intValue.
*/
@java.lang.Override
public int getIntValue() {
if (valueCase_ == 3) {
return (java.lang.Integer) value_;
}
return 0;
}
public static final int LONG_VALUE_FIELD_NUMBER = 4;
/**
* int64 long_value = 4;
* @return Whether the longValue field is set.
*/
@java.lang.Override
public boolean hasLongValue() {
return valueCase_ == 4;
}
/**
* int64 long_value = 4;
* @return The longValue.
*/
@java.lang.Override
public long getLongValue() {
if (valueCase_ == 4) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int FLOAT_VALUE_FIELD_NUMBER = 5;
/**
* float float_value = 5;
* @return Whether the floatValue field is set.
*/
@java.lang.Override
public boolean hasFloatValue() {
return valueCase_ == 5;
}
/**
* float float_value = 5;
* @return The floatValue.
*/
@java.lang.Override
public float getFloatValue() {
if (valueCase_ == 5) {
return (java.lang.Float) value_;
}
return 0F;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 6;
/**
* double double_value = 6;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return valueCase_ == 6;
}
/**
* double double_value = 6;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
if (valueCase_ == 6) {
return (java.lang.Double) value_;
}
return 0D;
}
public static final int STRING_LIST_FIELD_NUMBER = 7;
/**
* .cpg.StringList string_list = 7;
* @return Whether the stringList field is set.
*/
@java.lang.Override
public boolean hasStringList() {
return valueCase_ == 7;
}
/**
* .cpg.StringList string_list = 7;
* @return The stringList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList getStringList() {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.StringList) value_;
}
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
/**
* .cpg.StringList string_list = 7;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringListOrBuilder getStringListOrBuilder() {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.StringList) value_;
}
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
public static final int BOOL_LIST_FIELD_NUMBER = 8;
/**
* .cpg.BoolList bool_list = 8;
* @return Whether the boolList field is set.
*/
@java.lang.Override
public boolean hasBoolList() {
return valueCase_ == 8;
}
/**
* .cpg.BoolList bool_list = 8;
* @return The boolList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList getBoolList() {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.BoolList) value_;
}
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
/**
* .cpg.BoolList bool_list = 8;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder getBoolListOrBuilder() {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.BoolList) value_;
}
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
public static final int INT_LIST_FIELD_NUMBER = 9;
/**
* .cpg.IntList int_list = 9;
* @return Whether the intList field is set.
*/
@java.lang.Override
public boolean hasIntList() {
return valueCase_ == 9;
}
/**
* .cpg.IntList int_list = 9;
* @return The intList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList getIntList() {
if (valueCase_ == 9) {
return (io.shiftleft.proto.cpg.Cpg.IntList) value_;
}
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
/**
* .cpg.IntList int_list = 9;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntListOrBuilder getIntListOrBuilder() {
if (valueCase_ == 9) {
return (io.shiftleft.proto.cpg.Cpg.IntList) value_;
}
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
public static final int LONG_LIST_FIELD_NUMBER = 10;
/**
* .cpg.LongList long_list = 10;
* @return Whether the longList field is set.
*/
@java.lang.Override
public boolean hasLongList() {
return valueCase_ == 10;
}
/**
* .cpg.LongList long_list = 10;
* @return The longList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList getLongList() {
if (valueCase_ == 10) {
return (io.shiftleft.proto.cpg.Cpg.LongList) value_;
}
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
/**
* .cpg.LongList long_list = 10;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongListOrBuilder getLongListOrBuilder() {
if (valueCase_ == 10) {
return (io.shiftleft.proto.cpg.Cpg.LongList) value_;
}
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
public static final int FLOAT_LIST_FIELD_NUMBER = 11;
/**
* .cpg.FloatList float_list = 11;
* @return Whether the floatList field is set.
*/
@java.lang.Override
public boolean hasFloatList() {
return valueCase_ == 11;
}
/**
* .cpg.FloatList float_list = 11;
* @return The floatList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList getFloatList() {
if (valueCase_ == 11) {
return (io.shiftleft.proto.cpg.Cpg.FloatList) value_;
}
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
/**
* .cpg.FloatList float_list = 11;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder getFloatListOrBuilder() {
if (valueCase_ == 11) {
return (io.shiftleft.proto.cpg.Cpg.FloatList) value_;
}
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
public static final int DOUBLE_LIST_FIELD_NUMBER = 12;
/**
* .cpg.DoubleList double_list = 12;
* @return Whether the doubleList field is set.
*/
@java.lang.Override
public boolean hasDoubleList() {
return valueCase_ == 12;
}
/**
* .cpg.DoubleList double_list = 12;
* @return The doubleList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList getDoubleList() {
if (valueCase_ == 12) {
return (io.shiftleft.proto.cpg.Cpg.DoubleList) value_;
}
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
/**
* .cpg.DoubleList double_list = 12;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder getDoubleListOrBuilder() {
if (valueCase_ == 12) {
return (io.shiftleft.proto.cpg.Cpg.DoubleList) value_;
}
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
public static final int CONTAINED_REFS_FIELD_NUMBER = 13;
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return Whether the containedRefs field is set.
*/
@java.lang.Override
public boolean hasContainedRefs() {
return valueCase_ == 13;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return The containedRefs.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs getContainedRefs() {
if (valueCase_ == 13) {
return (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_;
}
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder getContainedRefsOrBuilder() {
if (valueCase_ == 13) {
return (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_;
}
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (valueCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
if (valueCase_ == 2) {
output.writeBool(
2, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 4) {
output.writeInt64(
4, (long)((java.lang.Long) value_));
}
if (valueCase_ == 5) {
output.writeFloat(
5, (float)((java.lang.Float) value_));
}
if (valueCase_ == 6) {
output.writeDouble(
6, (double)((java.lang.Double) value_));
}
if (valueCase_ == 7) {
output.writeMessage(7, (io.shiftleft.proto.cpg.Cpg.StringList) value_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (io.shiftleft.proto.cpg.Cpg.BoolList) value_);
}
if (valueCase_ == 9) {
output.writeMessage(9, (io.shiftleft.proto.cpg.Cpg.IntList) value_);
}
if (valueCase_ == 10) {
output.writeMessage(10, (io.shiftleft.proto.cpg.Cpg.LongList) value_);
}
if (valueCase_ == 11) {
output.writeMessage(11, (io.shiftleft.proto.cpg.Cpg.FloatList) value_);
}
if (valueCase_ == 12) {
output.writeMessage(12, (io.shiftleft.proto.cpg.Cpg.DoubleList) value_);
}
if (valueCase_ == 13) {
output.writeMessage(13, (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
2, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
4, (long)((java.lang.Long) value_));
}
if (valueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(
5, (float)((java.lang.Float) value_));
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
6, (double)((java.lang.Double) value_));
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.shiftleft.proto.cpg.Cpg.StringList) value_);
}
if (valueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.shiftleft.proto.cpg.Cpg.BoolList) value_);
}
if (valueCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.shiftleft.proto.cpg.Cpg.IntList) value_);
}
if (valueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.shiftleft.proto.cpg.Cpg.LongList) value_);
}
if (valueCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.shiftleft.proto.cpg.Cpg.FloatList) value_);
}
if (valueCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.shiftleft.proto.cpg.Cpg.DoubleList) value_);
}
if (valueCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.PropertyValue)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.PropertyValue other = (io.shiftleft.proto.cpg.Cpg.PropertyValue) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 2:
if (getBoolValue()
!= other.getBoolValue()) return false;
break;
case 3:
if (getIntValue()
!= other.getIntValue()) return false;
break;
case 4:
if (getLongValue()
!= other.getLongValue()) return false;
break;
case 5:
if (java.lang.Float.floatToIntBits(getFloatValue())
!= java.lang.Float.floatToIntBits(
other.getFloatValue())) return false;
break;
case 6:
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
break;
case 7:
if (!getStringList()
.equals(other.getStringList())) return false;
break;
case 8:
if (!getBoolList()
.equals(other.getBoolList())) return false;
break;
case 9:
if (!getIntList()
.equals(other.getIntList())) return false;
break;
case 10:
if (!getLongList()
.equals(other.getLongList())) return false;
break;
case 11:
if (!getFloatList()
.equals(other.getFloatList())) return false;
break;
case 12:
if (!getDoubleList()
.equals(other.getDoubleList())) return false;
break;
case 13:
if (!getContainedRefs()
.equals(other.getContainedRefs())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (valueCase_) {
case 1:
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 2:
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
break;
case 3:
hash = (37 * hash) + INT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getIntValue();
break;
case 4:
hash = (37 * hash) + LONG_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLongValue());
break;
case 5:
hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloatValue());
break;
case 6:
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
break;
case 7:
hash = (37 * hash) + STRING_LIST_FIELD_NUMBER;
hash = (53 * hash) + getStringList().hashCode();
break;
case 8:
hash = (37 * hash) + BOOL_LIST_FIELD_NUMBER;
hash = (53 * hash) + getBoolList().hashCode();
break;
case 9:
hash = (37 * hash) + INT_LIST_FIELD_NUMBER;
hash = (53 * hash) + getIntList().hashCode();
break;
case 10:
hash = (37 * hash) + LONG_LIST_FIELD_NUMBER;
hash = (53 * hash) + getLongList().hashCode();
break;
case 11:
hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER;
hash = (53 * hash) + getFloatList().hashCode();
break;
case 12:
hash = (37 * hash) + DOUBLE_LIST_FIELD_NUMBER;
hash = (53 * hash) + getDoubleList().hashCode();
break;
case 13:
hash = (37 * hash) + CONTAINED_REFS_FIELD_NUMBER;
hash = (53 * hash) + getContainedRefs().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.PropertyValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.PropertyValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.PropertyValue)
io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_PropertyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_PropertyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.PropertyValue.class, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.PropertyValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_PropertyValue_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue build() {
io.shiftleft.proto.cpg.Cpg.PropertyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue buildPartial() {
io.shiftleft.proto.cpg.Cpg.PropertyValue result = new io.shiftleft.proto.cpg.Cpg.PropertyValue(this);
if (valueCase_ == 1) {
result.value_ = value_;
}
if (valueCase_ == 2) {
result.value_ = value_;
}
if (valueCase_ == 3) {
result.value_ = value_;
}
if (valueCase_ == 4) {
result.value_ = value_;
}
if (valueCase_ == 5) {
result.value_ = value_;
}
if (valueCase_ == 6) {
result.value_ = value_;
}
if (valueCase_ == 7) {
if (stringListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = stringListBuilder_.build();
}
}
if (valueCase_ == 8) {
if (boolListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = boolListBuilder_.build();
}
}
if (valueCase_ == 9) {
if (intListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = intListBuilder_.build();
}
}
if (valueCase_ == 10) {
if (longListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = longListBuilder_.build();
}
}
if (valueCase_ == 11) {
if (floatListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = floatListBuilder_.build();
}
}
if (valueCase_ == 12) {
if (doubleListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = doubleListBuilder_.build();
}
}
if (valueCase_ == 13) {
if (containedRefsBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = containedRefsBuilder_.build();
}
}
result.valueCase_ = valueCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.PropertyValue) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.PropertyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.PropertyValue other) {
if (other == io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case STRING_VALUE: {
valueCase_ = 1;
value_ = other.value_;
onChanged();
break;
}
case BOOL_VALUE: {
setBoolValue(other.getBoolValue());
break;
}
case INT_VALUE: {
setIntValue(other.getIntValue());
break;
}
case LONG_VALUE: {
setLongValue(other.getLongValue());
break;
}
case FLOAT_VALUE: {
setFloatValue(other.getFloatValue());
break;
}
case DOUBLE_VALUE: {
setDoubleValue(other.getDoubleValue());
break;
}
case STRING_LIST: {
mergeStringList(other.getStringList());
break;
}
case BOOL_LIST: {
mergeBoolList(other.getBoolList());
break;
}
case INT_LIST: {
mergeIntList(other.getIntList());
break;
}
case LONG_LIST: {
mergeLongList(other.getLongList());
break;
}
case FLOAT_LIST: {
mergeFloatList(other.getFloatList());
break;
}
case DOUBLE_LIST: {
mergeDoubleList(other.getDoubleList());
break;
}
case CONTAINED_REFS: {
mergeContainedRefs(other.getContainedRefs());
break;
}
case VALUE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.PropertyValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.PropertyValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
/**
* string string_value = 1;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return valueCase_ == 1;
}
/**
* string string_value = 1;
* @return The stringValue.
*/
@java.lang.Override
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (valueCase_ == 1) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 1) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string_value = 1;
* @return The bytes for stringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (valueCase_ == 1) {
ref = value_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 1) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string string_value = 1;
* @param value The stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 1;
value_ = value;
onChanged();
return this;
}
/**
* string string_value = 1;
* @return This builder for chaining.
*/
public Builder clearStringValue() {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string string_value = 1;
* @param value The bytes for stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valueCase_ = 1;
value_ = value;
onChanged();
return this;
}
/**
* bool bool_value = 2;
* @return Whether the boolValue field is set.
*/
public boolean hasBoolValue() {
return valueCase_ == 2;
}
/**
* bool bool_value = 2;
* @return The boolValue.
*/
public boolean getBoolValue() {
if (valueCase_ == 2) {
return (java.lang.Boolean) value_;
}
return false;
}
/**
* bool bool_value = 2;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* bool bool_value = 2;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* int32 int_value = 3;
* @return Whether the intValue field is set.
*/
public boolean hasIntValue() {
return valueCase_ == 3;
}
/**
* int32 int_value = 3;
* @return The intValue.
*/
public int getIntValue() {
if (valueCase_ == 3) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
* int32 int_value = 3;
* @param value The intValue to set.
* @return This builder for chaining.
*/
public Builder setIntValue(int value) {
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* int32 int_value = 3;
* @return This builder for chaining.
*/
public Builder clearIntValue() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* int64 long_value = 4;
* @return Whether the longValue field is set.
*/
public boolean hasLongValue() {
return valueCase_ == 4;
}
/**
* int64 long_value = 4;
* @return The longValue.
*/
public long getLongValue() {
if (valueCase_ == 4) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* int64 long_value = 4;
* @param value The longValue to set.
* @return This builder for chaining.
*/
public Builder setLongValue(long value) {
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* int64 long_value = 4;
* @return This builder for chaining.
*/
public Builder clearLongValue() {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* float float_value = 5;
* @return Whether the floatValue field is set.
*/
public boolean hasFloatValue() {
return valueCase_ == 5;
}
/**
* float float_value = 5;
* @return The floatValue.
*/
public float getFloatValue() {
if (valueCase_ == 5) {
return (java.lang.Float) value_;
}
return 0F;
}
/**
* float float_value = 5;
* @param value The floatValue to set.
* @return This builder for chaining.
*/
public Builder setFloatValue(float value) {
valueCase_ = 5;
value_ = value;
onChanged();
return this;
}
/**
* float float_value = 5;
* @return This builder for chaining.
*/
public Builder clearFloatValue() {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* double double_value = 6;
* @return Whether the doubleValue field is set.
*/
public boolean hasDoubleValue() {
return valueCase_ == 6;
}
/**
* double double_value = 6;
* @return The doubleValue.
*/
public double getDoubleValue() {
if (valueCase_ == 6) {
return (java.lang.Double) value_;
}
return 0D;
}
/**
* double double_value = 6;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
valueCase_ = 6;
value_ = value;
onChanged();
return this;
}
/**
* double double_value = 6;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.StringList, io.shiftleft.proto.cpg.Cpg.StringList.Builder, io.shiftleft.proto.cpg.Cpg.StringListOrBuilder> stringListBuilder_;
/**
* .cpg.StringList string_list = 7;
* @return Whether the stringList field is set.
*/
@java.lang.Override
public boolean hasStringList() {
return valueCase_ == 7;
}
/**
* .cpg.StringList string_list = 7;
* @return The stringList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList getStringList() {
if (stringListBuilder_ == null) {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.StringList) value_;
}
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
} else {
if (valueCase_ == 7) {
return stringListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
}
/**
* .cpg.StringList string_list = 7;
*/
public Builder setStringList(io.shiftleft.proto.cpg.Cpg.StringList value) {
if (stringListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
stringListBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .cpg.StringList string_list = 7;
*/
public Builder setStringList(
io.shiftleft.proto.cpg.Cpg.StringList.Builder builderForValue) {
if (stringListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
stringListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 7;
return this;
}
/**
* .cpg.StringList string_list = 7;
*/
public Builder mergeStringList(io.shiftleft.proto.cpg.Cpg.StringList value) {
if (stringListBuilder_ == null) {
if (valueCase_ == 7 &&
value_ != io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.StringList.newBuilder((io.shiftleft.proto.cpg.Cpg.StringList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 7) {
stringListBuilder_.mergeFrom(value);
}
stringListBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .cpg.StringList string_list = 7;
*/
public Builder clearStringList() {
if (stringListBuilder_ == null) {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
}
stringListBuilder_.clear();
}
return this;
}
/**
* .cpg.StringList string_list = 7;
*/
public io.shiftleft.proto.cpg.Cpg.StringList.Builder getStringListBuilder() {
return getStringListFieldBuilder().getBuilder();
}
/**
* .cpg.StringList string_list = 7;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringListOrBuilder getStringListOrBuilder() {
if ((valueCase_ == 7) && (stringListBuilder_ != null)) {
return stringListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.StringList) value_;
}
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
}
/**
* .cpg.StringList string_list = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.StringList, io.shiftleft.proto.cpg.Cpg.StringList.Builder, io.shiftleft.proto.cpg.Cpg.StringListOrBuilder>
getStringListFieldBuilder() {
if (stringListBuilder_ == null) {
if (!(valueCase_ == 7)) {
value_ = io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
stringListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.StringList, io.shiftleft.proto.cpg.Cpg.StringList.Builder, io.shiftleft.proto.cpg.Cpg.StringListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.StringList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 7;
onChanged();;
return stringListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.BoolList, io.shiftleft.proto.cpg.Cpg.BoolList.Builder, io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder> boolListBuilder_;
/**
* .cpg.BoolList bool_list = 8;
* @return Whether the boolList field is set.
*/
@java.lang.Override
public boolean hasBoolList() {
return valueCase_ == 8;
}
/**
* .cpg.BoolList bool_list = 8;
* @return The boolList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList getBoolList() {
if (boolListBuilder_ == null) {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.BoolList) value_;
}
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return boolListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
}
/**
* .cpg.BoolList bool_list = 8;
*/
public Builder setBoolList(io.shiftleft.proto.cpg.Cpg.BoolList value) {
if (boolListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
boolListBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .cpg.BoolList bool_list = 8;
*/
public Builder setBoolList(
io.shiftleft.proto.cpg.Cpg.BoolList.Builder builderForValue) {
if (boolListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
boolListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .cpg.BoolList bool_list = 8;
*/
public Builder mergeBoolList(io.shiftleft.proto.cpg.Cpg.BoolList value) {
if (boolListBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.BoolList.newBuilder((io.shiftleft.proto.cpg.Cpg.BoolList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
boolListBuilder_.mergeFrom(value);
}
boolListBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .cpg.BoolList bool_list = 8;
*/
public Builder clearBoolList() {
if (boolListBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
boolListBuilder_.clear();
}
return this;
}
/**
* .cpg.BoolList bool_list = 8;
*/
public io.shiftleft.proto.cpg.Cpg.BoolList.Builder getBoolListBuilder() {
return getBoolListFieldBuilder().getBuilder();
}
/**
* .cpg.BoolList bool_list = 8;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder getBoolListOrBuilder() {
if ((valueCase_ == 8) && (boolListBuilder_ != null)) {
return boolListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.BoolList) value_;
}
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
}
/**
* .cpg.BoolList bool_list = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.BoolList, io.shiftleft.proto.cpg.Cpg.BoolList.Builder, io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder>
getBoolListFieldBuilder() {
if (boolListBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
boolListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.BoolList, io.shiftleft.proto.cpg.Cpg.BoolList.Builder, io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.BoolList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();;
return boolListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.IntList, io.shiftleft.proto.cpg.Cpg.IntList.Builder, io.shiftleft.proto.cpg.Cpg.IntListOrBuilder> intListBuilder_;
/**
* .cpg.IntList int_list = 9;
* @return Whether the intList field is set.
*/
@java.lang.Override
public boolean hasIntList() {
return valueCase_ == 9;
}
/**
* .cpg.IntList int_list = 9;
* @return The intList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList getIntList() {
if (intListBuilder_ == null) {
if (valueCase_ == 9) {
return (io.shiftleft.proto.cpg.Cpg.IntList) value_;
}
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
} else {
if (valueCase_ == 9) {
return intListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
}
/**
* .cpg.IntList int_list = 9;
*/
public Builder setIntList(io.shiftleft.proto.cpg.Cpg.IntList value) {
if (intListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
intListBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .cpg.IntList int_list = 9;
*/
public Builder setIntList(
io.shiftleft.proto.cpg.Cpg.IntList.Builder builderForValue) {
if (intListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
intListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 9;
return this;
}
/**
* .cpg.IntList int_list = 9;
*/
public Builder mergeIntList(io.shiftleft.proto.cpg.Cpg.IntList value) {
if (intListBuilder_ == null) {
if (valueCase_ == 9 &&
value_ != io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.IntList.newBuilder((io.shiftleft.proto.cpg.Cpg.IntList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 9) {
intListBuilder_.mergeFrom(value);
}
intListBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .cpg.IntList int_list = 9;
*/
public Builder clearIntList() {
if (intListBuilder_ == null) {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
}
intListBuilder_.clear();
}
return this;
}
/**
* .cpg.IntList int_list = 9;
*/
public io.shiftleft.proto.cpg.Cpg.IntList.Builder getIntListBuilder() {
return getIntListFieldBuilder().getBuilder();
}
/**
* .cpg.IntList int_list = 9;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntListOrBuilder getIntListOrBuilder() {
if ((valueCase_ == 9) && (intListBuilder_ != null)) {
return intListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 9) {
return (io.shiftleft.proto.cpg.Cpg.IntList) value_;
}
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
}
/**
* .cpg.IntList int_list = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.IntList, io.shiftleft.proto.cpg.Cpg.IntList.Builder, io.shiftleft.proto.cpg.Cpg.IntListOrBuilder>
getIntListFieldBuilder() {
if (intListBuilder_ == null) {
if (!(valueCase_ == 9)) {
value_ = io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
intListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.IntList, io.shiftleft.proto.cpg.Cpg.IntList.Builder, io.shiftleft.proto.cpg.Cpg.IntListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.IntList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 9;
onChanged();;
return intListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.LongList, io.shiftleft.proto.cpg.Cpg.LongList.Builder, io.shiftleft.proto.cpg.Cpg.LongListOrBuilder> longListBuilder_;
/**
* .cpg.LongList long_list = 10;
* @return Whether the longList field is set.
*/
@java.lang.Override
public boolean hasLongList() {
return valueCase_ == 10;
}
/**
* .cpg.LongList long_list = 10;
* @return The longList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList getLongList() {
if (longListBuilder_ == null) {
if (valueCase_ == 10) {
return (io.shiftleft.proto.cpg.Cpg.LongList) value_;
}
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
} else {
if (valueCase_ == 10) {
return longListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
}
/**
* .cpg.LongList long_list = 10;
*/
public Builder setLongList(io.shiftleft.proto.cpg.Cpg.LongList value) {
if (longListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
longListBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .cpg.LongList long_list = 10;
*/
public Builder setLongList(
io.shiftleft.proto.cpg.Cpg.LongList.Builder builderForValue) {
if (longListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
longListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 10;
return this;
}
/**
* .cpg.LongList long_list = 10;
*/
public Builder mergeLongList(io.shiftleft.proto.cpg.Cpg.LongList value) {
if (longListBuilder_ == null) {
if (valueCase_ == 10 &&
value_ != io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.LongList.newBuilder((io.shiftleft.proto.cpg.Cpg.LongList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 10) {
longListBuilder_.mergeFrom(value);
}
longListBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .cpg.LongList long_list = 10;
*/
public Builder clearLongList() {
if (longListBuilder_ == null) {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
}
longListBuilder_.clear();
}
return this;
}
/**
* .cpg.LongList long_list = 10;
*/
public io.shiftleft.proto.cpg.Cpg.LongList.Builder getLongListBuilder() {
return getLongListFieldBuilder().getBuilder();
}
/**
* .cpg.LongList long_list = 10;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongListOrBuilder getLongListOrBuilder() {
if ((valueCase_ == 10) && (longListBuilder_ != null)) {
return longListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 10) {
return (io.shiftleft.proto.cpg.Cpg.LongList) value_;
}
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
}
/**
* .cpg.LongList long_list = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.LongList, io.shiftleft.proto.cpg.Cpg.LongList.Builder, io.shiftleft.proto.cpg.Cpg.LongListOrBuilder>
getLongListFieldBuilder() {
if (longListBuilder_ == null) {
if (!(valueCase_ == 10)) {
value_ = io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
longListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.LongList, io.shiftleft.proto.cpg.Cpg.LongList.Builder, io.shiftleft.proto.cpg.Cpg.LongListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.LongList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 10;
onChanged();;
return longListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.FloatList, io.shiftleft.proto.cpg.Cpg.FloatList.Builder, io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder> floatListBuilder_;
/**
* .cpg.FloatList float_list = 11;
* @return Whether the floatList field is set.
*/
@java.lang.Override
public boolean hasFloatList() {
return valueCase_ == 11;
}
/**
* .cpg.FloatList float_list = 11;
* @return The floatList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList getFloatList() {
if (floatListBuilder_ == null) {
if (valueCase_ == 11) {
return (io.shiftleft.proto.cpg.Cpg.FloatList) value_;
}
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
} else {
if (valueCase_ == 11) {
return floatListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
}
/**
* .cpg.FloatList float_list = 11;
*/
public Builder setFloatList(io.shiftleft.proto.cpg.Cpg.FloatList value) {
if (floatListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
floatListBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .cpg.FloatList float_list = 11;
*/
public Builder setFloatList(
io.shiftleft.proto.cpg.Cpg.FloatList.Builder builderForValue) {
if (floatListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
floatListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 11;
return this;
}
/**
* .cpg.FloatList float_list = 11;
*/
public Builder mergeFloatList(io.shiftleft.proto.cpg.Cpg.FloatList value) {
if (floatListBuilder_ == null) {
if (valueCase_ == 11 &&
value_ != io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.FloatList.newBuilder((io.shiftleft.proto.cpg.Cpg.FloatList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 11) {
floatListBuilder_.mergeFrom(value);
}
floatListBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .cpg.FloatList float_list = 11;
*/
public Builder clearFloatList() {
if (floatListBuilder_ == null) {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
}
floatListBuilder_.clear();
}
return this;
}
/**
* .cpg.FloatList float_list = 11;
*/
public io.shiftleft.proto.cpg.Cpg.FloatList.Builder getFloatListBuilder() {
return getFloatListFieldBuilder().getBuilder();
}
/**
* .cpg.FloatList float_list = 11;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder getFloatListOrBuilder() {
if ((valueCase_ == 11) && (floatListBuilder_ != null)) {
return floatListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 11) {
return (io.shiftleft.proto.cpg.Cpg.FloatList) value_;
}
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
}
/**
* .cpg.FloatList float_list = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.FloatList, io.shiftleft.proto.cpg.Cpg.FloatList.Builder, io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder>
getFloatListFieldBuilder() {
if (floatListBuilder_ == null) {
if (!(valueCase_ == 11)) {
value_ = io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.FloatList, io.shiftleft.proto.cpg.Cpg.FloatList.Builder, io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.FloatList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 11;
onChanged();;
return floatListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DoubleList, io.shiftleft.proto.cpg.Cpg.DoubleList.Builder, io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder> doubleListBuilder_;
/**
* .cpg.DoubleList double_list = 12;
* @return Whether the doubleList field is set.
*/
@java.lang.Override
public boolean hasDoubleList() {
return valueCase_ == 12;
}
/**
* .cpg.DoubleList double_list = 12;
* @return The doubleList.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList getDoubleList() {
if (doubleListBuilder_ == null) {
if (valueCase_ == 12) {
return (io.shiftleft.proto.cpg.Cpg.DoubleList) value_;
}
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
} else {
if (valueCase_ == 12) {
return doubleListBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
}
/**
* .cpg.DoubleList double_list = 12;
*/
public Builder setDoubleList(io.shiftleft.proto.cpg.Cpg.DoubleList value) {
if (doubleListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
doubleListBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .cpg.DoubleList double_list = 12;
*/
public Builder setDoubleList(
io.shiftleft.proto.cpg.Cpg.DoubleList.Builder builderForValue) {
if (doubleListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
doubleListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 12;
return this;
}
/**
* .cpg.DoubleList double_list = 12;
*/
public Builder mergeDoubleList(io.shiftleft.proto.cpg.Cpg.DoubleList value) {
if (doubleListBuilder_ == null) {
if (valueCase_ == 12 &&
value_ != io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.DoubleList.newBuilder((io.shiftleft.proto.cpg.Cpg.DoubleList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 12) {
doubleListBuilder_.mergeFrom(value);
}
doubleListBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .cpg.DoubleList double_list = 12;
*/
public Builder clearDoubleList() {
if (doubleListBuilder_ == null) {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
}
doubleListBuilder_.clear();
}
return this;
}
/**
* .cpg.DoubleList double_list = 12;
*/
public io.shiftleft.proto.cpg.Cpg.DoubleList.Builder getDoubleListBuilder() {
return getDoubleListFieldBuilder().getBuilder();
}
/**
* .cpg.DoubleList double_list = 12;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder getDoubleListOrBuilder() {
if ((valueCase_ == 12) && (doubleListBuilder_ != null)) {
return doubleListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 12) {
return (io.shiftleft.proto.cpg.Cpg.DoubleList) value_;
}
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
}
/**
* .cpg.DoubleList double_list = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DoubleList, io.shiftleft.proto.cpg.Cpg.DoubleList.Builder, io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder>
getDoubleListFieldBuilder() {
if (doubleListBuilder_ == null) {
if (!(valueCase_ == 12)) {
value_ = io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
doubleListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DoubleList, io.shiftleft.proto.cpg.Cpg.DoubleList.Builder, io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.DoubleList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 12;
onChanged();;
return doubleListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.ContainedRefs, io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder, io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder> containedRefsBuilder_;
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return Whether the containedRefs field is set.
*/
@java.lang.Override
public boolean hasContainedRefs() {
return valueCase_ == 13;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
* @return The containedRefs.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs getContainedRefs() {
if (containedRefsBuilder_ == null) {
if (valueCase_ == 13) {
return (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_;
}
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
} else {
if (valueCase_ == 13) {
return containedRefsBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
public Builder setContainedRefs(io.shiftleft.proto.cpg.Cpg.ContainedRefs value) {
if (containedRefsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
containedRefsBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
public Builder setContainedRefs(
io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder builderForValue) {
if (containedRefsBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
containedRefsBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 13;
return this;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
public Builder mergeContainedRefs(io.shiftleft.proto.cpg.Cpg.ContainedRefs value) {
if (containedRefsBuilder_ == null) {
if (valueCase_ == 13 &&
value_ != io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.ContainedRefs.newBuilder((io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 13) {
containedRefsBuilder_.mergeFrom(value);
}
containedRefsBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
public Builder clearContainedRefs() {
if (containedRefsBuilder_ == null) {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
}
containedRefsBuilder_.clear();
}
return this;
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
public io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder getContainedRefsBuilder() {
return getContainedRefsFieldBuilder().getBuilder();
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder getContainedRefsOrBuilder() {
if ((valueCase_ == 13) && (containedRefsBuilder_ != null)) {
return containedRefsBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 13) {
return (io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_;
}
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
}
/**
* .cpg.ContainedRefs contained_refs = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.ContainedRefs, io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder, io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder>
getContainedRefsFieldBuilder() {
if (containedRefsBuilder_ == null) {
if (!(valueCase_ == 13)) {
value_ = io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
containedRefsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.ContainedRefs, io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder, io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.ContainedRefs) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 13;
onChanged();;
return containedRefsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.PropertyValue)
}
// @@protoc_insertion_point(class_scope:cpg.PropertyValue)
private static final io.shiftleft.proto.cpg.Cpg.PropertyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.PropertyValue();
}
public static io.shiftleft.proto.cpg.Cpg.PropertyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PropertyValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PropertyValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainedRefsOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.ContainedRefs)
com.google.protobuf.MessageOrBuilder {
/**
* string local_name = 1;
* @return The localName.
*/
java.lang.String getLocalName();
/**
* string local_name = 1;
* @return The bytes for localName.
*/
com.google.protobuf.ByteString
getLocalNameBytes();
/**
* repeated int64 refs = 2;
* @return A list containing the refs.
*/
java.util.List getRefsList();
/**
* repeated int64 refs = 2;
* @return The count of refs.
*/
int getRefsCount();
/**
* repeated int64 refs = 2;
* @param index The index of the element to return.
* @return The refs at the given index.
*/
long getRefs(int index);
}
/**
* Protobuf type {@code cpg.ContainedRefs}
*/
public static final class ContainedRefs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.ContainedRefs)
ContainedRefsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainedRefs.newBuilder() to construct.
private ContainedRefs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainedRefs() {
localName_ = "";
refs_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainedRefs();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainedRefs(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
localName_ = s;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
refs_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
refs_.addLong(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
refs_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
refs_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
refs_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_ContainedRefs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_ContainedRefs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.ContainedRefs.class, io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder.class);
}
public static final int LOCAL_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object localName_;
/**
* string local_name = 1;
* @return The localName.
*/
@java.lang.Override
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
}
}
/**
* string local_name = 1;
* @return The bytes for localName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REFS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.LongList refs_;
/**
* repeated int64 refs = 2;
* @return A list containing the refs.
*/
@java.lang.Override
public java.util.List
getRefsList() {
return refs_;
}
/**
* repeated int64 refs = 2;
* @return The count of refs.
*/
public int getRefsCount() {
return refs_.size();
}
/**
* repeated int64 refs = 2;
* @param index The index of the element to return.
* @return The refs at the given index.
*/
public long getRefs(int index) {
return refs_.getLong(index);
}
private int refsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, localName_);
}
if (getRefsList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(refsMemoizedSerializedSize);
}
for (int i = 0; i < refs_.size(); i++) {
output.writeInt64NoTag(refs_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, localName_);
}
{
int dataSize = 0;
for (int i = 0; i < refs_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(refs_.getLong(i));
}
size += dataSize;
if (!getRefsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
refsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.ContainedRefs)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.ContainedRefs other = (io.shiftleft.proto.cpg.Cpg.ContainedRefs) obj;
if (!getLocalName()
.equals(other.getLocalName())) return false;
if (!getRefsList()
.equals(other.getRefsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOCAL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalName().hashCode();
if (getRefsCount() > 0) {
hash = (37 * hash) + REFS_FIELD_NUMBER;
hash = (53 * hash) + getRefsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.ContainedRefs prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.ContainedRefs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.ContainedRefs)
io.shiftleft.proto.cpg.Cpg.ContainedRefsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_ContainedRefs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_ContainedRefs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.ContainedRefs.class, io.shiftleft.proto.cpg.Cpg.ContainedRefs.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.ContainedRefs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
localName_ = "";
refs_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_ContainedRefs_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs build() {
io.shiftleft.proto.cpg.Cpg.ContainedRefs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs buildPartial() {
io.shiftleft.proto.cpg.Cpg.ContainedRefs result = new io.shiftleft.proto.cpg.Cpg.ContainedRefs(this);
int from_bitField0_ = bitField0_;
result.localName_ = localName_;
if (((bitField0_ & 0x00000001) != 0)) {
refs_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.refs_ = refs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.ContainedRefs) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.ContainedRefs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.ContainedRefs other) {
if (other == io.shiftleft.proto.cpg.Cpg.ContainedRefs.getDefaultInstance()) return this;
if (!other.getLocalName().isEmpty()) {
localName_ = other.localName_;
onChanged();
}
if (!other.refs_.isEmpty()) {
if (refs_.isEmpty()) {
refs_ = other.refs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRefsIsMutable();
refs_.addAll(other.refs_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.ContainedRefs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.ContainedRefs) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object localName_ = "";
/**
* string local_name = 1;
* @return The localName.
*/
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string local_name = 1;
* @return The bytes for localName.
*/
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string local_name = 1;
* @param value The localName to set.
* @return This builder for chaining.
*/
public Builder setLocalName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localName_ = value;
onChanged();
return this;
}
/**
* string local_name = 1;
* @return This builder for chaining.
*/
public Builder clearLocalName() {
localName_ = getDefaultInstance().getLocalName();
onChanged();
return this;
}
/**
* string local_name = 1;
* @param value The bytes for localName to set.
* @return This builder for chaining.
*/
public Builder setLocalNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localName_ = value;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList refs_ = emptyLongList();
private void ensureRefsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
refs_ = mutableCopy(refs_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int64 refs = 2;
* @return A list containing the refs.
*/
public java.util.List
getRefsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(refs_) : refs_;
}
/**
* repeated int64 refs = 2;
* @return The count of refs.
*/
public int getRefsCount() {
return refs_.size();
}
/**
* repeated int64 refs = 2;
* @param index The index of the element to return.
* @return The refs at the given index.
*/
public long getRefs(int index) {
return refs_.getLong(index);
}
/**
* repeated int64 refs = 2;
* @param index The index to set the value at.
* @param value The refs to set.
* @return This builder for chaining.
*/
public Builder setRefs(
int index, long value) {
ensureRefsIsMutable();
refs_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 refs = 2;
* @param value The refs to add.
* @return This builder for chaining.
*/
public Builder addRefs(long value) {
ensureRefsIsMutable();
refs_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 refs = 2;
* @param values The refs to add.
* @return This builder for chaining.
*/
public Builder addAllRefs(
java.lang.Iterable extends java.lang.Long> values) {
ensureRefsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, refs_);
onChanged();
return this;
}
/**
* repeated int64 refs = 2;
* @return This builder for chaining.
*/
public Builder clearRefs() {
refs_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.ContainedRefs)
}
// @@protoc_insertion_point(class_scope:cpg.ContainedRefs)
private static final io.shiftleft.proto.cpg.Cpg.ContainedRefs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.ContainedRefs();
}
public static io.shiftleft.proto.cpg.Cpg.ContainedRefs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContainedRefs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainedRefs(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.ContainedRefs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.StringList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string values = 1;
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
* repeated string values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString
getValuesBytes(int index);
}
/**
* Protobuf type {@code cpg.StringList}
*/
public static final class StringList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.StringList)
StringListOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringList.newBuilder() to construct.
private StringList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringList() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StringList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.StringList.class, io.shiftleft.proto.cpg.Cpg.StringList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList values_;
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.StringList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.StringList other = (io.shiftleft.proto.cpg.Cpg.StringList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.StringList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.StringList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.StringList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.StringList)
io.shiftleft.proto.cpg.Cpg.StringListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.StringList.class, io.shiftleft.proto.cpg.Cpg.StringList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.StringList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_StringList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList build() {
io.shiftleft.proto.cpg.Cpg.StringList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList buildPartial() {
io.shiftleft.proto.cpg.Cpg.StringList result = new io.shiftleft.proto.cpg.Cpg.StringList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.StringList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.StringList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.StringList other) {
if (other == io.shiftleft.proto.cpg.Cpg.StringList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.StringList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.StringList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
* repeated string values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string values = 1;
* @param value The bytes of the values to add.
* @return This builder for chaining.
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.StringList)
}
// @@protoc_insertion_point(class_scope:cpg.StringList)
private static final io.shiftleft.proto.cpg.Cpg.StringList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.StringList();
}
public static io.shiftleft.proto.cpg.Cpg.StringList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StringList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.StringList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BoolListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.BoolList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bool values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated bool values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated bool values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
boolean getValues(int index);
}
/**
* Protobuf type {@code cpg.BoolList}
*/
public static final class BoolList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.BoolList)
BoolListOrBuilder {
private static final long serialVersionUID = 0L;
// Use BoolList.newBuilder() to construct.
private BoolList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BoolList() {
values_ = emptyBooleanList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BoolList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BoolList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = newBooleanList();
mutable_bitField0_ |= 0x00000001;
}
values_.addBoolean(input.readBool());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
values_ = newBooleanList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
values_.addBoolean(input.readBool());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_BoolList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_BoolList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.BoolList.class, io.shiftleft.proto.cpg.Cpg.BoolList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.BooleanList values_;
/**
* repeated bool values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated bool values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated bool values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public boolean getValues(int index) {
return values_.getBoolean(index);
}
private int valuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeBoolNoTag(values_.getBoolean(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 1 * getValuesList().size();
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.BoolList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.BoolList other = (io.shiftleft.proto.cpg.Cpg.BoolList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.BoolList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.BoolList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.BoolList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.BoolList)
io.shiftleft.proto.cpg.Cpg.BoolListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_BoolList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_BoolList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.BoolList.class, io.shiftleft.proto.cpg.Cpg.BoolList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.BoolList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_BoolList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList build() {
io.shiftleft.proto.cpg.Cpg.BoolList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList buildPartial() {
io.shiftleft.proto.cpg.Cpg.BoolList result = new io.shiftleft.proto.cpg.Cpg.BoolList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.BoolList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.BoolList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.BoolList other) {
if (other == io.shiftleft.proto.cpg.Cpg.BoolList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.BoolList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.BoolList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.BooleanList values_ = emptyBooleanList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = mutableCopy(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bool values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
* repeated bool values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated bool values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public boolean getValues(int index) {
return values_.getBoolean(index);
}
/**
* repeated bool values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, boolean value) {
ensureValuesIsMutable();
values_.setBoolean(index, value);
onChanged();
return this;
}
/**
* repeated bool values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(boolean value) {
ensureValuesIsMutable();
values_.addBoolean(value);
onChanged();
return this;
}
/**
* repeated bool values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated bool values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.BoolList)
}
// @@protoc_insertion_point(class_scope:cpg.BoolList)
private static final io.shiftleft.proto.cpg.Cpg.BoolList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.BoolList();
}
public static io.shiftleft.proto.cpg.Cpg.BoolList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BoolList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BoolList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.BoolList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.IntList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int32 values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated int32 values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated int32 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
int getValues(int index);
}
/**
* Protobuf type {@code cpg.IntList}
*/
public static final class IntList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.IntList)
IntListOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntList.newBuilder() to construct.
private IntList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntList() {
values_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IntList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
values_.addInt(input.readInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
values_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
values_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_IntList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_IntList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.IntList.class, io.shiftleft.proto.cpg.Cpg.IntList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.IntList values_;
/**
* repeated int32 values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated int32 values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated int32 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public int getValues(int index) {
return values_.getInt(index);
}
private int valuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeInt32NoTag(values_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(values_.getInt(i));
}
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.IntList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.IntList other = (io.shiftleft.proto.cpg.Cpg.IntList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.IntList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.IntList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.IntList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.IntList)
io.shiftleft.proto.cpg.Cpg.IntListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_IntList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_IntList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.IntList.class, io.shiftleft.proto.cpg.Cpg.IntList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.IntList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_IntList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList build() {
io.shiftleft.proto.cpg.Cpg.IntList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList buildPartial() {
io.shiftleft.proto.cpg.Cpg.IntList result = new io.shiftleft.proto.cpg.Cpg.IntList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.IntList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.IntList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.IntList other) {
if (other == io.shiftleft.proto.cpg.Cpg.IntList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.IntList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.IntList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList values_ = emptyIntList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = mutableCopy(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
* repeated int32 values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated int32 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public int getValues(int index) {
return values_.getInt(index);
}
/**
* repeated int32 values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, int value) {
ensureValuesIsMutable();
values_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(int value) {
ensureValuesIsMutable();
values_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Integer> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated int32 values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.IntList)
}
// @@protoc_insertion_point(class_scope:cpg.IntList)
private static final io.shiftleft.proto.cpg.Cpg.IntList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.IntList();
}
public static io.shiftleft.proto.cpg.Cpg.IntList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IntList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.IntList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.LongList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int64 values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated int64 values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated int64 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
long getValues(int index);
}
/**
* Protobuf type {@code cpg.LongList}
*/
public static final class LongList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.LongList)
LongListOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongList.newBuilder() to construct.
private LongList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongList() {
values_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LongList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
values_.addLong(input.readInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
values_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
values_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_LongList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_LongList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.LongList.class, io.shiftleft.proto.cpg.Cpg.LongList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.LongList values_;
/**
* repeated int64 values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated int64 values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated int64 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public long getValues(int index) {
return values_.getLong(index);
}
private int valuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeInt64NoTag(values_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(values_.getLong(i));
}
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.LongList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.LongList other = (io.shiftleft.proto.cpg.Cpg.LongList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.LongList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.LongList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.LongList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.LongList)
io.shiftleft.proto.cpg.Cpg.LongListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_LongList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_LongList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.LongList.class, io.shiftleft.proto.cpg.Cpg.LongList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.LongList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_LongList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList build() {
io.shiftleft.proto.cpg.Cpg.LongList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList buildPartial() {
io.shiftleft.proto.cpg.Cpg.LongList result = new io.shiftleft.proto.cpg.Cpg.LongList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.LongList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.LongList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.LongList other) {
if (other == io.shiftleft.proto.cpg.Cpg.LongList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.LongList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.LongList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList values_ = emptyLongList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = mutableCopy(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int64 values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
* repeated int64 values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated int64 values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public long getValues(int index) {
return values_.getLong(index);
}
/**
* repeated int64 values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, long value) {
ensureValuesIsMutable();
values_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(long value) {
ensureValuesIsMutable();
values_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Long> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated int64 values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.LongList)
}
// @@protoc_insertion_point(class_scope:cpg.LongList)
private static final io.shiftleft.proto.cpg.Cpg.LongList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.LongList();
}
public static io.shiftleft.proto.cpg.Cpg.LongList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LongList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LongList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.LongList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FloatListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.FloatList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated float values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated float values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated float values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
float getValues(int index);
}
/**
* Protobuf type {@code cpg.FloatList}
*/
public static final class FloatList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.FloatList)
FloatListOrBuilder {
private static final long serialVersionUID = 0L;
// Use FloatList.newBuilder() to construct.
private FloatList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FloatList() {
values_ = emptyFloatList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FloatList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FloatList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 13: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = newFloatList();
mutable_bitField0_ |= 0x00000001;
}
values_.addFloat(input.readFloat());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
values_ = newFloatList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
values_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_FloatList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_FloatList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.FloatList.class, io.shiftleft.proto.cpg.Cpg.FloatList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.FloatList values_;
/**
* repeated float values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated float values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated float values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public float getValues(int index) {
return values_.getFloat(index);
}
private int valuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeFloatNoTag(values_.getFloat(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 4 * getValuesList().size();
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.FloatList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.FloatList other = (io.shiftleft.proto.cpg.Cpg.FloatList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.FloatList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.FloatList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.FloatList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.FloatList)
io.shiftleft.proto.cpg.Cpg.FloatListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_FloatList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_FloatList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.FloatList.class, io.shiftleft.proto.cpg.Cpg.FloatList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.FloatList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_FloatList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList build() {
io.shiftleft.proto.cpg.Cpg.FloatList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList buildPartial() {
io.shiftleft.proto.cpg.Cpg.FloatList result = new io.shiftleft.proto.cpg.Cpg.FloatList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.FloatList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.FloatList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.FloatList other) {
if (other == io.shiftleft.proto.cpg.Cpg.FloatList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.FloatList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.FloatList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.FloatList values_ = emptyFloatList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = mutableCopy(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated float values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
* repeated float values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated float values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public float getValues(int index) {
return values_.getFloat(index);
}
/**
* repeated float values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, float value) {
ensureValuesIsMutable();
values_.setFloat(index, value);
onChanged();
return this;
}
/**
* repeated float values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(float value) {
ensureValuesIsMutable();
values_.addFloat(value);
onChanged();
return this;
}
/**
* repeated float values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Float> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated float values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.FloatList)
}
// @@protoc_insertion_point(class_scope:cpg.FloatList)
private static final io.shiftleft.proto.cpg.Cpg.FloatList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.FloatList();
}
public static io.shiftleft.proto.cpg.Cpg.FloatList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FloatList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FloatList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.FloatList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DoubleListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.DoubleList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
* repeated double values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated double values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
double getValues(int index);
}
/**
* Protobuf type {@code cpg.DoubleList}
*/
public static final class DoubleList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DoubleList)
DoubleListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DoubleList.newBuilder() to construct.
private DoubleList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DoubleList() {
values_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DoubleList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DoubleList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
values_.addDouble(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
values_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
values_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DoubleList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DoubleList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DoubleList.class, io.shiftleft.proto.cpg.Cpg.DoubleList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.DoubleList values_;
/**
* repeated double values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated double values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated double values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public double getValues(int index) {
return values_.getDouble(index);
}
private int valuesMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeDoubleNoTag(values_.getDouble(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getValuesList().size();
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DoubleList)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DoubleList other = (io.shiftleft.proto.cpg.Cpg.DoubleList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DoubleList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.DoubleList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.DoubleList)
io.shiftleft.proto.cpg.Cpg.DoubleListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DoubleList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DoubleList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DoubleList.class, io.shiftleft.proto.cpg.Cpg.DoubleList.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.DoubleList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
values_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DoubleList_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList build() {
io.shiftleft.proto.cpg.Cpg.DoubleList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList buildPartial() {
io.shiftleft.proto.cpg.Cpg.DoubleList result = new io.shiftleft.proto.cpg.Cpg.DoubleList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.DoubleList) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.DoubleList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.DoubleList other) {
if (other == io.shiftleft.proto.cpg.Cpg.DoubleList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.DoubleList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.DoubleList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = mutableCopy(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
* repeated double values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated double values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public double getValues(int index) {
return values_.getDouble(index);
}
/**
* repeated double values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, double value) {
ensureValuesIsMutable();
values_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(double value) {
ensureValuesIsMutable();
values_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Double> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated double values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.DoubleList)
}
// @@protoc_insertion_point(class_scope:cpg.DoubleList)
private static final io.shiftleft.proto.cpg.Cpg.DoubleList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.DoubleList();
}
public static io.shiftleft.proto.cpg.Cpg.DoubleList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DoubleList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DoubleList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DoubleList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CpgStructOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgStruct)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
java.util.List
getNodeList();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode(int index);
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
int getNodeCount();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeOrBuilderList();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder(
int index);
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
java.util.List
getEdgeList();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge(int index);
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
int getEdgeCount();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeOrBuilderList();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder(
int index);
}
/**
* Protobuf type {@code cpg.CpgStruct}
*/
public static final class CpgStruct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgStruct)
CpgStructOrBuilder {
private static final long serialVersionUID = 0L;
// Use CpgStruct.newBuilder() to construct.
private CpgStruct(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CpgStruct() {
node_ = java.util.Collections.emptyList();
edge_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CpgStruct();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CpgStruct(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
node_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
node_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
edge_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
edge_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
node_ = java.util.Collections.unmodifiableList(node_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
edge_ = java.util.Collections.unmodifiableList(edge_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Builder.class);
}
public interface NodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgStruct.Node)
com.google.protobuf.MessageOrBuilder {
/**
* int64 key = 1;
* @return The key.
*/
long getKey();
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The type.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType getType();
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
java.util.List
getPropertyList();
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty(int index);
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
int getPropertyCount();
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>
getPropertyOrBuilderList();
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder(
int index);
}
/**
* Protobuf type {@code cpg.CpgStruct.Node}
*/
public static final class Node extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgStruct.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Node() {
type_ = 0;
property_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Node();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
key_ = input.readInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
property_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
property_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
property_ = java.util.Collections.unmodifiableList(property_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder.class);
}
/**
*
* Programming languages offer many closely-related concepts for describing blocks
*of code that can be executed with input parameters and return output parameters,
*possibly causing side effects. In the CPG specification, we refer to all of these
*concepts (procedures, functions, methods, etc.) as methods. A single METHOD node
*must exist for each method found in the source program.
*The `FULL_NAME` field specifies the method's fully-qualified name, including
*information about the namespace it is contained in if applicable, the name field
*is the function's short name. The field `IS_EXTERNAL` indicates whether it was
*possible to identify a method body for the method. This is true for methods that
*are defined in the source program, and false for methods that are dynamically
*linked to the program, that is, methods that exist in an external dependency.
*Line and column number information is specified in the optional fields
*`LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and `COLUMN_NUMBER_END` and
*the name of the source file is specified in `FILENAME`. An optional hash value
*MAY be calculated over the function contents and included in the `HASH` field.
*The optional `OFFSET` and `OFFSET_END` specify the start
*and exclusive end position of the code belonging to a method within the corresponding
*`FILE` nodes `CONTENT` property.
*Finally, the fully qualified name of the program constructs that the method
*is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field
*and its type is indicated in the `AST_PARENT_TYPE` field to be one of
*`METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`.
*
*
* METHOD = 1;
*/
METHOD(1),
/**
*
* This node represents an (unnamed) formal method return parameter. It carries its
*fully qualified type name in `TYPE_FULL_NAME`. The `CODE` field MAY be set freely,
*e.g., to the constant `RET`, however, subsequent layer creators MUST NOT depend
*on this value.
*
*
* METHOD_RETURN = 3;
*/
METHOD_RETURN(3),
/**
*
* A method annotation.
*The semantics of the FULL_NAME property on this node differ from the usual FULL_NAME
*semantics in the sense that FULL_NAME describes the represented annotation class/interface
*itself and not the ANNOTATION node.
*
*
* ANNOTATION = 5;
*/
ANNOTATION(5),
/**
*
* Assignment of annotation argument to annotation parameter
*
* This node represents a literal such as an integer or string constant. Literals
*are symbols included in the code in verbatim form and which are immutable.
*The `TYPE_FULL_NAME` field stores the literal's fully-qualified type name,
*e.g., `java.lang.Integer`.
*
*
* LITERAL = 8;
*/
LITERAL(8),
/**
*
* This node represents a type member of a class, struct or union, e.g., for the
*type declaration `class Foo{ int i ; }`, it represents the declaration of the
*variable `i`.
*
* A (function/method/procedure) call. The `METHOD_FULL_NAME` property is the name of the
*invoked method (the callee) while the `TYPE_FULL_NAME` is its return type, and
*therefore, the return type of the call when viewing it as an expression. For
*languages like Javascript, it is common that we may know the (short-) name
*of the invoked method, but we do not know at compile time which method
*will actually be invoked, e.g., because it depends on a dynamic import.
*In this case, we leave `METHOD_FULL_NAME` blank but at least fill out `NAME`,
*which contains the method's (short-) name and `SIGNATURE`, which contains
*any information we may have about the types of arguments and return value.
*
*
* CALL = 15;
*/
CALL(15),
/**
*
* This node represents a local variable. Its fully qualified type name is stored
*in the `TYPE_FULL_NAME` field and its name in the `NAME` field. The `CODE` field
*contains the entire local variable declaration without initialization, e.g., for
*`int x = 10;`, it contains `int x`.
*
*
* LOCAL = 23;
*/
LOCAL(23),
/**
*
* This node represents a tag.
*
*
* TAG = 24;
*/
TAG(24),
/**
*
* A location node summarizes a source code location.
*
*
* LOCATION = 25;
*/
LOCATION(25),
/**
*
* This node represents an identifier as used when referring to a variable by name.
*It holds the identifier's name in the `NAME` field and its fully-qualified type
*name in `TYPE_FULL_NAME`.
*
*
* IDENTIFIER = 27;
*/
IDENTIFIER(27),
/**
*
* This node represents a return instruction, e.g., `return x`. Note that it does
*NOT represent a formal return parameter as formal return parameters are
*represented via `METHOD_RETURN` nodes.
*
*
* RETURN = 30;
*/
RETURN(30),
/**
*
* This node represents a compound statement. Compound statements are used in many languages to allow
*grouping a sequence of statements. For example, in C and Java, compound statements
*are statements enclosed by curly braces. Function/Method bodies are compound
*statements. We do not use the term "compound statement" because "statement" would
*imply that the block does not yield a value upon evaluation, that is, that it is
*not an expression. This is true in languages such as C and Java, but not for languages
*such as Scala where the value of the block is given by that of the last expression it
*contains. In fact, the Scala grammar uses the term "BlockExpr" (short for
*"block expression") to describe what in the CPG we call "Block".
*
*
* BLOCK = 31;
*/
BLOCK(31),
/**
*
* This node represents a formal output parameter. Corresponding output parameters
*for input parameters MUST NOT be created by the frontend as they are automatically
*created upon first loading the CPG.
*
* This node represents a formal input parameter. The field `NAME` contains its
*name, while the field `TYPE_FULL_NAME` contains the fully qualified type name.
*
* File nodes represent source files or a shared objects from which the CPG
*was generated. File nodes serve as indices, that is, they allow looking up all
*elements of the code by file.
*For each file, the graph CAN contain exactly one File node, if not File nodes
*are created as indicated by `FILENAME` property of other nodes.
*As file nodes are root nodes of abstract syntax tress, they are AstNodes and
*their order field is set to 0. This is because they have no sibling nodes,
*not because they are the first node of the AST.
*
*
* FILE = 38;
*/
FILE(38),
/**
*
* This node contains the CPG meta data. Exactly one node of this type
*MUST exist per CPG. The `HASH` property MAY contain a hash value calculated
*over the source files this CPG was generated from. The `VERSION` MUST be
*set to the version of the specification ("1.1"). The language field indicates
*which language frontend was used to generate the CPG and the list property
*`OVERLAYS` specifies which overlays have been applied to the CPG.
*
*
* META_DATA = 39;
*/
META_DATA(39),
/**
*
* This node represents a namespace. Similar to FILE nodes, NAMESPACE nodes
*serve as indices that allow all definitions inside a namespace to be
*obtained by following outgoing edges from a NAMESPACE node.
*NAMESPACE nodes MUST NOT be created by language frontends. Instead,
*they are generated from NAMESPACE_BLOCK nodes automatically upon
*first loading of the CPG.
*
*
* NAMESPACE = 40;
*/
NAMESPACE(40),
/**
*
* A reference to a namespace.
*We borrow the concept of a "namespace block" from C++, that is, a namespace block
*is a block of code that has been placed in the same namespace by a programmer.
*This block may be introduced via a `package` statement in Java or
*a `namespace{ }` statement in C++.
*The `FULL_NAME` field contains a unique identifier to represent the namespace block
*itself not just the namespace it references. So in addition to the namespace name
*it can be useful to use the containing file name to derive a unique identifier.
*The `NAME` field contains the namespace name in a human-readable format.
*The name should be given in dot-separated form where a dot indicates
*that the right hand side is a sub namespace of the left hand side, e.g.,
*`foo.bar` denotes the namespace `bar` contained in the namespace `foo`.
*
* Any AST node that the frontend would like to include in the AST but for
*which no suitable AST node is specified in the CPG specification may be
*included using a node of type `UNKNOWN`.
*
*
* UNKNOWN = 44;
*/
UNKNOWN(44),
/**
*
* This node represents a type instance, that is, a concrete instantiation
*of a type declaration.
*
*
* TYPE = 45;
*/
TYPE(45),
/**
*
* This node represents a type declaration as for example given by a class-, struct-,
*or union declaration. In contrast to a `TYPE` node, this node does not represent a
*concrete instantiation of a type, e.g., for the parametrized type `List[T]`, it represents
*`List[T]`, but not `List[Integer]` where `Integer` is a concrete type.
*The language frontend MUST create type declarations for all types declared in the
*source program and MAY provide type declarations for types that are not declared
*but referenced by the source program. If a declaration is present in the source
*program, the field `IS_EXTERNAL` is set to `false`. Otherwise, it is set to `true`.
*The `FULL_NAME` field specifies the type's fully-qualified name, including
*information about the namespace it is contained in if applicable, the name field
*is the type's short name. Line and column number information is specified in the
*optional fields `LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and
*`COLUMN_NUMBER_END` and the name of the source file is specified in `FILENAME`.
*Base types can be specified via the `INHERITS_FROM_TYPE_FULL_NAME` list, where
*each entry contains the fully-qualified name of a base type. If the type is
*known to be an alias of another type (as for example introduced via the C
*`typedef` statement), the name of the alias is stored in `ALIAS_TYPE_FULL_NAME`.
*The optional `OFFSET` and `OFFSET_END` specify the start
*and exclusive end position of the code belonging to a `TYPE_DECL` within the corresponding
*`FILE` nodes `CONTENT` property.
*Finally, the fully qualified name of the program constructs that the type declaration
*is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field
*and its type is indicated in the `AST_PARENT_TYPE` field to be one of
*`METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`.
*
*
* TYPE_DECL = 46;
*/
TYPE_DECL(46),
/**
*
* This node represents a formal type parameter, that is, the type parameter
*as given in a type-parametrized method or type declaration. Examples for
*languages that support type parameters are Java (via Generics) and C++
*(via templates). Apart from the standard fields of AST nodes, the type
*parameter carries only a `NAME` field that holds the parameters name.
*
* An (actual) type argument as used to instantiate a parametrized type, in the
*same way an (actual) arguments provides concrete values for a parameter
*at method call sites. As it true for arguments, the method is not expected
*to interpret the type argument. It MUST however store its code in the
*`CODE` field.
*
* This node type represent a configuration file, where `NAME` is the name
*of the file and `content` is its content. The exact representation of the
*name is left undefined and can be chosen as required by consumers of
*the corresponding configuration files.
*
*
* CONFIG_FILE = 50;
*/
CONFIG_FILE(50),
/**
*
* `BINDING` nodes represent name-signature pairs that can be resolved at a
*type declaration (`TYPE_DECL`). They are connected to `TYPE_DECL` nodes via
*incoming `BINDS` edges. The bound method is either associated with an outgoing
*`REF` edge to a `METHOD` or with the `METHOD_FULL_NAME` property. The `REF` edge
*if present has priority.
*
*
* BINDING = 146;
*/
BINDING(146),
/**
*
* This node contains an arbitrary node and an associated tag node.
*
* Finding nodes may be used to store analysis results in the graph
*that are to be exposed to an end-user, e.g., information about
*potential vulnerabilities or dangerous programming practices.
*A Finding node may contain an abitrary list of key value pairs
*that characterize the finding, as well as a list of nodes that
*serve as evidence for the finding.
*
*
* FINDING = 214;
*/
FINDING(214),
/**
*
* This node represents a key value pair, where both the key and the value are strings.
*
* This field represents a (language-dependent) modifier such as `static`, `private`
*or `public`. Unlike most other AST nodes, it is NOT an expression, that is, it
*cannot be evaluated and cannot be passed as an argument in function calls.
*
*
* MODIFIER = 300;
*/
MODIFIER(300),
/**
*
* This node represents a reference to a method/function/procedure as it
*appears when a method is passed as an argument in a call. The `METHOD_FULL_NAME`
*field holds the fully-qualified name of the referenced method and the
*`TYPE_FULL_NAME` holds its fully-qualified type name.
*
*
* METHOD_REF = 333;
*/
METHOD_REF(333),
/**
*
* Represents the binding of a LOCAL or METHOD_PARAMETER_IN into the closure of a method
*
* This node represents a control structure as introduced by control structure
*statements as well as conditional and unconditional jumps. Its type is stored in the
*`CONTROL_STRUCTURE_TYPE` field to be one of several pre-defined types. These types
*are used in the construction of the control flow layer, making it possible to
*generate the control flow layer from the abstract syntax tree layer automatically.
*In addition to the `CONTROL_STRUCTURE_TYPE` field, the `PARSER_TYPE_NAME` field
*MAY be used by frontends to store the name of the control structure as emitted by
*the parser or disassembler, however, the value of this field is not relevant
*for construction of the control flow layer.
*
* A jump target is any location in the code that has been specifically marked
*as the target of a jump, e.g., via a label. The `NAME` field holds the name of
*the label while the `PARSER_TYPE_NAME` field holds the name of language construct
*that this jump target is created from, e.g., "Label".
*
*
* JUMP_TARGET = 340;
*/
JUMP_TARGET(340),
/**
*
* A jump label specifies the label and thus the JUMP_TARGET of control structures
*BREAK and CONTINUE. The `NAME` field holds the name of the label while the
*`PARSER_TYPE_NAME` field holds the name of language construct that this jump
*label is created from, e.g., "Label".
*
*
* JUMP_LABEL = 341;
*/
JUMP_LABEL(341),
/**
*
* This node represents a DOM node used in template languages, e.g., JSX/TSX
*
* This node represents the field accessed in a field access, e.g., in
*`a.b`, it represents `b`. The field name as it occurs in the code is
*stored in the `CODE` field. This may mean that the `CODE` field holds
*an expression. The `CANONICAL_NAME` field MAY contain the same value is
*the `CODE` field but SHOULD contain the normalized name that results
*from evaluating `CODE` as an expression if such an evaluation is
*possible for the language frontend. The objective is to store an identifier
*in `CANONICAL_NAME` that is the same for two nodes iff they refer to the
*same field, regardless of whether they use the same expression to reference
*it.
*
*
* FIELD_IDENTIFIER = 2001081;
*/
FIELD_IDENTIFIER(2001081),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_NODE_TYPE = 0;
*/
public static final int UNKNOWN_NODE_TYPE_VALUE = 0;
/**
*
* Programming languages offer many closely-related concepts for describing blocks
*of code that can be executed with input parameters and return output parameters,
*possibly causing side effects. In the CPG specification, we refer to all of these
*concepts (procedures, functions, methods, etc.) as methods. A single METHOD node
*must exist for each method found in the source program.
*The `FULL_NAME` field specifies the method's fully-qualified name, including
*information about the namespace it is contained in if applicable, the name field
*is the function's short name. The field `IS_EXTERNAL` indicates whether it was
*possible to identify a method body for the method. This is true for methods that
*are defined in the source program, and false for methods that are dynamically
*linked to the program, that is, methods that exist in an external dependency.
*Line and column number information is specified in the optional fields
*`LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and `COLUMN_NUMBER_END` and
*the name of the source file is specified in `FILENAME`. An optional hash value
*MAY be calculated over the function contents and included in the `HASH` field.
*The optional `OFFSET` and `OFFSET_END` specify the start
*and exclusive end position of the code belonging to a method within the corresponding
*`FILE` nodes `CONTENT` property.
*Finally, the fully qualified name of the program constructs that the method
*is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field
*and its type is indicated in the `AST_PARENT_TYPE` field to be one of
*`METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`.
*
*
* METHOD = 1;
*/
public static final int METHOD_VALUE = 1;
/**
*
* This node represents an (unnamed) formal method return parameter. It carries its
*fully qualified type name in `TYPE_FULL_NAME`. The `CODE` field MAY be set freely,
*e.g., to the constant `RET`, however, subsequent layer creators MUST NOT depend
*on this value.
*
*
* METHOD_RETURN = 3;
*/
public static final int METHOD_RETURN_VALUE = 3;
/**
*
* A method annotation.
*The semantics of the FULL_NAME property on this node differ from the usual FULL_NAME
*semantics in the sense that FULL_NAME describes the represented annotation class/interface
*itself and not the ANNOTATION node.
*
*
* ANNOTATION = 5;
*/
public static final int ANNOTATION_VALUE = 5;
/**
*
* Assignment of annotation argument to annotation parameter
*
*
* ANNOTATION_PARAMETER_ASSIGN = 6;
*/
public static final int ANNOTATION_PARAMETER_ASSIGN_VALUE = 6;
/**
*
* Formal annotation parameter
*
*
* ANNOTATION_PARAMETER = 7;
*/
public static final int ANNOTATION_PARAMETER_VALUE = 7;
/**
*
* This node represents a literal such as an integer or string constant. Literals
*are symbols included in the code in verbatim form and which are immutable.
*The `TYPE_FULL_NAME` field stores the literal's fully-qualified type name,
*e.g., `java.lang.Integer`.
*
*
* LITERAL = 8;
*/
public static final int LITERAL_VALUE = 8;
/**
*
* This node represents a type member of a class, struct or union, e.g., for the
*type declaration `class Foo{ int i ; }`, it represents the declaration of the
*variable `i`.
*
*
* MEMBER = 9;
*/
public static final int MEMBER_VALUE = 9;
/**
*
* Initialization construct for arrays
*
*
* ARRAY_INITIALIZER = 14;
*/
public static final int ARRAY_INITIALIZER_VALUE = 14;
/**
*
* A (function/method/procedure) call. The `METHOD_FULL_NAME` property is the name of the
*invoked method (the callee) while the `TYPE_FULL_NAME` is its return type, and
*therefore, the return type of the call when viewing it as an expression. For
*languages like Javascript, it is common that we may know the (short-) name
*of the invoked method, but we do not know at compile time which method
*will actually be invoked, e.g., because it depends on a dynamic import.
*In this case, we leave `METHOD_FULL_NAME` blank but at least fill out `NAME`,
*which contains the method's (short-) name and `SIGNATURE`, which contains
*any information we may have about the types of arguments and return value.
*
*
* CALL = 15;
*/
public static final int CALL_VALUE = 15;
/**
*
* This node represents a local variable. Its fully qualified type name is stored
*in the `TYPE_FULL_NAME` field and its name in the `NAME` field. The `CODE` field
*contains the entire local variable declaration without initialization, e.g., for
*`int x = 10;`, it contains `int x`.
*
*
* LOCAL = 23;
*/
public static final int LOCAL_VALUE = 23;
/**
*
* This node represents a tag.
*
*
* TAG = 24;
*/
public static final int TAG_VALUE = 24;
/**
*
* A location node summarizes a source code location.
*
*
* LOCATION = 25;
*/
public static final int LOCATION_VALUE = 25;
/**
*
* This node represents an identifier as used when referring to a variable by name.
*It holds the identifier's name in the `NAME` field and its fully-qualified type
*name in `TYPE_FULL_NAME`.
*
*
* IDENTIFIER = 27;
*/
public static final int IDENTIFIER_VALUE = 27;
/**
*
* This node represents a return instruction, e.g., `return x`. Note that it does
*NOT represent a formal return parameter as formal return parameters are
*represented via `METHOD_RETURN` nodes.
*
*
* RETURN = 30;
*/
public static final int RETURN_VALUE = 30;
/**
*
* This node represents a compound statement. Compound statements are used in many languages to allow
*grouping a sequence of statements. For example, in C and Java, compound statements
*are statements enclosed by curly braces. Function/Method bodies are compound
*statements. We do not use the term "compound statement" because "statement" would
*imply that the block does not yield a value upon evaluation, that is, that it is
*not an expression. This is true in languages such as C and Java, but not for languages
*such as Scala where the value of the block is given by that of the last expression it
*contains. In fact, the Scala grammar uses the term "BlockExpr" (short for
*"block expression") to describe what in the CPG we call "Block".
*
*
* BLOCK = 31;
*/
public static final int BLOCK_VALUE = 31;
/**
*
* This node represents a formal output parameter. Corresponding output parameters
*for input parameters MUST NOT be created by the frontend as they are automatically
*created upon first loading the CPG.
*
*
* METHOD_PARAMETER_OUT = 33;
*/
public static final int METHOD_PARAMETER_OUT_VALUE = 33;
/**
*
* This node represents a formal input parameter. The field `NAME` contains its
*name, while the field `TYPE_FULL_NAME` contains the fully qualified type name.
*
*
* METHOD_PARAMETER_IN = 34;
*/
public static final int METHOD_PARAMETER_IN_VALUE = 34;
/**
*
* This node represents a dependency
*
*
* DEPENDENCY = 35;
*/
public static final int DEPENDENCY_VALUE = 35;
/**
*
* File nodes represent source files or a shared objects from which the CPG
*was generated. File nodes serve as indices, that is, they allow looking up all
*elements of the code by file.
*For each file, the graph CAN contain exactly one File node, if not File nodes
*are created as indicated by `FILENAME` property of other nodes.
*As file nodes are root nodes of abstract syntax tress, they are AstNodes and
*their order field is set to 0. This is because they have no sibling nodes,
*not because they are the first node of the AST.
*
*
* FILE = 38;
*/
public static final int FILE_VALUE = 38;
/**
*
* This node contains the CPG meta data. Exactly one node of this type
*MUST exist per CPG. The `HASH` property MAY contain a hash value calculated
*over the source files this CPG was generated from. The `VERSION` MUST be
*set to the version of the specification ("1.1"). The language field indicates
*which language frontend was used to generate the CPG and the list property
*`OVERLAYS` specifies which overlays have been applied to the CPG.
*
*
* META_DATA = 39;
*/
public static final int META_DATA_VALUE = 39;
/**
*
* This node represents a namespace. Similar to FILE nodes, NAMESPACE nodes
*serve as indices that allow all definitions inside a namespace to be
*obtained by following outgoing edges from a NAMESPACE node.
*NAMESPACE nodes MUST NOT be created by language frontends. Instead,
*they are generated from NAMESPACE_BLOCK nodes automatically upon
*first loading of the CPG.
*
*
* NAMESPACE = 40;
*/
public static final int NAMESPACE_VALUE = 40;
/**
*
* A reference to a namespace.
*We borrow the concept of a "namespace block" from C++, that is, a namespace block
*is a block of code that has been placed in the same namespace by a programmer.
*This block may be introduced via a `package` statement in Java or
*a `namespace{ }` statement in C++.
*The `FULL_NAME` field contains a unique identifier to represent the namespace block
*itself not just the namespace it references. So in addition to the namespace name
*it can be useful to use the containing file name to derive a unique identifier.
*The `NAME` field contains the namespace name in a human-readable format.
*The name should be given in dot-separated form where a dot indicates
*that the right hand side is a sub namespace of the left hand side, e.g.,
*`foo.bar` denotes the namespace `bar` contained in the namespace `foo`.
*
*
* NAMESPACE_BLOCK = 41;
*/
public static final int NAMESPACE_BLOCK_VALUE = 41;
/**
*
* Any AST node that the frontend would like to include in the AST but for
*which no suitable AST node is specified in the CPG specification may be
*included using a node of type `UNKNOWN`.
*
*
* UNKNOWN = 44;
*/
public static final int UNKNOWN_VALUE = 44;
/**
*
* This node represents a type instance, that is, a concrete instantiation
*of a type declaration.
*
*
* TYPE = 45;
*/
public static final int TYPE_VALUE = 45;
/**
*
* This node represents a type declaration as for example given by a class-, struct-,
*or union declaration. In contrast to a `TYPE` node, this node does not represent a
*concrete instantiation of a type, e.g., for the parametrized type `List[T]`, it represents
*`List[T]`, but not `List[Integer]` where `Integer` is a concrete type.
*The language frontend MUST create type declarations for all types declared in the
*source program and MAY provide type declarations for types that are not declared
*but referenced by the source program. If a declaration is present in the source
*program, the field `IS_EXTERNAL` is set to `false`. Otherwise, it is set to `true`.
*The `FULL_NAME` field specifies the type's fully-qualified name, including
*information about the namespace it is contained in if applicable, the name field
*is the type's short name. Line and column number information is specified in the
*optional fields `LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and
*`COLUMN_NUMBER_END` and the name of the source file is specified in `FILENAME`.
*Base types can be specified via the `INHERITS_FROM_TYPE_FULL_NAME` list, where
*each entry contains the fully-qualified name of a base type. If the type is
*known to be an alias of another type (as for example introduced via the C
*`typedef` statement), the name of the alias is stored in `ALIAS_TYPE_FULL_NAME`.
*The optional `OFFSET` and `OFFSET_END` specify the start
*and exclusive end position of the code belonging to a `TYPE_DECL` within the corresponding
*`FILE` nodes `CONTENT` property.
*Finally, the fully qualified name of the program constructs that the type declaration
*is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field
*and its type is indicated in the `AST_PARENT_TYPE` field to be one of
*`METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`.
*
*
* TYPE_DECL = 46;
*/
public static final int TYPE_DECL_VALUE = 46;
/**
*
* This node represents a formal type parameter, that is, the type parameter
*as given in a type-parametrized method or type declaration. Examples for
*languages that support type parameters are Java (via Generics) and C++
*(via templates). Apart from the standard fields of AST nodes, the type
*parameter carries only a `NAME` field that holds the parameters name.
*
*
* TYPE_PARAMETER = 47;
*/
public static final int TYPE_PARAMETER_VALUE = 47;
/**
*
* An (actual) type argument as used to instantiate a parametrized type, in the
*same way an (actual) arguments provides concrete values for a parameter
*at method call sites. As it true for arguments, the method is not expected
*to interpret the type argument. It MUST however store its code in the
*`CODE` field.
*
*
* TYPE_ARGUMENT = 48;
*/
public static final int TYPE_ARGUMENT_VALUE = 48;
/**
*
* A literal value assigned to an ANNOTATION_PARAMETER
*
*
* ANNOTATION_LITERAL = 49;
*/
public static final int ANNOTATION_LITERAL_VALUE = 49;
/**
*
* This node type represent a configuration file, where `NAME` is the name
*of the file and `content` is its content. The exact representation of the
*name is left undefined and can be chosen as required by consumers of
*the corresponding configuration files.
*
*
* CONFIG_FILE = 50;
*/
public static final int CONFIG_FILE_VALUE = 50;
/**
*
* `BINDING` nodes represent name-signature pairs that can be resolved at a
*type declaration (`TYPE_DECL`). They are connected to `TYPE_DECL` nodes via
*incoming `BINDS` edges. The bound method is either associated with an outgoing
*`REF` edge to a `METHOD` or with the `METHOD_FULL_NAME` property. The `REF` edge
*if present has priority.
*
*
* BINDING = 146;
*/
public static final int BINDING_VALUE = 146;
/**
*
* This node contains an arbitrary node and an associated tag node.
*
*
* TAG_NODE_PAIR = 208;
*/
public static final int TAG_NODE_PAIR_VALUE = 208;
/**
*
* Finding nodes may be used to store analysis results in the graph
*that are to be exposed to an end-user, e.g., information about
*potential vulnerabilities or dangerous programming practices.
*A Finding node may contain an abitrary list of key value pairs
*that characterize the finding, as well as a list of nodes that
*serve as evidence for the finding.
*
*
* FINDING = 214;
*/
public static final int FINDING_VALUE = 214;
/**
*
* This node represents a key value pair, where both the key and the value are strings.
*
*
* KEY_VALUE_PAIR = 217;
*/
public static final int KEY_VALUE_PAIR_VALUE = 217;
/**
*
* This field represents a (language-dependent) modifier such as `static`, `private`
*or `public`. Unlike most other AST nodes, it is NOT an expression, that is, it
*cannot be evaluated and cannot be passed as an argument in function calls.
*
*
* MODIFIER = 300;
*/
public static final int MODIFIER_VALUE = 300;
/**
*
* This node represents a reference to a method/function/procedure as it
*appears when a method is passed as an argument in a call. The `METHOD_FULL_NAME`
*field holds the fully-qualified name of the referenced method and the
*`TYPE_FULL_NAME` holds its fully-qualified type name.
*
*
* METHOD_REF = 333;
*/
public static final int METHOD_REF_VALUE = 333;
/**
*
* Represents the binding of a LOCAL or METHOD_PARAMETER_IN into the closure of a method
*
*
* CLOSURE_BINDING = 334;
*/
public static final int CLOSURE_BINDING_VALUE = 334;
/**
*
* Reference to a type/class
*
*
* TYPE_REF = 335;
*/
public static final int TYPE_REF_VALUE = 335;
/**
*
* This node represents a control structure as introduced by control structure
*statements as well as conditional and unconditional jumps. Its type is stored in the
*`CONTROL_STRUCTURE_TYPE` field to be one of several pre-defined types. These types
*are used in the construction of the control flow layer, making it possible to
*generate the control flow layer from the abstract syntax tree layer automatically.
*In addition to the `CONTROL_STRUCTURE_TYPE` field, the `PARSER_TYPE_NAME` field
*MAY be used by frontends to store the name of the control structure as emitted by
*the parser or disassembler, however, the value of this field is not relevant
*for construction of the control flow layer.
*
*
* CONTROL_STRUCTURE = 339;
*/
public static final int CONTROL_STRUCTURE_VALUE = 339;
/**
*
* A jump target is any location in the code that has been specifically marked
*as the target of a jump, e.g., via a label. The `NAME` field holds the name of
*the label while the `PARSER_TYPE_NAME` field holds the name of language construct
*that this jump target is created from, e.g., "Label".
*
*
* JUMP_TARGET = 340;
*/
public static final int JUMP_TARGET_VALUE = 340;
/**
*
* A jump label specifies the label and thus the JUMP_TARGET of control structures
*BREAK and CONTINUE. The `NAME` field holds the name of the label while the
*`PARSER_TYPE_NAME` field holds the name of language construct that this jump
*label is created from, e.g., "Label".
*
*
* JUMP_LABEL = 341;
*/
public static final int JUMP_LABEL_VALUE = 341;
/**
*
* This node represents a DOM node used in template languages, e.g., JSX/TSX
*
*
* TEMPLATE_DOM = 417;
*/
public static final int TEMPLATE_DOM_VALUE = 417;
/**
*
* A source code comment
*
*
* COMMENT = 511;
*/
public static final int COMMENT_VALUE = 511;
/**
*
* This node represents the field accessed in a field access, e.g., in
*`a.b`, it represents `b`. The field name as it occurs in the code is
*stored in the `CODE` field. This may mean that the `CODE` field holds
*an expression. The `CANONICAL_NAME` field MAY contain the same value is
*the `CODE` field but SHOULD contain the normalized name that results
*from evaluating `CODE` as an expression if such an evaluation is
*possible for the language frontend. The objective is to store an identifier
*in `CANONICAL_NAME` that is the same for two nodes iff they refer to the
*same field, regardless of whether they use the same expression to reference
*it.
*
*
* FIELD_IDENTIFIER = 2001081;
*/
public static final int FIELD_IDENTIFIER_VALUE = 2001081;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NodeType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_NODE_TYPE;
case 1: return METHOD;
case 3: return METHOD_RETURN;
case 5: return ANNOTATION;
case 6: return ANNOTATION_PARAMETER_ASSIGN;
case 7: return ANNOTATION_PARAMETER;
case 8: return LITERAL;
case 9: return MEMBER;
case 14: return ARRAY_INITIALIZER;
case 15: return CALL;
case 23: return LOCAL;
case 24: return TAG;
case 25: return LOCATION;
case 27: return IDENTIFIER;
case 30: return RETURN;
case 31: return BLOCK;
case 33: return METHOD_PARAMETER_OUT;
case 34: return METHOD_PARAMETER_IN;
case 35: return DEPENDENCY;
case 38: return FILE;
case 39: return META_DATA;
case 40: return NAMESPACE;
case 41: return NAMESPACE_BLOCK;
case 44: return UNKNOWN;
case 45: return TYPE;
case 46: return TYPE_DECL;
case 47: return TYPE_PARAMETER;
case 48: return TYPE_ARGUMENT;
case 49: return ANNOTATION_LITERAL;
case 50: return CONFIG_FILE;
case 146: return BINDING;
case 208: return TAG_NODE_PAIR;
case 214: return FINDING;
case 217: return KEY_VALUE_PAIR;
case 300: return MODIFIER;
case 333: return METHOD_REF;
case 334: return CLOSURE_BINDING;
case 335: return TYPE_REF;
case 339: return CONTROL_STRUCTURE;
case 340: return JUMP_TARGET;
case 341: return JUMP_LABEL;
case 417: return TEMPLATE_DOM;
case 511: return COMMENT;
case 2001081: return FIELD_IDENTIFIER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NodeType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NodeType findValueByNumber(int number) {
return NodeType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDescriptor().getEnumTypes().get(0);
}
private static final NodeType[] VALUES = values();
public static NodeType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private NodeType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.CpgStruct.Node.NodeType)
}
public interface PropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgStruct.Node.Property)
com.google.protobuf.MessageOrBuilder {
/**
* .cpg.NodePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
int getNameValue();
/**
* .cpg.NodePropertyName name = 1;
* @return The name.
*/
io.shiftleft.proto.cpg.Cpg.NodePropertyName getName();
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
io.shiftleft.proto.cpg.Cpg.PropertyValue getValue();
/**
* .cpg.PropertyValue value = 2;
*/
io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder();
}
/**
*
* Node properties.
*
*
* Protobuf type {@code cpg.CpgStruct.Node.Property}
*/
public static final class Property extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgStruct.Node.Property)
PropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Property.newBuilder() to construct.
private Property(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Property() {
name_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Property();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Property(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
name_ = rawValue;
break;
}
case 18: {
io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(io.shiftleft.proto.cpg.Cpg.PropertyValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_Property_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private int name_;
/**
* .cpg.NodePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.NodePropertyName name = 1;
* @return The name.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.NodePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.NodePropertyName result = io.shiftleft.proto.cpg.Cpg.NodePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.shiftleft.proto.cpg.Cpg.PropertyValue value_;
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue getValue() {
return value_ == null ? io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
}
/**
* .cpg.PropertyValue value = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (name_ != io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNKNOWN_NODE_PROPERTY.getNumber()) {
output.writeEnum(1, name_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (name_ != io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNKNOWN_NODE_PROPERTY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, name_);
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property other = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property) obj;
if (name_ != other.name_) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + name_;
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Node properties.
*
*
* Protobuf type {@code cpg.CpgStruct.Node.Property}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.CpgStruct.Node.Property)
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_Property_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = 0;
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_Property_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property build() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property buildPartial() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property result = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property(this);
result.name_ = name_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property other) {
if (other == io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance()) return this;
if (other.name_ != 0) {
setNameValue(other.getNameValue());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int name_ = 0;
/**
* .cpg.NodePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.NodePropertyName name = 1;
* @param value The enum numeric value on the wire for name to set.
* @return This builder for chaining.
*/
public Builder setNameValue(int value) {
name_ = value;
onChanged();
return this;
}
/**
* .cpg.NodePropertyName name = 1;
* @return The name.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.NodePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.NodePropertyName result = io.shiftleft.proto.cpg.Cpg.NodePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNRECOGNIZED : result;
}
/**
* .cpg.NodePropertyName name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(io.shiftleft.proto.cpg.Cpg.NodePropertyName value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.NodePropertyName name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = 0;
onChanged();
return this;
}
private io.shiftleft.proto.cpg.Cpg.PropertyValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder> valueBuilder_;
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder setValue(io.shiftleft.proto.cpg.Cpg.PropertyValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder setValue(
io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder mergeValue(io.shiftleft.proto.cpg.Cpg.PropertyValue value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
io.shiftleft.proto.cpg.Cpg.PropertyValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .cpg.PropertyValue value = 2;
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
}
}
/**
* .cpg.PropertyValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.CpgStruct.Node.Property)
}
// @@protoc_insertion_point(class_scope:cpg.CpgStruct.Node.Property)
private static final io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property();
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Property parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Property(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int KEY_FIELD_NUMBER = 1;
private long key_;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The type.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType getType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.valueOf(type_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.UNRECOGNIZED : result;
}
public static final int PROPERTY_FIELD_NUMBER = 3;
private java.util.List property_;
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
@java.lang.Override
public java.util.List getPropertyList() {
return property_;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>
getPropertyOrBuilderList() {
return property_;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
@java.lang.Override
public int getPropertyCount() {
return property_.size();
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty(int index) {
return property_.get(index);
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder(
int index) {
return property_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != 0L) {
output.writeInt64(1, key_);
}
if (type_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.UNKNOWN_NODE_TYPE.getNumber()) {
output.writeEnum(2, type_);
}
for (int i = 0; i < property_.size(); i++) {
output.writeMessage(3, property_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, key_);
}
if (type_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.UNKNOWN_NODE_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
for (int i = 0; i < property_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, property_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Node)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node other = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) obj;
if (getKey()
!= other.getKey()) return false;
if (type_ != other.type_) return false;
if (!getPropertyList()
.equals(other.getPropertyList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getPropertyCount() > 0) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getPropertyList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.CpgStruct.Node}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.CpgStruct.Node)
io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPropertyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = 0L;
type_ = 0;
if (propertyBuilder_ == null) {
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
propertyBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Node_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node build() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node buildPartial() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node result = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Node(this);
int from_bitField0_ = bitField0_;
result.key_ = key_;
result.type_ = type_;
if (propertyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
property_ = java.util.Collections.unmodifiableList(property_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.property_ = property_;
} else {
result.property_ = propertyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Node)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node other) {
if (other == io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance()) return this;
if (other.getKey() != 0L) {
setKey(other.getKey());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (propertyBuilder_ == null) {
if (!other.property_.isEmpty()) {
if (property_.isEmpty()) {
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePropertyIsMutable();
property_.addAll(other.property_);
}
onChanged();
}
} else {
if (!other.property_.isEmpty()) {
if (propertyBuilder_.isEmpty()) {
propertyBuilder_.dispose();
propertyBuilder_ = null;
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000001);
propertyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertyFieldBuilder() : null;
} else {
propertyBuilder_.addAllMessages(other.property_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long key_ ;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
/**
* int64 key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(long value) {
key_ = value;
onChanged();
return this;
}
/**
* int64 key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return The type.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType getType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.valueOf(type_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType.UNRECOGNIZED : result;
}
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.NodeType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Node.NodeType type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.util.List property_ =
java.util.Collections.emptyList();
private void ensurePropertyIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
property_ = new java.util.ArrayList(property_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder> propertyBuilder_;
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public java.util.List getPropertyList() {
if (propertyBuilder_ == null) {
return java.util.Collections.unmodifiableList(property_);
} else {
return propertyBuilder_.getMessageList();
}
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public int getPropertyCount() {
if (propertyBuilder_ == null) {
return property_.size();
} else {
return propertyBuilder_.getCount();
}
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty(int index) {
if (propertyBuilder_ == null) {
return property_.get(index);
} else {
return propertyBuilder_.getMessage(index);
}
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder setProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.set(index, value);
onChanged();
} else {
propertyBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder setProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.set(index, builderForValue.build());
onChanged();
} else {
propertyBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder addProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(value);
onChanged();
} else {
propertyBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder addProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(index, value);
onChanged();
} else {
propertyBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder addProperty(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.add(builderForValue.build());
onChanged();
} else {
propertyBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder addProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.add(index, builderForValue.build());
onChanged();
} else {
propertyBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder addAllProperty(
java.lang.Iterable extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property> values) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, property_);
onChanged();
} else {
propertyBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder clearProperty() {
if (propertyBuilder_ == null) {
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
propertyBuilder_.clear();
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public Builder removeProperty(int index) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.remove(index);
onChanged();
} else {
propertyBuilder_.remove(index);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder getPropertyBuilder(
int index) {
return getPropertyFieldBuilder().getBuilder(index);
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder(
int index) {
if (propertyBuilder_ == null) {
return property_.get(index); } else {
return propertyBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>
getPropertyOrBuilderList() {
if (propertyBuilder_ != null) {
return propertyBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(property_);
}
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder addPropertyBuilder() {
return getPropertyFieldBuilder().addBuilder(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder addPropertyBuilder(
int index) {
return getPropertyFieldBuilder().addBuilder(
index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Node.Property property = 3;
*/
public java.util.List
getPropertyBuilderList() {
return getPropertyFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>
getPropertyFieldBuilder() {
if (propertyBuilder_ == null) {
propertyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>(
property_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
property_ = null;
}
return propertyBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.CpgStruct.Node)
}
// @@protoc_insertion_point(class_scope:cpg.CpgStruct.Node)
private static final io.shiftleft.proto.cpg.Cpg.CpgStruct.Node DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Node();
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Node parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Node(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EdgeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgStruct.Edge)
com.google.protobuf.MessageOrBuilder {
/**
*
* Source node.
*
*
* int64 src = 1;
* @return The src.
*/
long getSrc();
/**
*
* Destination node.
*
*
* int64 dst = 2;
* @return The dst.
*/
long getDst();
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The type.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getType();
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
java.util.List
getPropertyList();
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty(int index);
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
int getPropertyCount();
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>
getPropertyOrBuilderList();
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder(
int index);
}
/**
* Protobuf type {@code cpg.CpgStruct.Edge}
*/
public static final class Edge extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgStruct.Edge)
EdgeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Edge.newBuilder() to construct.
private Edge(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Edge() {
type_ = 0;
property_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Edge();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Edge(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
src_ = input.readInt64();
break;
}
case 16: {
dst_ = input.readInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
property_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
property_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
property_ = java.util.Collections.unmodifiableList(property_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder.class);
}
/**
*
* This edge connects a parent node to its child in the syntax tree.
*
*
* AST = 3;
*/
AST(3),
/**
*
* This edge connects call sites, i.e., nodes with the type `CALL`, to the
*method node that represent the method they invoke. The frontend MAY create
*`CALL` edges but is not required to do so. Instead, of the `METHOD_FULL_NAME`
*field of the `CALL` node is set correctly, `CALL` edges are created
*automatically as the CPG is first loaded.
*
*
* CALL = 6;
*/
CALL(6),
/**
*
* This edge indicates that the source node is an identifier that denotes
*access to the destination node. For example, an identifier may reference
*a local variable.
*
*
* REF = 10;
*/
REF(10),
/**
*
* Edges from nodes to the tags they are tagged by.
*
*
* TAGGED_BY = 11;
*/
TAGGED_BY(11),
/**
*
* This edge connects a method input parameter to the corresponding
*method output parameter.
*
* This edge indicates control flow from the source to the destination node.
*
*
* CFG = 19;
*/
CFG(19),
/**
*
* This edge connects a node to its evaluation type.
*
*
* EVAL_TYPE = 21;
*/
EVAL_TYPE(21),
/**
*
* This edge connects type arguments to type parameters to indicate
*that the type argument is used to instantiate the type parameter.
*
*
* BINDS_TO = 22;
*/
BINDS_TO(22),
/**
*
* Inheritance relation between a type declaration and a type. This edge MUST NOT
*be created by the language frontend as it is automatically created from
*`INHERITS_FROM_TYPE_FULL_NAME` fields then the CPG is first loaded.
*
* This edge connects a node to the method that contains it.
*
*
* CONTAINS = 28;
*/
CONTAINS(28),
/**
*
* Represents the capturing of a variable into a closure
*
*
* CAPTURE = 40;
*/
CAPTURE(40),
/**
*
* Connection between a captured LOCAL and the corresponding CLOSURE_BINDING
*
*
* CAPTURED_BY = 41;
*/
CAPTURED_BY(41),
/**
*
* Similar to `ARGUMENT` edges, `RECEIVER` edges connect call sites
*to their receiver arguments. A receiver argument is the object on
*which a method operates, that is, it is the expression that is
*assigned to the `this` pointer as control is transferred to the method.
*
*
* RECEIVER = 55;
*/
RECEIVER(55),
/**
*
* The edge connects control structure nodes to the expressions that holds their conditions.
*
*
* CONDITION = 56;
*/
CONDITION(56),
/**
*
* A reaching definition edge indicates that a variable produced at the source node reaches
*the destination node without being reassigned on the way. The `VARIABLE` property indicates
*which variable is propagated.
*
* This edge represents an alias relation between a type declaration and a type.
*The language frontend MUST NOT create `ALIAS_OF` edges as they are created
*automatically based on `ALIAS_TYPE_FULL_NAME` fields when the CPG is first loaded.
*
*
* ALIAS_OF = 138;
*/
ALIAS_OF(138),
/**
*
* This edge connects a type declaration (`TYPE_DECL`) with a binding node (`BINDING`) and
*indicates that the type declaration has the binding represented by the binding node, in
*other words, there is a (name, signature) pair that can be resolved for the type
*declaration as stored in the binding node.
*
*
* BINDS = 155;
*/
BINDS(155),
/**
*
* Argument edges connect call sites (node type `CALL`) to their arguments
*(node type `EXPRESSION`) as well as `RETURN` nodes to the expressions
*that return.
*
*
* ARGUMENT = 156;
*/
ARGUMENT(156),
/**
*
* This edge connects a node to the node that represents its source file. These
*edges MUST not be created by the language frontend but are automatically
*created based on `FILENAME` fields.
*
*
* SOURCE_FILE = 157;
*/
SOURCE_FILE(157),
/**
*
* This edge indicates that the source node immediately dominates the destination node.
*
*
* DOMINATE = 181;
*/
DOMINATE(181),
/**
*
* This edge indicates that the source node immediately post dominates the destination node.
*
* A CDG edge expresses that the destination node is control dependent on the source node.
*
*
* CDG = 183;
*/
CDG(183),
/**
*
* Edge from imports to dependencies
*
*
* IMPORTS = 23663;
*/
IMPORTS(23663),
/**
*
* Edge from CALL statement in the AST to the IMPORT.
* |We use this edge to traverse from the logical representation of the IMPORT
* |to the corresponding import statement in the AST.
* |
*
*
* IS_CALL_FOR_IMPORT = 23664;
*/
IS_CALL_FOR_IMPORT(23664),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_EDGE_TYPE = 0;
*/
public static final int UNKNOWN_EDGE_TYPE_VALUE = 0;
/**
*
* This edge connects a parent node to its child in the syntax tree.
*
*
* AST = 3;
*/
public static final int AST_VALUE = 3;
/**
*
* This edge connects call sites, i.e., nodes with the type `CALL`, to the
*method node that represent the method they invoke. The frontend MAY create
*`CALL` edges but is not required to do so. Instead, of the `METHOD_FULL_NAME`
*field of the `CALL` node is set correctly, `CALL` edges are created
*automatically as the CPG is first loaded.
*
*
* CALL = 6;
*/
public static final int CALL_VALUE = 6;
/**
*
* This edge indicates that the source node is an identifier that denotes
*access to the destination node. For example, an identifier may reference
*a local variable.
*
*
* REF = 10;
*/
public static final int REF_VALUE = 10;
/**
*
* Edges from nodes to the tags they are tagged by.
*
*
* TAGGED_BY = 11;
*/
public static final int TAGGED_BY_VALUE = 11;
/**
*
* This edge connects a method input parameter to the corresponding
*method output parameter.
*
*
* PARAMETER_LINK = 12;
*/
public static final int PARAMETER_LINK_VALUE = 12;
/**
*
* This edge indicates control flow from the source to the destination node.
*
*
* CFG = 19;
*/
public static final int CFG_VALUE = 19;
/**
*
* This edge connects a node to its evaluation type.
*
*
* EVAL_TYPE = 21;
*/
public static final int EVAL_TYPE_VALUE = 21;
/**
*
* This edge connects type arguments to type parameters to indicate
*that the type argument is used to instantiate the type parameter.
*
*
* BINDS_TO = 22;
*/
public static final int BINDS_TO_VALUE = 22;
/**
*
* Inheritance relation between a type declaration and a type. This edge MUST NOT
*be created by the language frontend as it is automatically created from
*`INHERITS_FROM_TYPE_FULL_NAME` fields then the CPG is first loaded.
*
*
* INHERITS_FROM = 23;
*/
public static final int INHERITS_FROM_VALUE = 23;
/**
*
* This edge connects a node to the method that contains it.
*
*
* CONTAINS = 28;
*/
public static final int CONTAINS_VALUE = 28;
/**
*
* Represents the capturing of a variable into a closure
*
*
* CAPTURE = 40;
*/
public static final int CAPTURE_VALUE = 40;
/**
*
* Connection between a captured LOCAL and the corresponding CLOSURE_BINDING
*
*
* CAPTURED_BY = 41;
*/
public static final int CAPTURED_BY_VALUE = 41;
/**
*
* Similar to `ARGUMENT` edges, `RECEIVER` edges connect call sites
*to their receiver arguments. A receiver argument is the object on
*which a method operates, that is, it is the expression that is
*assigned to the `this` pointer as control is transferred to the method.
*
*
* RECEIVER = 55;
*/
public static final int RECEIVER_VALUE = 55;
/**
*
* The edge connects control structure nodes to the expressions that holds their conditions.
*
*
* CONDITION = 56;
*/
public static final int CONDITION_VALUE = 56;
/**
*
* A reaching definition edge indicates that a variable produced at the source node reaches
*the destination node without being reassigned on the way. The `VARIABLE` property indicates
*which variable is propagated.
*
*
* REACHING_DEF = 137;
*/
public static final int REACHING_DEF_VALUE = 137;
/**
*
* This edge represents an alias relation between a type declaration and a type.
*The language frontend MUST NOT create `ALIAS_OF` edges as they are created
*automatically based on `ALIAS_TYPE_FULL_NAME` fields when the CPG is first loaded.
*
*
* ALIAS_OF = 138;
*/
public static final int ALIAS_OF_VALUE = 138;
/**
*
* This edge connects a type declaration (`TYPE_DECL`) with a binding node (`BINDING`) and
*indicates that the type declaration has the binding represented by the binding node, in
*other words, there is a (name, signature) pair that can be resolved for the type
*declaration as stored in the binding node.
*
*
* BINDS = 155;
*/
public static final int BINDS_VALUE = 155;
/**
*
* Argument edges connect call sites (node type `CALL`) to their arguments
*(node type `EXPRESSION`) as well as `RETURN` nodes to the expressions
*that return.
*
*
* ARGUMENT = 156;
*/
public static final int ARGUMENT_VALUE = 156;
/**
*
* This edge connects a node to the node that represents its source file. These
*edges MUST not be created by the language frontend but are automatically
*created based on `FILENAME` fields.
*
*
* SOURCE_FILE = 157;
*/
public static final int SOURCE_FILE_VALUE = 157;
/**
*
* This edge indicates that the source node immediately dominates the destination node.
*
*
* DOMINATE = 181;
*/
public static final int DOMINATE_VALUE = 181;
/**
*
* This edge indicates that the source node immediately post dominates the destination node.
*
*
* POST_DOMINATE = 182;
*/
public static final int POST_DOMINATE_VALUE = 182;
/**
*
* A CDG edge expresses that the destination node is control dependent on the source node.
*
*
* CDG = 183;
*/
public static final int CDG_VALUE = 183;
/**
*
* Edge from imports to dependencies
*
*
* IMPORTS = 23663;
*/
public static final int IMPORTS_VALUE = 23663;
/**
*
* Edge from CALL statement in the AST to the IMPORT.
* |We use this edge to traverse from the logical representation of the IMPORT
* |to the corresponding import statement in the AST.
* |
*
*
* IS_CALL_FOR_IMPORT = 23664;
*/
public static final int IS_CALL_FOR_IMPORT_VALUE = 23664;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EdgeType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EdgeType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_EDGE_TYPE;
case 3: return AST;
case 6: return CALL;
case 10: return REF;
case 11: return TAGGED_BY;
case 12: return PARAMETER_LINK;
case 19: return CFG;
case 21: return EVAL_TYPE;
case 22: return BINDS_TO;
case 23: return INHERITS_FROM;
case 28: return CONTAINS;
case 40: return CAPTURE;
case 41: return CAPTURED_BY;
case 55: return RECEIVER;
case 56: return CONDITION;
case 137: return REACHING_DEF;
case 138: return ALIAS_OF;
case 155: return BINDS;
case 156: return ARGUMENT;
case 157: return SOURCE_FILE;
case 181: return DOMINATE;
case 182: return POST_DOMINATE;
case 183: return CDG;
case 23663: return IMPORTS;
case 23664: return IS_CALL_FOR_IMPORT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EdgeType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EdgeType findValueByNumber(int number) {
return EdgeType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDescriptor().getEnumTypes().get(0);
}
private static final EdgeType[] VALUES = values();
public static EdgeType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EdgeType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cpg.CpgStruct.Edge.EdgeType)
}
public interface PropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgStruct.Edge.Property)
com.google.protobuf.MessageOrBuilder {
/**
* .cpg.EdgePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
int getNameValue();
/**
* .cpg.EdgePropertyName name = 1;
* @return The name.
*/
io.shiftleft.proto.cpg.Cpg.EdgePropertyName getName();
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
io.shiftleft.proto.cpg.Cpg.PropertyValue getValue();
/**
* .cpg.PropertyValue value = 2;
*/
io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder();
}
/**
*
* Edge properties.
*
*
* Protobuf type {@code cpg.CpgStruct.Edge.Property}
*/
public static final class Property extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgStruct.Edge.Property)
PropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Property.newBuilder() to construct.
private Property(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Property() {
name_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Property();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Property(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
name_ = rawValue;
break;
}
case 18: {
io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(io.shiftleft.proto.cpg.Cpg.PropertyValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_Property_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private int name_;
/**
* .cpg.EdgePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.EdgePropertyName name = 1;
* @return The name.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.EdgePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.EdgePropertyName result = io.shiftleft.proto.cpg.Cpg.EdgePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.EdgePropertyName.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.shiftleft.proto.cpg.Cpg.PropertyValue value_;
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValue getValue() {
return value_ == null ? io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
}
/**
* .cpg.PropertyValue value = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (name_ != io.shiftleft.proto.cpg.Cpg.EdgePropertyName.UNKNOWN_EDGE_PROPERTY.getNumber()) {
output.writeEnum(1, name_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (name_ != io.shiftleft.proto.cpg.Cpg.EdgePropertyName.UNKNOWN_EDGE_PROPERTY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, name_);
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property other = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property) obj;
if (name_ != other.name_) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + name_;
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Edge properties.
*
*
* Protobuf type {@code cpg.CpgStruct.Edge.Property}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.CpgStruct.Edge.Property)
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_Property_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = 0;
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_Property_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property build() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property buildPartial() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property result = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property(this);
result.name_ = name_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property other) {
if (other == io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance()) return this;
if (other.name_ != 0) {
setNameValue(other.getNameValue());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int name_ = 0;
/**
* .cpg.EdgePropertyName name = 1;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.EdgePropertyName name = 1;
* @param value The enum numeric value on the wire for name to set.
* @return This builder for chaining.
*/
public Builder setNameValue(int value) {
name_ = value;
onChanged();
return this;
}
/**
* .cpg.EdgePropertyName name = 1;
* @return The name.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.EdgePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.EdgePropertyName result = io.shiftleft.proto.cpg.Cpg.EdgePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.EdgePropertyName.UNRECOGNIZED : result;
}
/**
* .cpg.EdgePropertyName name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(io.shiftleft.proto.cpg.Cpg.EdgePropertyName value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.EdgePropertyName name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = 0;
onChanged();
return this;
}
private io.shiftleft.proto.cpg.Cpg.PropertyValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder> valueBuilder_;
/**
* .cpg.PropertyValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .cpg.PropertyValue value = 2;
* @return The value.
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder setValue(io.shiftleft.proto.cpg.Cpg.PropertyValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder setValue(
io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder mergeValue(io.shiftleft.proto.cpg.Cpg.PropertyValue value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
io.shiftleft.proto.cpg.Cpg.PropertyValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .cpg.PropertyValue value = 2;
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .cpg.PropertyValue value = 2;
*/
public io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
io.shiftleft.proto.cpg.Cpg.PropertyValue.getDefaultInstance() : value_;
}
}
/**
* .cpg.PropertyValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.PropertyValue, io.shiftleft.proto.cpg.Cpg.PropertyValue.Builder, io.shiftleft.proto.cpg.Cpg.PropertyValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.CpgStruct.Edge.Property)
}
// @@protoc_insertion_point(class_scope:cpg.CpgStruct.Edge.Property)
private static final io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property();
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Property parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Property(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int SRC_FIELD_NUMBER = 1;
private long src_;
/**
*
* Source node.
*
*
* int64 src = 1;
* @return The src.
*/
@java.lang.Override
public long getSrc() {
return src_;
}
public static final int DST_FIELD_NUMBER = 2;
private long dst_;
/**
*
* Destination node.
*
*
* int64 dst = 2;
* @return The dst.
*/
@java.lang.Override
public long getDst() {
return dst_;
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The type.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(type_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
public static final int PROPERTY_FIELD_NUMBER = 4;
private java.util.List property_;
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
@java.lang.Override
public java.util.List getPropertyList() {
return property_;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>
getPropertyOrBuilderList() {
return property_;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
@java.lang.Override
public int getPropertyCount() {
return property_.size();
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty(int index) {
return property_.get(index);
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder(
int index) {
return property_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (src_ != 0L) {
output.writeInt64(1, src_);
}
if (dst_ != 0L) {
output.writeInt64(2, dst_);
}
if (type_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
output.writeEnum(3, type_);
}
for (int i = 0; i < property_.size(); i++) {
output.writeMessage(4, property_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (src_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, src_);
}
if (dst_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, dst_);
}
if (type_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
for (int i = 0; i < property_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, property_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge other = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) obj;
if (getSrc()
!= other.getSrc()) return false;
if (getDst()
!= other.getDst()) return false;
if (type_ != other.type_) return false;
if (!getPropertyList()
.equals(other.getPropertyList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SRC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSrc());
hash = (37 * hash) + DST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDst());
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getPropertyCount() > 0) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getPropertyList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.CpgStruct.Edge}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.CpgStruct.Edge)
io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPropertyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
src_ = 0L;
dst_ = 0L;
type_ = 0;
if (propertyBuilder_ == null) {
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
propertyBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_Edge_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge build() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge buildPartial() {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge result = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge(this);
int from_bitField0_ = bitField0_;
result.src_ = src_;
result.dst_ = dst_;
result.type_ = type_;
if (propertyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
property_ = java.util.Collections.unmodifiableList(property_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.property_ = property_;
} else {
result.property_ = propertyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge other) {
if (other == io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance()) return this;
if (other.getSrc() != 0L) {
setSrc(other.getSrc());
}
if (other.getDst() != 0L) {
setDst(other.getDst());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (propertyBuilder_ == null) {
if (!other.property_.isEmpty()) {
if (property_.isEmpty()) {
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePropertyIsMutable();
property_.addAll(other.property_);
}
onChanged();
}
} else {
if (!other.property_.isEmpty()) {
if (propertyBuilder_.isEmpty()) {
propertyBuilder_.dispose();
propertyBuilder_ = null;
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000001);
propertyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertyFieldBuilder() : null;
} else {
propertyBuilder_.addAllMessages(other.property_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long src_ ;
/**
*
* Source node.
*
*
* int64 src = 1;
* @return The src.
*/
@java.lang.Override
public long getSrc() {
return src_;
}
/**
*
* Source node.
*
*
* int64 src = 1;
* @param value The src to set.
* @return This builder for chaining.
*/
public Builder setSrc(long value) {
src_ = value;
onChanged();
return this;
}
/**
*
* Source node.
*
*
* int64 src = 1;
* @return This builder for chaining.
*/
public Builder clearSrc() {
src_ = 0L;
onChanged();
return this;
}
private long dst_ ;
/**
*
* Destination node.
*
*
* int64 dst = 2;
* @return The dst.
*/
@java.lang.Override
public long getDst() {
return dst_;
}
/**
*
* Destination node.
*
*
* int64 dst = 2;
* @param value The dst to set.
* @return This builder for chaining.
*/
public Builder setDst(long value) {
dst_ = value;
onChanged();
return this;
}
/**
*
* Destination node.
*
*
* int64 dst = 2;
* @return This builder for chaining.
*/
public Builder clearDst() {
dst_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return The type.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(type_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.util.List property_ =
java.util.Collections.emptyList();
private void ensurePropertyIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
property_ = new java.util.ArrayList(property_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder> propertyBuilder_;
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public java.util.List getPropertyList() {
if (propertyBuilder_ == null) {
return java.util.Collections.unmodifiableList(property_);
} else {
return propertyBuilder_.getMessageList();
}
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public int getPropertyCount() {
if (propertyBuilder_ == null) {
return property_.size();
} else {
return propertyBuilder_.getCount();
}
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty(int index) {
if (propertyBuilder_ == null) {
return property_.get(index);
} else {
return propertyBuilder_.getMessage(index);
}
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder setProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.set(index, value);
onChanged();
} else {
propertyBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder setProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.set(index, builderForValue.build());
onChanged();
} else {
propertyBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder addProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(value);
onChanged();
} else {
propertyBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder addProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(index, value);
onChanged();
} else {
propertyBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder addProperty(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.add(builderForValue.build());
onChanged();
} else {
propertyBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder addProperty(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.add(index, builderForValue.build());
onChanged();
} else {
propertyBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder addAllProperty(
java.lang.Iterable extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property> values) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, property_);
onChanged();
} else {
propertyBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder clearProperty() {
if (propertyBuilder_ == null) {
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
propertyBuilder_.clear();
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public Builder removeProperty(int index) {
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.remove(index);
onChanged();
} else {
propertyBuilder_.remove(index);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder getPropertyBuilder(
int index) {
return getPropertyFieldBuilder().getBuilder(index);
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder(
int index) {
if (propertyBuilder_ == null) {
return property_.get(index); } else {
return propertyBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>
getPropertyOrBuilderList() {
if (propertyBuilder_ != null) {
return propertyBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(property_);
}
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder addPropertyBuilder() {
return getPropertyFieldBuilder().addBuilder(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder addPropertyBuilder(
int index) {
return getPropertyFieldBuilder().addBuilder(
index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Edge.Property property = 4;
*/
public java.util.List
getPropertyBuilderList() {
return getPropertyFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>
getPropertyFieldBuilder() {
if (propertyBuilder_ == null) {
propertyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>(
property_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
property_ = null;
}
return propertyBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.CpgStruct.Edge)
}
// @@protoc_insertion_point(class_scope:cpg.CpgStruct.Edge)
private static final io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge();
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Edge parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Edge(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NODE_FIELD_NUMBER = 1;
private java.util.List node_;
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public java.util.List getNodeList() {
return node_;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeOrBuilderList() {
return node_;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public int getNodeCount() {
return node_.size();
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode(int index) {
return node_.get(index);
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder(
int index) {
return node_.get(index);
}
public static final int EDGE_FIELD_NUMBER = 2;
private java.util.List edge_;
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public java.util.List getEdgeList() {
return edge_;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeOrBuilderList() {
return edge_;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public int getEdgeCount() {
return edge_.size();
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge(int index) {
return edge_.get(index);
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder(
int index) {
return edge_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < node_.size(); i++) {
output.writeMessage(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
output.writeMessage(2, edge_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < node_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, edge_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgStruct other = (io.shiftleft.proto.cpg.Cpg.CpgStruct) obj;
if (!getNodeList()
.equals(other.getNodeList())) return false;
if (!getEdgeList()
.equals(other.getEdgeList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNodeCount() > 0) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNodeList().hashCode();
}
if (getEdgeCount() > 0) {
hash = (37 * hash) + EDGE_FIELD_NUMBER;
hash = (53 * hash) + getEdgeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgStruct prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.CpgStruct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.CpgStruct)
io.shiftleft.proto.cpg.Cpg.CpgStructOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgStruct.class, io.shiftleft.proto.cpg.Cpg.CpgStruct.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.CpgStruct.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeFieldBuilder();
getEdgeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodeBuilder_.clear();
}
if (edgeBuilder_ == null) {
edge_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
edgeBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgStruct_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.CpgStruct.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct build() {
io.shiftleft.proto.cpg.Cpg.CpgStruct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct buildPartial() {
io.shiftleft.proto.cpg.Cpg.CpgStruct result = new io.shiftleft.proto.cpg.Cpg.CpgStruct(this);
int from_bitField0_ = bitField0_;
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
node_ = java.util.Collections.unmodifiableList(node_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (edgeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
edge_ = java.util.Collections.unmodifiableList(edge_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.edge_ = edge_;
} else {
result.edge_ = edgeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.CpgStruct) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.CpgStruct other) {
if (other == io.shiftleft.proto.cpg.Cpg.CpgStruct.getDefaultInstance()) return this;
if (nodeBuilder_ == null) {
if (!other.node_.isEmpty()) {
if (node_.isEmpty()) {
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeIsMutable();
node_.addAll(other.node_);
}
onChanged();
}
} else {
if (!other.node_.isEmpty()) {
if (nodeBuilder_.isEmpty()) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
nodeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodeFieldBuilder() : null;
} else {
nodeBuilder_.addAllMessages(other.node_);
}
}
}
if (edgeBuilder_ == null) {
if (!other.edge_.isEmpty()) {
if (edge_.isEmpty()) {
edge_ = other.edge_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEdgeIsMutable();
edge_.addAll(other.edge_);
}
onChanged();
}
} else {
if (!other.edge_.isEmpty()) {
if (edgeBuilder_.isEmpty()) {
edgeBuilder_.dispose();
edgeBuilder_ = null;
edge_ = other.edge_;
bitField0_ = (bitField0_ & ~0x00000002);
edgeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEdgeFieldBuilder() : null;
} else {
edgeBuilder_.addAllMessages(other.edge_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.CpgStruct parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.CpgStruct) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List node_ =
java.util.Collections.emptyList();
private void ensureNodeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
node_ = new java.util.ArrayList(node_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder> nodeBuilder_;
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public java.util.List getNodeList() {
if (nodeBuilder_ == null) {
return java.util.Collections.unmodifiableList(node_);
} else {
return nodeBuilder_.getMessageList();
}
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public int getNodeCount() {
if (nodeBuilder_ == null) {
return node_.size();
} else {
return nodeBuilder_.getCount();
}
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode(int index) {
if (nodeBuilder_ == null) {
return node_.get(index);
} else {
return nodeBuilder_.getMessage(index);
}
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder setNode(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.set(index, value);
onChanged();
} else {
nodeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder setNode(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.set(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder addNode(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(value);
onChanged();
} else {
nodeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder addNode(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(index, value);
onChanged();
} else {
nodeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder addNode(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder addNode(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder addAllNode(
java.lang.Iterable extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Node> values) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, node_);
onChanged();
} else {
nodeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeBuilder_.clear();
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public Builder removeNode(int index) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.remove(index);
onChanged();
} else {
nodeBuilder_.remove(index);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder getNodeBuilder(
int index) {
return getNodeFieldBuilder().getBuilder(index);
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder(
int index) {
if (nodeBuilder_ == null) {
return node_.get(index); } else {
return nodeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeOrBuilderList() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(node_);
}
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder addNodeBuilder() {
return getNodeFieldBuilder().addBuilder(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder addNodeBuilder(
int index) {
return getNodeFieldBuilder().addBuilder(
index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
public java.util.List
getNodeBuilderList() {
return getNodeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>(
node_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private java.util.List edge_ =
java.util.Collections.emptyList();
private void ensureEdgeIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
edge_ = new java.util.ArrayList(edge_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder> edgeBuilder_;
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public java.util.List getEdgeList() {
if (edgeBuilder_ == null) {
return java.util.Collections.unmodifiableList(edge_);
} else {
return edgeBuilder_.getMessageList();
}
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public int getEdgeCount() {
if (edgeBuilder_ == null) {
return edge_.size();
} else {
return edgeBuilder_.getCount();
}
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge(int index) {
if (edgeBuilder_ == null) {
return edge_.get(index);
} else {
return edgeBuilder_.getMessage(index);
}
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder setEdge(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.set(index, value);
onChanged();
} else {
edgeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder setEdge(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.set(index, builderForValue.build());
onChanged();
} else {
edgeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder addEdge(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.add(value);
onChanged();
} else {
edgeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder addEdge(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.add(index, value);
onChanged();
} else {
edgeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder addEdge(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.add(builderForValue.build());
onChanged();
} else {
edgeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder addEdge(
int index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.add(index, builderForValue.build());
onChanged();
} else {
edgeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder addAllEdge(
java.lang.Iterable extends io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge> values) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, edge_);
onChanged();
} else {
edgeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder clearEdge() {
if (edgeBuilder_ == null) {
edge_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
edgeBuilder_.clear();
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public Builder removeEdge(int index) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.remove(index);
onChanged();
} else {
edgeBuilder_.remove(index);
}
return this;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder getEdgeBuilder(
int index) {
return getEdgeFieldBuilder().getBuilder(index);
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder(
int index) {
if (edgeBuilder_ == null) {
return edge_.get(index); } else {
return edgeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeOrBuilderList() {
if (edgeBuilder_ != null) {
return edgeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(edge_);
}
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder addEdgeBuilder() {
return getEdgeFieldBuilder().addBuilder(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder addEdgeBuilder(
int index) {
return getEdgeFieldBuilder().addBuilder(
index, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance());
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
public java.util.List
getEdgeBuilderList() {
return getEdgeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeFieldBuilder() {
if (edgeBuilder_ == null) {
edgeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>(
edge_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
edge_ = null;
}
return edgeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.CpgStruct)
}
// @@protoc_insertion_point(class_scope:cpg.CpgStruct)
private static final io.shiftleft.proto.cpg.Cpg.CpgStruct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.CpgStruct();
}
public static io.shiftleft.proto.cpg.Cpg.CpgStruct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CpgStruct parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CpgStruct(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdditionalNodePropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.AdditionalNodeProperty)
com.google.protobuf.MessageOrBuilder {
/**
* int64 node_id = 1;
* @return The nodeId.
*/
long getNodeId();
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return Whether the property field is set.
*/
boolean hasProperty();
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return The property.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty();
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder();
}
/**
* Protobuf type {@code cpg.AdditionalNodeProperty}
*/
public static final class AdditionalNodeProperty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.AdditionalNodeProperty)
AdditionalNodePropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdditionalNodeProperty.newBuilder() to construct.
private AdditionalNodeProperty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdditionalNodeProperty() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdditionalNodeProperty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdditionalNodeProperty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nodeId_ = input.readInt64();
break;
}
case 18: {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder subBuilder = null;
if (property_ != null) {
subBuilder = property_.toBuilder();
}
property_ = input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(property_);
property_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalNodeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalNodeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.class, io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private long nodeId_;
/**
* int64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int PROPERTY_FIELD_NUMBER = 2;
private io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property property_;
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return Whether the property field is set.
*/
@java.lang.Override
public boolean hasProperty() {
return property_ != null;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return The property.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty() {
return property_ == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance() : property_;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder() {
return getProperty();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0L) {
output.writeInt64(1, nodeId_);
}
if (property_ != null) {
output.writeMessage(2, getProperty());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, nodeId_);
}
if (property_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProperty());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty other = (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) obj;
if (getNodeId()
!= other.getNodeId()) return false;
if (hasProperty() != other.hasProperty()) return false;
if (hasProperty()) {
if (!getProperty()
.equals(other.getProperty())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
if (hasProperty()) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.AdditionalNodeProperty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.AdditionalNodeProperty)
io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalNodeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalNodeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.class, io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nodeId_ = 0L;
if (propertyBuilder_ == null) {
property_ = null;
} else {
property_ = null;
propertyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalNodeProperty_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty build() {
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty buildPartial() {
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty result = new io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty(this);
result.nodeId_ = nodeId_;
if (propertyBuilder_ == null) {
result.property_ = property_;
} else {
result.property_ = propertyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty other) {
if (other == io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance()) return this;
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
if (other.hasProperty()) {
mergeProperty(other.getProperty());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long nodeId_ ;
/**
* int64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
* int64 node_id = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int64 node_id = 1;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = 0L;
onChanged();
return this;
}
private io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property property_;
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder> propertyBuilder_;
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return Whether the property field is set.
*/
public boolean hasProperty() {
return propertyBuilder_ != null || property_ != null;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
* @return The property.
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property getProperty() {
if (propertyBuilder_ == null) {
return property_ == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance() : property_;
} else {
return propertyBuilder_.getMessage();
}
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public Builder setProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
property_ = value;
onChanged();
} else {
propertyBuilder_.setMessage(value);
}
return this;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public Builder setProperty(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
property_ = builderForValue.build();
onChanged();
} else {
propertyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public Builder mergeProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property value) {
if (propertyBuilder_ == null) {
if (property_ != null) {
property_ =
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.newBuilder(property_).mergeFrom(value).buildPartial();
} else {
property_ = value;
}
onChanged();
} else {
propertyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public Builder clearProperty() {
if (propertyBuilder_ == null) {
property_ = null;
onChanged();
} else {
property_ = null;
propertyBuilder_ = null;
}
return this;
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder getPropertyBuilder() {
onChanged();
return getPropertyFieldBuilder().getBuilder();
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder getPropertyOrBuilder() {
if (propertyBuilder_ != null) {
return propertyBuilder_.getMessageOrBuilder();
} else {
return property_ == null ?
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.getDefaultInstance() : property_;
}
}
/**
* .cpg.CpgStruct.Node.Property property = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>
getPropertyFieldBuilder() {
if (propertyBuilder_ == null) {
propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.PropertyOrBuilder>(
getProperty(),
getParentForChildren(),
isClean());
property_ = null;
}
return propertyBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.AdditionalNodeProperty)
}
// @@protoc_insertion_point(class_scope:cpg.AdditionalNodeProperty)
private static final io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty();
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdditionalNodeProperty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AdditionalNodeProperty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdditionalEdgePropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.AdditionalEdgeProperty)
com.google.protobuf.MessageOrBuilder {
/**
* int64 edge_id = 1;
* @return The edgeId.
*/
long getEdgeId();
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return Whether the property field is set.
*/
boolean hasProperty();
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return The property.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty();
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder();
/**
* int64 out_node_key = 3;
* @return The outNodeKey.
*/
long getOutNodeKey();
/**
* int64 in_node_key = 4;
* @return The inNodeKey.
*/
long getInNodeKey();
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The enum numeric value on the wire for edgeType.
*/
int getEdgeTypeValue();
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The edgeType.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType();
}
/**
* Protobuf type {@code cpg.AdditionalEdgeProperty}
*/
public static final class AdditionalEdgeProperty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.AdditionalEdgeProperty)
AdditionalEdgePropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdditionalEdgeProperty.newBuilder() to construct.
private AdditionalEdgeProperty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdditionalEdgeProperty() {
edgeType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdditionalEdgeProperty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdditionalEdgeProperty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
edgeId_ = input.readInt64();
break;
}
case 18: {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder subBuilder = null;
if (property_ != null) {
subBuilder = property_.toBuilder();
}
property_ = input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(property_);
property_ = subBuilder.buildPartial();
}
break;
}
case 24: {
outNodeKey_ = input.readInt64();
break;
}
case 32: {
inNodeKey_ = input.readInt64();
break;
}
case 40: {
int rawValue = input.readEnum();
edgeType_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalEdgeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalEdgeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.class, io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder.class);
}
public static final int EDGE_ID_FIELD_NUMBER = 1;
private long edgeId_;
/**
* int64 edge_id = 1;
* @return The edgeId.
*/
@java.lang.Override
public long getEdgeId() {
return edgeId_;
}
public static final int PROPERTY_FIELD_NUMBER = 2;
private io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property property_;
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return Whether the property field is set.
*/
@java.lang.Override
public boolean hasProperty() {
return property_ != null;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return The property.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty() {
return property_ == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance() : property_;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder() {
return getProperty();
}
public static final int OUT_NODE_KEY_FIELD_NUMBER = 3;
private long outNodeKey_;
/**
* int64 out_node_key = 3;
* @return The outNodeKey.
*/
@java.lang.Override
public long getOutNodeKey() {
return outNodeKey_;
}
public static final int IN_NODE_KEY_FIELD_NUMBER = 4;
private long inNodeKey_;
/**
* int64 in_node_key = 4;
* @return The inNodeKey.
*/
@java.lang.Override
public long getInNodeKey() {
return inNodeKey_;
}
public static final int EDGE_TYPE_FIELD_NUMBER = 5;
private int edgeType_;
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The enum numeric value on the wire for edgeType.
*/
@java.lang.Override public int getEdgeTypeValue() {
return edgeType_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The edgeType.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(edgeType_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (edgeId_ != 0L) {
output.writeInt64(1, edgeId_);
}
if (property_ != null) {
output.writeMessage(2, getProperty());
}
if (outNodeKey_ != 0L) {
output.writeInt64(3, outNodeKey_);
}
if (inNodeKey_ != 0L) {
output.writeInt64(4, inNodeKey_);
}
if (edgeType_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
output.writeEnum(5, edgeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (edgeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, edgeId_);
}
if (property_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProperty());
}
if (outNodeKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, outNodeKey_);
}
if (inNodeKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, inNodeKey_);
}
if (edgeType_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, edgeType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty other = (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) obj;
if (getEdgeId()
!= other.getEdgeId()) return false;
if (hasProperty() != other.hasProperty()) return false;
if (hasProperty()) {
if (!getProperty()
.equals(other.getProperty())) return false;
}
if (getOutNodeKey()
!= other.getOutNodeKey()) return false;
if (getInNodeKey()
!= other.getInNodeKey()) return false;
if (edgeType_ != other.edgeType_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EDGE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEdgeId());
if (hasProperty()) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
}
hash = (37 * hash) + OUT_NODE_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOutNodeKey());
hash = (37 * hash) + IN_NODE_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInNodeKey());
hash = (37 * hash) + EDGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + edgeType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.AdditionalEdgeProperty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.AdditionalEdgeProperty)
io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalEdgeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalEdgeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.class, io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
edgeId_ = 0L;
if (propertyBuilder_ == null) {
property_ = null;
} else {
property_ = null;
propertyBuilder_ = null;
}
outNodeKey_ = 0L;
inNodeKey_ = 0L;
edgeType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_AdditionalEdgeProperty_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty build() {
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty buildPartial() {
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty result = new io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty(this);
result.edgeId_ = edgeId_;
if (propertyBuilder_ == null) {
result.property_ = property_;
} else {
result.property_ = propertyBuilder_.build();
}
result.outNodeKey_ = outNodeKey_;
result.inNodeKey_ = inNodeKey_;
result.edgeType_ = edgeType_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty other) {
if (other == io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance()) return this;
if (other.getEdgeId() != 0L) {
setEdgeId(other.getEdgeId());
}
if (other.hasProperty()) {
mergeProperty(other.getProperty());
}
if (other.getOutNodeKey() != 0L) {
setOutNodeKey(other.getOutNodeKey());
}
if (other.getInNodeKey() != 0L) {
setInNodeKey(other.getInNodeKey());
}
if (other.edgeType_ != 0) {
setEdgeTypeValue(other.getEdgeTypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long edgeId_ ;
/**
* int64 edge_id = 1;
* @return The edgeId.
*/
@java.lang.Override
public long getEdgeId() {
return edgeId_;
}
/**
* int64 edge_id = 1;
* @param value The edgeId to set.
* @return This builder for chaining.
*/
public Builder setEdgeId(long value) {
edgeId_ = value;
onChanged();
return this;
}
/**
* int64 edge_id = 1;
* @return This builder for chaining.
*/
public Builder clearEdgeId() {
edgeId_ = 0L;
onChanged();
return this;
}
private io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property property_;
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder> propertyBuilder_;
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return Whether the property field is set.
*/
public boolean hasProperty() {
return propertyBuilder_ != null || property_ != null;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
* @return The property.
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property getProperty() {
if (propertyBuilder_ == null) {
return property_ == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance() : property_;
} else {
return propertyBuilder_.getMessage();
}
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public Builder setProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
property_ = value;
onChanged();
} else {
propertyBuilder_.setMessage(value);
}
return this;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public Builder setProperty(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder builderForValue) {
if (propertyBuilder_ == null) {
property_ = builderForValue.build();
onChanged();
} else {
propertyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public Builder mergeProperty(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property value) {
if (propertyBuilder_ == null) {
if (property_ != null) {
property_ =
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.newBuilder(property_).mergeFrom(value).buildPartial();
} else {
property_ = value;
}
onChanged();
} else {
propertyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public Builder clearProperty() {
if (propertyBuilder_ == null) {
property_ = null;
onChanged();
} else {
property_ = null;
propertyBuilder_ = null;
}
return this;
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder getPropertyBuilder() {
onChanged();
return getPropertyFieldBuilder().getBuilder();
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder getPropertyOrBuilder() {
if (propertyBuilder_ != null) {
return propertyBuilder_.getMessageOrBuilder();
} else {
return property_ == null ?
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.getDefaultInstance() : property_;
}
}
/**
* .cpg.CpgStruct.Edge.Property property = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>
getPropertyFieldBuilder() {
if (propertyBuilder_ == null) {
propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Property.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.PropertyOrBuilder>(
getProperty(),
getParentForChildren(),
isClean());
property_ = null;
}
return propertyBuilder_;
}
private long outNodeKey_ ;
/**
* int64 out_node_key = 3;
* @return The outNodeKey.
*/
@java.lang.Override
public long getOutNodeKey() {
return outNodeKey_;
}
/**
* int64 out_node_key = 3;
* @param value The outNodeKey to set.
* @return This builder for chaining.
*/
public Builder setOutNodeKey(long value) {
outNodeKey_ = value;
onChanged();
return this;
}
/**
* int64 out_node_key = 3;
* @return This builder for chaining.
*/
public Builder clearOutNodeKey() {
outNodeKey_ = 0L;
onChanged();
return this;
}
private long inNodeKey_ ;
/**
* int64 in_node_key = 4;
* @return The inNodeKey.
*/
@java.lang.Override
public long getInNodeKey() {
return inNodeKey_;
}
/**
* int64 in_node_key = 4;
* @param value The inNodeKey to set.
* @return This builder for chaining.
*/
public Builder setInNodeKey(long value) {
inNodeKey_ = value;
onChanged();
return this;
}
/**
* int64 in_node_key = 4;
* @return This builder for chaining.
*/
public Builder clearInNodeKey() {
inNodeKey_ = 0L;
onChanged();
return this;
}
private int edgeType_ = 0;
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The enum numeric value on the wire for edgeType.
*/
@java.lang.Override public int getEdgeTypeValue() {
return edgeType_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @param value The enum numeric value on the wire for edgeType to set.
* @return This builder for chaining.
*/
public Builder setEdgeTypeValue(int value) {
edgeType_ = value;
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return The edgeType.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(edgeType_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @param value The edgeType to set.
* @return This builder for chaining.
*/
public Builder setEdgeType(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType value) {
if (value == null) {
throw new NullPointerException();
}
edgeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 5;
* @return This builder for chaining.
*/
public Builder clearEdgeType() {
edgeType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.AdditionalEdgeProperty)
}
// @@protoc_insertion_point(class_scope:cpg.AdditionalEdgeProperty)
private static final io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty();
}
public static io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdditionalEdgeProperty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AdditionalEdgeProperty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CpgOverlayOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.CpgOverlay)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
java.util.List
getNodeList();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode(int index);
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
int getNodeCount();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeOrBuilderList();
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder(
int index);
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
java.util.List
getEdgeList();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge(int index);
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
int getEdgeCount();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeOrBuilderList();
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder(
int index);
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
java.util.List
getNodePropertyList();
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getNodeProperty(int index);
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
int getNodePropertyCount();
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder>
getNodePropertyOrBuilderList();
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder getNodePropertyOrBuilder(
int index);
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
java.util.List
getEdgePropertyList();
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getEdgeProperty(int index);
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
int getEdgePropertyCount();
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
java.util.List extends io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder>
getEdgePropertyOrBuilderList();
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder getEdgePropertyOrBuilder(
int index);
}
/**
*
* Overlays can be stacked onto each other, therefor their node ids must be globally unique.
*
*
* Protobuf type {@code cpg.CpgOverlay}
*/
public static final class CpgOverlay extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.CpgOverlay)
CpgOverlayOrBuilder {
private static final long serialVersionUID = 0L;
// Use CpgOverlay.newBuilder() to construct.
private CpgOverlay(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CpgOverlay() {
node_ = java.util.Collections.emptyList();
edge_ = java.util.Collections.emptyList();
nodeProperty_ = java.util.Collections.emptyList();
edgeProperty_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CpgOverlay();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CpgOverlay(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
node_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
node_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
edge_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
edge_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
nodeProperty_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
nodeProperty_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
edgeProperty_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
edgeProperty_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
node_ = java.util.Collections.unmodifiableList(node_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
edge_ = java.util.Collections.unmodifiableList(edge_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
nodeProperty_ = java.util.Collections.unmodifiableList(nodeProperty_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
edgeProperty_ = java.util.Collections.unmodifiableList(edgeProperty_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgOverlay_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_CpgOverlay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.CpgOverlay.class, io.shiftleft.proto.cpg.Cpg.CpgOverlay.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private java.util.List node_;
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public java.util.List getNodeList() {
return node_;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeOrBuilderList() {
return node_;
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public int getNodeCount() {
return node_.size();
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode(int index) {
return node_.get(index);
}
/**
* repeated .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder(
int index) {
return node_.get(index);
}
public static final int EDGE_FIELD_NUMBER = 2;
private java.util.List edge_;
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public java.util.List getEdgeList() {
return edge_;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeOrBuilderList() {
return edge_;
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public int getEdgeCount() {
return edge_.size();
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge(int index) {
return edge_.get(index);
}
/**
* repeated .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder(
int index) {
return edge_.get(index);
}
public static final int NODE_PROPERTY_FIELD_NUMBER = 3;
private java.util.List nodeProperty_;
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public java.util.List getNodePropertyList() {
return nodeProperty_;
}
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder>
getNodePropertyOrBuilderList() {
return nodeProperty_;
}
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public int getNodePropertyCount() {
return nodeProperty_.size();
}
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getNodeProperty(int index) {
return nodeProperty_.get(index);
}
/**
* repeated .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder getNodePropertyOrBuilder(
int index) {
return nodeProperty_.get(index);
}
public static final int EDGE_PROPERTY_FIELD_NUMBER = 4;
private java.util.List edgeProperty_;
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public java.util.List getEdgePropertyList() {
return edgeProperty_;
}
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder>
getEdgePropertyOrBuilderList() {
return edgeProperty_;
}
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public int getEdgePropertyCount() {
return edgeProperty_.size();
}
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getEdgeProperty(int index) {
return edgeProperty_.get(index);
}
/**
* repeated .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder getEdgePropertyOrBuilder(
int index) {
return edgeProperty_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < node_.size(); i++) {
output.writeMessage(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
output.writeMessage(2, edge_.get(i));
}
for (int i = 0; i < nodeProperty_.size(); i++) {
output.writeMessage(3, nodeProperty_.get(i));
}
for (int i = 0; i < edgeProperty_.size(); i++) {
output.writeMessage(4, edgeProperty_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < node_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, edge_.get(i));
}
for (int i = 0; i < nodeProperty_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, nodeProperty_.get(i));
}
for (int i = 0; i < edgeProperty_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, edgeProperty_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.CpgOverlay)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.CpgOverlay other = (io.shiftleft.proto.cpg.Cpg.CpgOverlay) obj;
if (!getNodeList()
.equals(other.getNodeList())) return false;
if (!getEdgeList()
.equals(other.getEdgeList())) return false;
if (!getNodePropertyList()
.equals(other.getNodePropertyList())) return false;
if (!getEdgePropertyList()
.equals(other.getEdgePropertyList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNodeCount() > 0) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNodeList().hashCode();
}
if (getEdgeCount() > 0) {
hash = (37 * hash) + EDGE_FIELD_NUMBER;
hash = (53 * hash) + getEdgeList().hashCode();
}
if (getNodePropertyCount() > 0) {
hash = (37 * hash) + NODE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getNodePropertyList().hashCode();
}
if (getEdgePropertyCount() > 0) {
hash = (37 * hash) + EDGE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getEdgePropertyList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.CpgOverlay parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.CpgOverlay prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Overlays can be stacked onto each other, therefor their node ids must be globally unique.
*
* DiffGraphs can be created independently of each other and therefor when _adding_ nodes|edges,
* each DiffGraph has its own ID space. However, when removing nodes|edges, the nodeIds refer to the
* globally unique graph id space.
*
*
* Protobuf type {@code cpg.DiffGraph}
*/
public static final class DiffGraph extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DiffGraph)
DiffGraphOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiffGraph.newBuilder() to construct.
private DiffGraph(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiffGraph() {
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiffGraph();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiffGraph(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(
input.readMessage(io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.Builder.class);
}
public interface RemoveNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.DiffGraph.RemoveNode)
com.google.protobuf.MessageOrBuilder {
/**
* int64 key = 1;
* @return The key.
*/
long getKey();
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveNode}
*/
public static final class RemoveNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DiffGraph.RemoveNode)
RemoveNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveNode.newBuilder() to construct.
private RemoveNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveNode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
key_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private long key_;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != 0L) {
output.writeInt64(1, key_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, key_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode other = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) obj;
if (getKey()
!= other.getKey()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.DiffGraph.RemoveNode)
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNode_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode build() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode buildPartial() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode result = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode(this);
result.key_ = key_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode other) {
if (other == io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance()) return this;
if (other.getKey() != 0L) {
setKey(other.getKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long key_ ;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
/**
* int64 key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(long value) {
key_ = value;
onChanged();
return this;
}
/**
* int64 key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.DiffGraph.RemoveNode)
}
// @@protoc_insertion_point(class_scope:cpg.DiffGraph.RemoveNode)
private static final io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode();
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveNodePropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.DiffGraph.RemoveNodeProperty)
com.google.protobuf.MessageOrBuilder {
/**
* int64 key = 1;
* @return The key.
*/
long getKey();
/**
* .cpg.NodePropertyName name = 2;
* @return The enum numeric value on the wire for name.
*/
int getNameValue();
/**
* .cpg.NodePropertyName name = 2;
* @return The name.
*/
io.shiftleft.proto.cpg.Cpg.NodePropertyName getName();
/**
* string local_name = 3;
* @return The localName.
*/
java.lang.String getLocalName();
/**
* string local_name = 3;
* @return The bytes for localName.
*/
com.google.protobuf.ByteString
getLocalNameBytes();
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveNodeProperty}
*/
public static final class RemoveNodeProperty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DiffGraph.RemoveNodeProperty)
RemoveNodePropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveNodeProperty.newBuilder() to construct.
private RemoveNodeProperty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveNodeProperty() {
name_ = 0;
localName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveNodeProperty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveNodeProperty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
key_ = input.readInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
name_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
localName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNodeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNodeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private long key_;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
public static final int NAME_FIELD_NUMBER = 2;
private int name_;
/**
* .cpg.NodePropertyName name = 2;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.NodePropertyName name = 2;
* @return The name.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.NodePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.NodePropertyName result = io.shiftleft.proto.cpg.Cpg.NodePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNRECOGNIZED : result;
}
public static final int LOCAL_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object localName_;
/**
* string local_name = 3;
* @return The localName.
*/
@java.lang.Override
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
}
}
/**
* string local_name = 3;
* @return The bytes for localName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != 0L) {
output.writeInt64(1, key_);
}
if (name_ != io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNKNOWN_NODE_PROPERTY.getNumber()) {
output.writeEnum(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, localName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, key_);
}
if (name_ != io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNKNOWN_NODE_PROPERTY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, localName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty other = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) obj;
if (getKey()
!= other.getKey()) return false;
if (name_ != other.name_) return false;
if (!getLocalName()
.equals(other.getLocalName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + name_;
hash = (37 * hash) + LOCAL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveNodeProperty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.DiffGraph.RemoveNodeProperty)
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNodeProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNodeProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = 0L;
name_ = 0;
localName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveNodeProperty_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty build() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty buildPartial() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty result = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty(this);
result.key_ = key_;
result.name_ = name_;
result.localName_ = localName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty other) {
if (other == io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance()) return this;
if (other.getKey() != 0L) {
setKey(other.getKey());
}
if (other.name_ != 0) {
setNameValue(other.getNameValue());
}
if (!other.getLocalName().isEmpty()) {
localName_ = other.localName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long key_ ;
/**
* int64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
/**
* int64 key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(long value) {
key_ = value;
onChanged();
return this;
}
/**
* int64 key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = 0L;
onChanged();
return this;
}
private int name_ = 0;
/**
* .cpg.NodePropertyName name = 2;
* @return The enum numeric value on the wire for name.
*/
@java.lang.Override public int getNameValue() {
return name_;
}
/**
* .cpg.NodePropertyName name = 2;
* @param value The enum numeric value on the wire for name to set.
* @return This builder for chaining.
*/
public Builder setNameValue(int value) {
name_ = value;
onChanged();
return this;
}
/**
* .cpg.NodePropertyName name = 2;
* @return The name.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.NodePropertyName getName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.NodePropertyName result = io.shiftleft.proto.cpg.Cpg.NodePropertyName.valueOf(name_);
return result == null ? io.shiftleft.proto.cpg.Cpg.NodePropertyName.UNRECOGNIZED : result;
}
/**
* .cpg.NodePropertyName name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(io.shiftleft.proto.cpg.Cpg.NodePropertyName value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.NodePropertyName name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = 0;
onChanged();
return this;
}
private java.lang.Object localName_ = "";
/**
* string local_name = 3;
* @return The localName.
*/
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string local_name = 3;
* @return The bytes for localName.
*/
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string local_name = 3;
* @param value The localName to set.
* @return This builder for chaining.
*/
public Builder setLocalName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localName_ = value;
onChanged();
return this;
}
/**
* string local_name = 3;
* @return This builder for chaining.
*/
public Builder clearLocalName() {
localName_ = getDefaultInstance().getLocalName();
onChanged();
return this;
}
/**
* string local_name = 3;
* @param value The bytes for localName to set.
* @return This builder for chaining.
*/
public Builder setLocalNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.DiffGraph.RemoveNodeProperty)
}
// @@protoc_insertion_point(class_scope:cpg.DiffGraph.RemoveNodeProperty)
private static final io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty();
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveNodeProperty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveNodeProperty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveEdgeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.DiffGraph.RemoveEdge)
com.google.protobuf.MessageOrBuilder {
/**
* int64 out_node_key = 1;
* @return The outNodeKey.
*/
long getOutNodeKey();
/**
* int64 in_node_key = 2;
* @return The inNodeKey.
*/
long getInNodeKey();
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The enum numeric value on the wire for edgeType.
*/
int getEdgeTypeValue();
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The edgeType.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType();
/**
*
* used to identify edges (since our edges don't have ids)
*
*
* bytes propertiesHash = 4;
* @return The propertiesHash.
*/
com.google.protobuf.ByteString getPropertiesHash();
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveEdge}
*/
public static final class RemoveEdge extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DiffGraph.RemoveEdge)
RemoveEdgeOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveEdge.newBuilder() to construct.
private RemoveEdge(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveEdge() {
edgeType_ = 0;
propertiesHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveEdge();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveEdge(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
outNodeKey_ = input.readInt64();
break;
}
case 16: {
inNodeKey_ = input.readInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
edgeType_ = rawValue;
break;
}
case 34: {
propertiesHash_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder.class);
}
public static final int OUT_NODE_KEY_FIELD_NUMBER = 1;
private long outNodeKey_;
/**
* int64 out_node_key = 1;
* @return The outNodeKey.
*/
@java.lang.Override
public long getOutNodeKey() {
return outNodeKey_;
}
public static final int IN_NODE_KEY_FIELD_NUMBER = 2;
private long inNodeKey_;
/**
* int64 in_node_key = 2;
* @return The inNodeKey.
*/
@java.lang.Override
public long getInNodeKey() {
return inNodeKey_;
}
public static final int EDGE_TYPE_FIELD_NUMBER = 3;
private int edgeType_;
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The enum numeric value on the wire for edgeType.
*/
@java.lang.Override public int getEdgeTypeValue() {
return edgeType_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The edgeType.
*/
@java.lang.Override public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(edgeType_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
public static final int PROPERTIESHASH_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString propertiesHash_;
/**
*
* used to identify edges (since our edges don't have ids)
*
*
* bytes propertiesHash = 4;
* @return The propertiesHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPropertiesHash() {
return propertiesHash_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (outNodeKey_ != 0L) {
output.writeInt64(1, outNodeKey_);
}
if (inNodeKey_ != 0L) {
output.writeInt64(2, inNodeKey_);
}
if (edgeType_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
output.writeEnum(3, edgeType_);
}
if (!propertiesHash_.isEmpty()) {
output.writeBytes(4, propertiesHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (outNodeKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, outNodeKey_);
}
if (inNodeKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, inNodeKey_);
}
if (edgeType_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNKNOWN_EDGE_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, edgeType_);
}
if (!propertiesHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, propertiesHash_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge other = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) obj;
if (getOutNodeKey()
!= other.getOutNodeKey()) return false;
if (getInNodeKey()
!= other.getInNodeKey()) return false;
if (edgeType_ != other.edgeType_) return false;
if (!getPropertiesHash()
.equals(other.getPropertiesHash())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OUT_NODE_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOutNodeKey());
hash = (37 * hash) + IN_NODE_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInNodeKey());
hash = (37 * hash) + EDGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + edgeType_;
hash = (37 * hash) + PROPERTIESHASH_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.DiffGraph.RemoveEdge}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.DiffGraph.RemoveEdge)
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
outNodeKey_ = 0L;
inNodeKey_ = 0L;
edgeType_ = 0;
propertiesHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_RemoveEdge_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge build() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge buildPartial() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge result = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge(this);
result.outNodeKey_ = outNodeKey_;
result.inNodeKey_ = inNodeKey_;
result.edgeType_ = edgeType_;
result.propertiesHash_ = propertiesHash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge other) {
if (other == io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance()) return this;
if (other.getOutNodeKey() != 0L) {
setOutNodeKey(other.getOutNodeKey());
}
if (other.getInNodeKey() != 0L) {
setInNodeKey(other.getInNodeKey());
}
if (other.edgeType_ != 0) {
setEdgeTypeValue(other.getEdgeTypeValue());
}
if (other.getPropertiesHash() != com.google.protobuf.ByteString.EMPTY) {
setPropertiesHash(other.getPropertiesHash());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long outNodeKey_ ;
/**
* int64 out_node_key = 1;
* @return The outNodeKey.
*/
@java.lang.Override
public long getOutNodeKey() {
return outNodeKey_;
}
/**
* int64 out_node_key = 1;
* @param value The outNodeKey to set.
* @return This builder for chaining.
*/
public Builder setOutNodeKey(long value) {
outNodeKey_ = value;
onChanged();
return this;
}
/**
* int64 out_node_key = 1;
* @return This builder for chaining.
*/
public Builder clearOutNodeKey() {
outNodeKey_ = 0L;
onChanged();
return this;
}
private long inNodeKey_ ;
/**
* int64 in_node_key = 2;
* @return The inNodeKey.
*/
@java.lang.Override
public long getInNodeKey() {
return inNodeKey_;
}
/**
* int64 in_node_key = 2;
* @param value The inNodeKey to set.
* @return This builder for chaining.
*/
public Builder setInNodeKey(long value) {
inNodeKey_ = value;
onChanged();
return this;
}
/**
* int64 in_node_key = 2;
* @return This builder for chaining.
*/
public Builder clearInNodeKey() {
inNodeKey_ = 0L;
onChanged();
return this;
}
private int edgeType_ = 0;
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The enum numeric value on the wire for edgeType.
*/
@java.lang.Override public int getEdgeTypeValue() {
return edgeType_;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @param value The enum numeric value on the wire for edgeType to set.
* @return This builder for chaining.
*/
public Builder setEdgeTypeValue(int value) {
edgeType_ = value;
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return The edgeType.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType getEdgeType() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType result = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.valueOf(edgeType_);
return result == null ? io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType.UNRECOGNIZED : result;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @param value The edgeType to set.
* @return This builder for chaining.
*/
public Builder setEdgeType(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.EdgeType value) {
if (value == null) {
throw new NullPointerException();
}
edgeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.CpgStruct.Edge.EdgeType edge_type = 3;
* @return This builder for chaining.
*/
public Builder clearEdgeType() {
edgeType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString propertiesHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* used to identify edges (since our edges don't have ids)
*
* used to identify edges (since our edges don't have ids)
*
*
* bytes propertiesHash = 4;
* @param value The propertiesHash to set.
* @return This builder for chaining.
*/
public Builder setPropertiesHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
propertiesHash_ = value;
onChanged();
return this;
}
/**
*
* used to identify edges (since our edges don't have ids)
*
*
* bytes propertiesHash = 4;
* @return This builder for chaining.
*/
public Builder clearPropertiesHash() {
propertiesHash_ = getDefaultInstance().getPropertiesHash();
onChanged();
return this;
}
private int propertyName_ = 0;
/**
* .cpg.EdgePropertyName property_name = 5;
* @return The enum numeric value on the wire for propertyName.
*/
@java.lang.Override public int getPropertyNameValue() {
return propertyName_;
}
/**
* .cpg.EdgePropertyName property_name = 5;
* @param value The enum numeric value on the wire for propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyNameValue(int value) {
propertyName_ = value;
onChanged();
return this;
}
/**
* .cpg.EdgePropertyName property_name = 5;
* @return The propertyName.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.EdgePropertyName getPropertyName() {
@SuppressWarnings("deprecation")
io.shiftleft.proto.cpg.Cpg.EdgePropertyName result = io.shiftleft.proto.cpg.Cpg.EdgePropertyName.valueOf(propertyName_);
return result == null ? io.shiftleft.proto.cpg.Cpg.EdgePropertyName.UNRECOGNIZED : result;
}
/**
* .cpg.EdgePropertyName property_name = 5;
* @param value The propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyName(io.shiftleft.proto.cpg.Cpg.EdgePropertyName value) {
if (value == null) {
throw new NullPointerException();
}
propertyName_ = value.getNumber();
onChanged();
return this;
}
/**
* .cpg.EdgePropertyName property_name = 5;
* @return This builder for chaining.
*/
public Builder clearPropertyName() {
propertyName_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.DiffGraph.RemoveEdgeProperty)
}
// @@protoc_insertion_point(class_scope:cpg.DiffGraph.RemoveEdgeProperty)
private static final io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty();
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveEdgeProperty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveEdgeProperty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:cpg.DiffGraph.Entry)
com.google.protobuf.MessageOrBuilder {
/**
* .cpg.CpgStruct.Node node = 1;
* @return Whether the node field is set.
*/
boolean hasNode();
/**
* .cpg.CpgStruct.Node node = 1;
* @return The node.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode();
/**
* .cpg.CpgStruct.Node node = 1;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder();
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return Whether the edge field is set.
*/
boolean hasEdge();
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return The edge.
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge();
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder();
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return Whether the nodeProperty field is set.
*/
boolean hasNodeProperty();
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return The nodeProperty.
*/
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getNodeProperty();
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder getNodePropertyOrBuilder();
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return Whether the edgeProperty field is set.
*/
boolean hasEdgeProperty();
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return The edgeProperty.
*/
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getEdgeProperty();
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder getEdgePropertyOrBuilder();
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return Whether the removeNode field is set.
*/
boolean hasRemoveNode();
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return The removeNode.
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getRemoveNode();
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder getRemoveNodeOrBuilder();
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return Whether the removeNodeProperty field is set.
*/
boolean hasRemoveNodeProperty();
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return The removeNodeProperty.
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getRemoveNodeProperty();
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder getRemoveNodePropertyOrBuilder();
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return Whether the removeEdge field is set.
*/
boolean hasRemoveEdge();
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return The removeEdge.
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge getRemoveEdge();
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder getRemoveEdgeOrBuilder();
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return Whether the removeEdgeProperty field is set.
*/
boolean hasRemoveEdgeProperty();
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return The removeEdgeProperty.
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty getRemoveEdgeProperty();
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder getRemoveEdgePropertyOrBuilder();
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.ValueCase getValueCase();
}
/**
* Protobuf type {@code cpg.DiffGraph.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cpg.DiffGraph.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entry() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Entry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder subBuilder = null;
if (valueCase_ == 1) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 1;
break;
}
case 18: {
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder subBuilder = null;
if (valueCase_ == 2) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 2;
break;
}
case 26: {
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder subBuilder = null;
if (valueCase_ == 3) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 3;
break;
}
case 34: {
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder subBuilder = null;
if (valueCase_ == 4) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 4;
break;
}
case 42: {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder subBuilder = null;
if (valueCase_ == 5) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 5;
break;
}
case 50: {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder subBuilder = null;
if (valueCase_ == 6) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 6;
break;
}
case 58: {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder subBuilder = null;
if (valueCase_ == 7) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 7;
break;
}
case 66: {
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder subBuilder = null;
if (valueCase_ == 8) {
subBuilder = ((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_).toBuilder();
}
value_ =
input.readMessage(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 8;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NODE(1),
EDGE(2),
NODE_PROPERTY(3),
EDGE_PROPERTY(4),
REMOVE_NODE(5),
REMOVE_NODE_PROPERTY(6),
REMOVE_EDGE(7),
REMOVE_EDGE_PROPERTY(8),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return NODE;
case 2: return EDGE;
case 3: return NODE_PROPERTY;
case 4: return EDGE_PROPERTY;
case 5: return REMOVE_NODE;
case 6: return REMOVE_NODE_PROPERTY;
case 7: return REMOVE_EDGE;
case 8: return REMOVE_EDGE_PROPERTY;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int NODE_FIELD_NUMBER = 1;
/**
* .cpg.CpgStruct.Node node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return valueCase_ == 1;
}
/**
* .cpg.CpgStruct.Node node = 1;
* @return The node.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode() {
if (valueCase_ == 1) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder() {
if (valueCase_ == 1) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
public static final int EDGE_FIELD_NUMBER = 2;
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return Whether the edge field is set.
*/
@java.lang.Override
public boolean hasEdge() {
return valueCase_ == 2;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return The edge.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge() {
if (valueCase_ == 2) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder() {
if (valueCase_ == 2) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
public static final int NODE_PROPERTY_FIELD_NUMBER = 3;
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return Whether the nodeProperty field is set.
*/
@java.lang.Override
public boolean hasNodeProperty() {
return valueCase_ == 3;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return The nodeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getNodeProperty() {
if (valueCase_ == 3) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder getNodePropertyOrBuilder() {
if (valueCase_ == 3) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
public static final int EDGE_PROPERTY_FIELD_NUMBER = 4;
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return Whether the edgeProperty field is set.
*/
@java.lang.Override
public boolean hasEdgeProperty() {
return valueCase_ == 4;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return The edgeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getEdgeProperty() {
if (valueCase_ == 4) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder getEdgePropertyOrBuilder() {
if (valueCase_ == 4) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
public static final int REMOVE_NODE_FIELD_NUMBER = 5;
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return Whether the removeNode field is set.
*/
@java.lang.Override
public boolean hasRemoveNode() {
return valueCase_ == 5;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return The removeNode.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getRemoveNode() {
if (valueCase_ == 5) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder getRemoveNodeOrBuilder() {
if (valueCase_ == 5) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
public static final int REMOVE_NODE_PROPERTY_FIELD_NUMBER = 6;
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return Whether the removeNodeProperty field is set.
*/
@java.lang.Override
public boolean hasRemoveNodeProperty() {
return valueCase_ == 6;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return The removeNodeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getRemoveNodeProperty() {
if (valueCase_ == 6) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder getRemoveNodePropertyOrBuilder() {
if (valueCase_ == 6) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
public static final int REMOVE_EDGE_FIELD_NUMBER = 7;
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return Whether the removeEdge field is set.
*/
@java.lang.Override
public boolean hasRemoveEdge() {
return valueCase_ == 7;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return The removeEdge.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge getRemoveEdge() {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder getRemoveEdgeOrBuilder() {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
public static final int REMOVE_EDGE_PROPERTY_FIELD_NUMBER = 8;
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return Whether the removeEdgeProperty field is set.
*/
@java.lang.Override
public boolean hasRemoveEdgeProperty() {
return valueCase_ == 8;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return The removeEdgeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty getRemoveEdgeProperty() {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder getRemoveEdgePropertyOrBuilder() {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (valueCase_ == 1) {
output.writeMessage(1, (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_);
}
if (valueCase_ == 4) {
output.writeMessage(4, (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_);
}
if (valueCase_ == 5) {
output.writeMessage(5, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_);
}
if (valueCase_ == 6) {
output.writeMessage(6, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_);
}
if (valueCase_ == 7) {
output.writeMessage(7, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_);
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_);
}
if (valueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_);
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_);
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_);
}
if (valueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry other = (io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getNode()
.equals(other.getNode())) return false;
break;
case 2:
if (!getEdge()
.equals(other.getEdge())) return false;
break;
case 3:
if (!getNodeProperty()
.equals(other.getNodeProperty())) return false;
break;
case 4:
if (!getEdgeProperty()
.equals(other.getEdgeProperty())) return false;
break;
case 5:
if (!getRemoveNode()
.equals(other.getRemoveNode())) return false;
break;
case 6:
if (!getRemoveNodeProperty()
.equals(other.getRemoveNodeProperty())) return false;
break;
case 7:
if (!getRemoveEdge()
.equals(other.getRemoveEdge())) return false;
break;
case 8:
if (!getRemoveEdgeProperty()
.equals(other.getRemoveEdgeProperty())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (valueCase_) {
case 1:
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
break;
case 2:
hash = (37 * hash) + EDGE_FIELD_NUMBER;
hash = (53 * hash) + getEdge().hashCode();
break;
case 3:
hash = (37 * hash) + NODE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getNodeProperty().hashCode();
break;
case 4:
hash = (37 * hash) + EDGE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getEdgeProperty().hashCode();
break;
case 5:
hash = (37 * hash) + REMOVE_NODE_FIELD_NUMBER;
hash = (53 * hash) + getRemoveNode().hashCode();
break;
case 6:
hash = (37 * hash) + REMOVE_NODE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getRemoveNodeProperty().hashCode();
break;
case 7:
hash = (37 * hash) + REMOVE_EDGE_FIELD_NUMBER;
hash = (53 * hash) + getRemoveEdge().hashCode();
break;
case 8:
hash = (37 * hash) + REMOVE_EDGE_PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getRemoveEdgeProperty().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cpg.DiffGraph.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cpg.DiffGraph.Entry)
io.shiftleft.proto.cpg.Cpg.DiffGraph.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.class, io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.Builder.class);
}
// Construct using io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.shiftleft.proto.cpg.Cpg.internal_static_cpg_DiffGraph_Entry_descriptor;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry getDefaultInstanceForType() {
return io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.getDefaultInstance();
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry build() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry buildPartial() {
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry result = new io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry(this);
if (valueCase_ == 1) {
if (nodeBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = nodeBuilder_.build();
}
}
if (valueCase_ == 2) {
if (edgeBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = edgeBuilder_.build();
}
}
if (valueCase_ == 3) {
if (nodePropertyBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = nodePropertyBuilder_.build();
}
}
if (valueCase_ == 4) {
if (edgePropertyBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = edgePropertyBuilder_.build();
}
}
if (valueCase_ == 5) {
if (removeNodeBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = removeNodeBuilder_.build();
}
}
if (valueCase_ == 6) {
if (removeNodePropertyBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = removeNodePropertyBuilder_.build();
}
}
if (valueCase_ == 7) {
if (removeEdgeBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = removeEdgeBuilder_.build();
}
}
if (valueCase_ == 8) {
if (removeEdgePropertyBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = removeEdgePropertyBuilder_.build();
}
}
result.valueCase_ = valueCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry) {
return mergeFrom((io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry other) {
if (other == io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case NODE: {
mergeNode(other.getNode());
break;
}
case EDGE: {
mergeEdge(other.getEdge());
break;
}
case NODE_PROPERTY: {
mergeNodeProperty(other.getNodeProperty());
break;
}
case EDGE_PROPERTY: {
mergeEdgeProperty(other.getEdgeProperty());
break;
}
case REMOVE_NODE: {
mergeRemoveNode(other.getRemoveNode());
break;
}
case REMOVE_NODE_PROPERTY: {
mergeRemoveNodeProperty(other.getRemoveNodeProperty());
break;
}
case REMOVE_EDGE: {
mergeRemoveEdge(other.getRemoveEdge());
break;
}
case REMOVE_EDGE_PROPERTY: {
mergeRemoveEdgeProperty(other.getRemoveEdgeProperty());
break;
}
case VALUE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder> nodeBuilder_;
/**
* .cpg.CpgStruct.Node node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return valueCase_ == 1;
}
/**
* .cpg.CpgStruct.Node node = 1;
* @return The node.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node getNode() {
if (nodeBuilder_ == null) {
if (valueCase_ == 1) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return nodeBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
public Builder setNode(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
public Builder setNode(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
public Builder mergeNode(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node value) {
if (nodeBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.newBuilder((io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
nodeBuilder_.mergeFrom(value);
}
nodeBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
nodeBuilder_.clear();
}
return this;
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder getNodeBuilder() {
return getNodeFieldBuilder().getBuilder();
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder getNodeOrBuilder() {
if ((valueCase_ == 1) && (nodeBuilder_ != null)) {
return nodeBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
}
/**
* .cpg.CpgStruct.Node node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.getDefaultInstance();
}
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Node, io.shiftleft.proto.cpg.Cpg.CpgStruct.Node.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.NodeOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.CpgStruct.Node) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return nodeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder> edgeBuilder_;
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return Whether the edge field is set.
*/
@java.lang.Override
public boolean hasEdge() {
return valueCase_ == 2;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
* @return The edge.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge getEdge() {
if (edgeBuilder_ == null) {
if (valueCase_ == 2) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return edgeBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
public Builder setEdge(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
edgeBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
public Builder setEdge(
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
edgeBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
public Builder mergeEdge(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge value) {
if (edgeBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.newBuilder((io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
edgeBuilder_.mergeFrom(value);
}
edgeBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
public Builder clearEdge() {
if (edgeBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
edgeBuilder_.clear();
}
return this;
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
public io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder getEdgeBuilder() {
return getEdgeFieldBuilder().getBuilder();
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder getEdgeOrBuilder() {
if ((valueCase_ == 2) && (edgeBuilder_ != null)) {
return edgeBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_;
}
return io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
}
/**
* .cpg.CpgStruct.Edge edge = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>
getEdgeFieldBuilder() {
if (edgeBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.getDefaultInstance();
}
edgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge, io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge.Builder, io.shiftleft.proto.cpg.Cpg.CpgStruct.EdgeOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.CpgStruct.Edge) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
return edgeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder> nodePropertyBuilder_;
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return Whether the nodeProperty field is set.
*/
@java.lang.Override
public boolean hasNodeProperty() {
return valueCase_ == 3;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
* @return The nodeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty getNodeProperty() {
if (nodePropertyBuilder_ == null) {
if (valueCase_ == 3) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return nodePropertyBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
public Builder setNodeProperty(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty value) {
if (nodePropertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
nodePropertyBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
public Builder setNodeProperty(
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder builderForValue) {
if (nodePropertyBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
nodePropertyBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
public Builder mergeNodeProperty(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty value) {
if (nodePropertyBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.newBuilder((io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
nodePropertyBuilder_.mergeFrom(value);
}
nodePropertyBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
public Builder clearNodeProperty() {
if (nodePropertyBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
nodePropertyBuilder_.clear();
}
return this;
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
public io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder getNodePropertyBuilder() {
return getNodePropertyFieldBuilder().getBuilder();
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder getNodePropertyOrBuilder() {
if ((valueCase_ == 3) && (nodePropertyBuilder_ != null)) {
return nodePropertyBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
}
/**
* .cpg.AdditionalNodeProperty node_property = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder>
getNodePropertyFieldBuilder() {
if (nodePropertyBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.getDefaultInstance();
}
nodePropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalNodePropertyOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.AdditionalNodeProperty) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();;
return nodePropertyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder> edgePropertyBuilder_;
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return Whether the edgeProperty field is set.
*/
@java.lang.Override
public boolean hasEdgeProperty() {
return valueCase_ == 4;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
* @return The edgeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty getEdgeProperty() {
if (edgePropertyBuilder_ == null) {
if (valueCase_ == 4) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
} else {
if (valueCase_ == 4) {
return edgePropertyBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
public Builder setEdgeProperty(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty value) {
if (edgePropertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
edgePropertyBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
public Builder setEdgeProperty(
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder builderForValue) {
if (edgePropertyBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
edgePropertyBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 4;
return this;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
public Builder mergeEdgeProperty(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty value) {
if (edgePropertyBuilder_ == null) {
if (valueCase_ == 4 &&
value_ != io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.newBuilder((io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 4) {
edgePropertyBuilder_.mergeFrom(value);
}
edgePropertyBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
public Builder clearEdgeProperty() {
if (edgePropertyBuilder_ == null) {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
}
edgePropertyBuilder_.clear();
}
return this;
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder getEdgePropertyBuilder() {
return getEdgePropertyFieldBuilder().getBuilder();
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder getEdgePropertyOrBuilder() {
if ((valueCase_ == 4) && (edgePropertyBuilder_ != null)) {
return edgePropertyBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 4) {
return (io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
}
/**
* .cpg.AdditionalEdgeProperty edge_property = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder>
getEdgePropertyFieldBuilder() {
if (edgePropertyBuilder_ == null) {
if (!(valueCase_ == 4)) {
value_ = io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.getDefaultInstance();
}
edgePropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty, io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.AdditionalEdgePropertyOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.AdditionalEdgeProperty) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 4;
onChanged();;
return edgePropertyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder> removeNodeBuilder_;
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return Whether the removeNode field is set.
*/
@java.lang.Override
public boolean hasRemoveNode() {
return valueCase_ == 5;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
* @return The removeNode.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode getRemoveNode() {
if (removeNodeBuilder_ == null) {
if (valueCase_ == 5) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
} else {
if (valueCase_ == 5) {
return removeNodeBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
public Builder setRemoveNode(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode value) {
if (removeNodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
removeNodeBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
public Builder setRemoveNode(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder builderForValue) {
if (removeNodeBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
removeNodeBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 5;
return this;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
public Builder mergeRemoveNode(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode value) {
if (removeNodeBuilder_ == null) {
if (valueCase_ == 5 &&
value_ != io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.newBuilder((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 5) {
removeNodeBuilder_.mergeFrom(value);
}
removeNodeBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
public Builder clearRemoveNode() {
if (removeNodeBuilder_ == null) {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
}
removeNodeBuilder_.clear();
}
return this;
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder getRemoveNodeBuilder() {
return getRemoveNodeFieldBuilder().getBuilder();
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder getRemoveNodeOrBuilder() {
if ((valueCase_ == 5) && (removeNodeBuilder_ != null)) {
return removeNodeBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 5) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveNode remove_node = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder>
getRemoveNodeFieldBuilder() {
if (removeNodeBuilder_ == null) {
if (!(valueCase_ == 5)) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.getDefaultInstance();
}
removeNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNode) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 5;
onChanged();;
return removeNodeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder> removeNodePropertyBuilder_;
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return Whether the removeNodeProperty field is set.
*/
@java.lang.Override
public boolean hasRemoveNodeProperty() {
return valueCase_ == 6;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
* @return The removeNodeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty getRemoveNodeProperty() {
if (removeNodePropertyBuilder_ == null) {
if (valueCase_ == 6) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
} else {
if (valueCase_ == 6) {
return removeNodePropertyBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
public Builder setRemoveNodeProperty(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty value) {
if (removeNodePropertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
removeNodePropertyBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
public Builder setRemoveNodeProperty(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder builderForValue) {
if (removeNodePropertyBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
removeNodePropertyBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 6;
return this;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
public Builder mergeRemoveNodeProperty(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty value) {
if (removeNodePropertyBuilder_ == null) {
if (valueCase_ == 6 &&
value_ != io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.newBuilder((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 6) {
removeNodePropertyBuilder_.mergeFrom(value);
}
removeNodePropertyBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
public Builder clearRemoveNodeProperty() {
if (removeNodePropertyBuilder_ == null) {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
}
removeNodePropertyBuilder_.clear();
}
return this;
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder getRemoveNodePropertyBuilder() {
return getRemoveNodePropertyFieldBuilder().getBuilder();
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder getRemoveNodePropertyOrBuilder() {
if ((valueCase_ == 6) && (removeNodePropertyBuilder_ != null)) {
return removeNodePropertyBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 6) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveNodeProperty remove_node_property = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder>
getRemoveNodePropertyFieldBuilder() {
if (removeNodePropertyBuilder_ == null) {
if (!(valueCase_ == 6)) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.getDefaultInstance();
}
removeNodePropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodePropertyOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveNodeProperty) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 6;
onChanged();;
return removeNodePropertyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder> removeEdgeBuilder_;
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return Whether the removeEdge field is set.
*/
@java.lang.Override
public boolean hasRemoveEdge() {
return valueCase_ == 7;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
* @return The removeEdge.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge getRemoveEdge() {
if (removeEdgeBuilder_ == null) {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
} else {
if (valueCase_ == 7) {
return removeEdgeBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
public Builder setRemoveEdge(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge value) {
if (removeEdgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
removeEdgeBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
public Builder setRemoveEdge(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder builderForValue) {
if (removeEdgeBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
removeEdgeBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 7;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
public Builder mergeRemoveEdge(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge value) {
if (removeEdgeBuilder_ == null) {
if (valueCase_ == 7 &&
value_ != io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.newBuilder((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 7) {
removeEdgeBuilder_.mergeFrom(value);
}
removeEdgeBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
public Builder clearRemoveEdge() {
if (removeEdgeBuilder_ == null) {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
}
removeEdgeBuilder_.clear();
}
return this;
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder getRemoveEdgeBuilder() {
return getRemoveEdgeFieldBuilder().getBuilder();
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder getRemoveEdgeOrBuilder() {
if ((valueCase_ == 7) && (removeEdgeBuilder_ != null)) {
return removeEdgeBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 7) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveEdge remove_edge = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder>
getRemoveEdgeFieldBuilder() {
if (removeEdgeBuilder_ == null) {
if (!(valueCase_ == 7)) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.getDefaultInstance();
}
removeEdgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdge) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 7;
onChanged();;
return removeEdgeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder> removeEdgePropertyBuilder_;
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return Whether the removeEdgeProperty field is set.
*/
@java.lang.Override
public boolean hasRemoveEdgeProperty() {
return valueCase_ == 8;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
* @return The removeEdgeProperty.
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty getRemoveEdgeProperty() {
if (removeEdgePropertyBuilder_ == null) {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return removeEdgePropertyBuilder_.getMessage();
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
public Builder setRemoveEdgeProperty(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty value) {
if (removeEdgePropertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
removeEdgePropertyBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
public Builder setRemoveEdgeProperty(
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder builderForValue) {
if (removeEdgePropertyBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
removeEdgePropertyBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
public Builder mergeRemoveEdgeProperty(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty value) {
if (removeEdgePropertyBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance()) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.newBuilder((io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
removeEdgePropertyBuilder_.mergeFrom(value);
}
removeEdgePropertyBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
public Builder clearRemoveEdgeProperty() {
if (removeEdgePropertyBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
removeEdgePropertyBuilder_.clear();
}
return this;
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder getRemoveEdgePropertyBuilder() {
return getRemoveEdgePropertyFieldBuilder().getBuilder();
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder getRemoveEdgePropertyOrBuilder() {
if ((valueCase_ == 8) && (removeEdgePropertyBuilder_ != null)) {
return removeEdgePropertyBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_;
}
return io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
}
}
/**
* .cpg.DiffGraph.RemoveEdgeProperty remove_edge_property = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder>
getRemoveEdgePropertyFieldBuilder() {
if (removeEdgePropertyBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.getDefaultInstance();
}
removeEdgePropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty.Builder, io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgePropertyOrBuilder>(
(io.shiftleft.proto.cpg.Cpg.DiffGraph.RemoveEdgeProperty) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();;
return removeEdgePropertyBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cpg.DiffGraph.Entry)
}
// @@protoc_insertion_point(class_scope:cpg.DiffGraph.Entry)
private static final io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry();
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENTRIES_FIELD_NUMBER = 1;
private java.util.List entries_;
/**
* repeated .cpg.DiffGraph.Entry entries = 1;
*/
@java.lang.Override
public java.util.List getEntriesList() {
return entries_;
}
/**
* repeated .cpg.DiffGraph.Entry entries = 1;
*/
@java.lang.Override
public java.util.List extends io.shiftleft.proto.cpg.Cpg.DiffGraph.EntryOrBuilder>
getEntriesOrBuilderList() {
return entries_;
}
/**
* repeated .cpg.DiffGraph.Entry entries = 1;
*/
@java.lang.Override
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated .cpg.DiffGraph.Entry entries = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.Entry getEntries(int index) {
return entries_.get(index);
}
/**
* repeated .cpg.DiffGraph.Entry entries = 1;
*/
@java.lang.Override
public io.shiftleft.proto.cpg.Cpg.DiffGraph.EntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(1, entries_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entries_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.shiftleft.proto.cpg.Cpg.DiffGraph)) {
return super.equals(obj);
}
io.shiftleft.proto.cpg.Cpg.DiffGraph other = (io.shiftleft.proto.cpg.Cpg.DiffGraph) obj;
if (!getEntriesList()
.equals(other.getEntriesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.shiftleft.proto.cpg.Cpg.DiffGraph parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.shiftleft.proto.cpg.Cpg.DiffGraph prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* DiffGraphs can be created independently of each other and therefor when _adding_ nodes|edges,
* each DiffGraph has its own ID space. However, when removing nodes|edges, the nodeIds refer to the
* globally unique graph id space.
*