com.google.cloud.securitycenter.v2.AttackPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-securitycenter-v2 Show documentation
Show all versions of proto-google-cloud-securitycenter-v2 Show documentation
Proto library for google-cloud-securitycenter
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/securitycenter/v2/attack_path.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.securitycenter.v2;
/**
*
*
*
* A path that an attacker could take to reach an exposed resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath}
*/
public final class AttackPath extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AttackPath)
AttackPathOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttackPath.newBuilder() to construct.
private AttackPath(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttackPath() {
name_ = "";
pathNodes_ = java.util.Collections.emptyList();
edges_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttackPath();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.class,
com.google.cloud.securitycenter.v2.AttackPath.Builder.class);
}
public interface AttackPathNodeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AttackPath.AttackPathNode)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The resource.
*/
java.lang.String getResource();
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The bytes for resource.
*/
com.google.protobuf.ByteString getResourceBytes();
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The resourceType.
*/
java.lang.String getResourceType();
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The bytes for resourceType.
*/
com.google.protobuf.ByteString getResourceTypeBytes();
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString getDisplayNameBytes();
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding>
getAssociatedFindingsList();
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
getAssociatedFindings(int index);
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
int getAssociatedFindingsCount();
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>
getAssociatedFindingsOrBuilderList();
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFindingOrBuilder
getAssociatedFindingsOrBuilder(int index);
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString getUuidBytes();
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
java.util.List
getAttackStepsList();
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode getAttackSteps(
int index);
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
int getAttackStepsCount();
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNodeOrBuilder>
getAttackStepsOrBuilderList();
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder
getAttackStepsOrBuilder(int index);
}
/**
*
*
*
* Represents one point that an attacker passes through in this attack path.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath.AttackPathNode}
*/
public static final class AttackPathNode extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode)
AttackPathNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttackPathNode.newBuilder() to construct.
private AttackPathNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttackPathNode() {
resource_ = "";
resourceType_ = "";
displayName_ = "";
associatedFindings_ = java.util.Collections.emptyList();
uuid_ = "";
attackSteps_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttackPathNode();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder.class);
}
/**
*
*
*
* The type of the incoming attack step node.
*
*
* Protobuf enum {@code google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType}
*/
public enum NodeType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Type not specified
*
*
* NODE_TYPE_UNSPECIFIED = 0;
*/
NODE_TYPE_UNSPECIFIED(0),
/**
*
*
*
* Incoming edge joined with AND
*
*
* NODE_TYPE_AND = 1;
*/
NODE_TYPE_AND(1),
/**
*
*
*
* Incoming edge joined with OR
*
*
* NODE_TYPE_OR = 2;
*/
NODE_TYPE_OR(2),
/**
*
*
*
* Incoming edge is defense
*
*
* NODE_TYPE_DEFENSE = 3;
*/
NODE_TYPE_DEFENSE(3),
/**
*
*
*
* Incoming edge is attacker
*
*
* NODE_TYPE_ATTACKER = 4;
*/
NODE_TYPE_ATTACKER(4),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Type not specified
*
*
* NODE_TYPE_UNSPECIFIED = 0;
*/
public static final int NODE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Incoming edge joined with AND
*
*
* NODE_TYPE_AND = 1;
*/
public static final int NODE_TYPE_AND_VALUE = 1;
/**
*
*
*
* Incoming edge joined with OR
*
*
* NODE_TYPE_OR = 2;
*/
public static final int NODE_TYPE_OR_VALUE = 2;
/**
*
*
*
* Incoming edge is defense
*
*
* NODE_TYPE_DEFENSE = 3;
*/
public static final int NODE_TYPE_DEFENSE_VALUE = 3;
/**
*
*
*
* Incoming edge is attacker
*
*
* NODE_TYPE_ATTACKER = 4;
*/
public static final int NODE_TYPE_ATTACKER_VALUE = 4;
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 NODE_TYPE_UNSPECIFIED;
case 1:
return NODE_TYPE_AND;
case 2:
return NODE_TYPE_OR;
case 3:
return NODE_TYPE_DEFENSE;
case 4:
return NODE_TYPE_ATTACKER;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap 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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.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:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType)
}
public interface PathNodeAssociatedFindingOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The canonicalFinding.
*/
java.lang.String getCanonicalFinding();
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The bytes for canonicalFinding.
*/
com.google.protobuf.ByteString getCanonicalFindingBytes();
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The findingCategory.
*/
java.lang.String getFindingCategory();
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The bytes for findingCategory.
*/
com.google.protobuf.ByteString getFindingCategoryBytes();
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
}
/**
*
*
*
* A finding that is associated with this node in the attack path.
*
*
* Protobuf type {@code
* google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding}
*/
public static final class PathNodeAssociatedFinding
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding)
PathNodeAssociatedFindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use PathNodeAssociatedFinding.newBuilder() to construct.
private PathNodeAssociatedFinding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PathNodeAssociatedFinding() {
canonicalFinding_ = "";
findingCategory_ = "";
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PathNodeAssociatedFinding();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_PathNodeAssociatedFinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_PathNodeAssociatedFinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.Builder.class);
}
public static final int CANONICAL_FINDING_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object canonicalFinding_ = "";
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The canonicalFinding.
*/
@java.lang.Override
public java.lang.String getCanonicalFinding() {
java.lang.Object ref = canonicalFinding_;
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();
canonicalFinding_ = s;
return s;
}
}
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The bytes for canonicalFinding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCanonicalFindingBytes() {
java.lang.Object ref = canonicalFinding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
canonicalFinding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FINDING_CATEGORY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object findingCategory_ = "";
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The findingCategory.
*/
@java.lang.Override
public java.lang.String getFindingCategory() {
java.lang.Object ref = findingCategory_;
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();
findingCategory_ = s;
return s;
}
}
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The bytes for findingCategory.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFindingCategoryBytes() {
java.lang.Object ref = findingCategory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
findingCategory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFinding_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, canonicalFinding_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, findingCategory_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFinding_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, canonicalFinding_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingCategory_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding)) {
return super.equals(obj);
}
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
other =
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding)
obj;
if (!getCanonicalFinding().equals(other.getCanonicalFinding())) return false;
if (!getFindingCategory().equals(other.getFindingCategory())) return false;
if (!getName().equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CANONICAL_FINDING_FIELD_NUMBER;
hash = (53 * hash) + getCanonicalFinding().hashCode();
hash = (37 * hash) + FINDING_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getFindingCategory().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
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(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
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;
}
/**
*
*
*
* A finding that is associated with this node in the attack path.
*
*
* Protobuf type {@code
* google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding)
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_PathNodeAssociatedFinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_PathNodeAssociatedFinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.Builder.class);
}
// Construct using
// com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
canonicalFinding_ = "";
findingCategory_ = "";
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_PathNodeAssociatedFinding_descriptor;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
getDefaultInstanceForType() {
return com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
build() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
buildPartial() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
result =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.canonicalFinding_ = canonicalFinding_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.findingCategory_ = findingCategory_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
}
@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
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding) {
return mergeFrom(
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
other) {
if (other
== com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.getDefaultInstance()) return this;
if (!other.getCanonicalFinding().isEmpty()) {
canonicalFinding_ = other.canonicalFinding_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFindingCategory().isEmpty()) {
findingCategory_ = other.findingCategory_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
canonicalFinding_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
findingCategory_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object canonicalFinding_ = "";
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The canonicalFinding.
*/
public java.lang.String getCanonicalFinding() {
java.lang.Object ref = canonicalFinding_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
canonicalFinding_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return The bytes for canonicalFinding.
*/
public com.google.protobuf.ByteString getCanonicalFindingBytes() {
java.lang.Object ref = canonicalFinding_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
canonicalFinding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @param value The canonicalFinding to set.
* @return This builder for chaining.
*/
public Builder setCanonicalFinding(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
canonicalFinding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @return This builder for chaining.
*/
public Builder clearCanonicalFinding() {
canonicalFinding_ = getDefaultInstance().getCanonicalFinding();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Canonical name of the associated findings. Example:
* organizations/123/sources/456/findings/789
*
*
* string canonical_finding = 1;
*
* @param value The bytes for canonicalFinding to set.
* @return This builder for chaining.
*/
public Builder setCanonicalFindingBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
canonicalFinding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object findingCategory_ = "";
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The findingCategory.
*/
public java.lang.String getFindingCategory() {
java.lang.Object ref = findingCategory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
findingCategory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return The bytes for findingCategory.
*/
public com.google.protobuf.ByteString getFindingCategoryBytes() {
java.lang.Object ref = findingCategory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
findingCategory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @param value The findingCategory to set.
* @return This builder for chaining.
*/
public Builder setFindingCategory(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
findingCategory_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @return This builder for chaining.
*/
public Builder clearFindingCategory() {
findingCategory_ = getDefaultInstance().getFindingCategory();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The additional taxonomy group within findings from a given source.
*
*
* string finding_category = 2;
*
* @param value The bytes for findingCategory to set.
* @return This builder for chaining.
*/
public Builder setFindingCategoryBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
findingCategory_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Full resource name of the finding.
*
*
* string name = 3;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
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:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding)
}
// @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding)
private static final com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding();
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PathNodeAssociatedFinding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttackStepNodeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString getUuidBytes();
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The type.
*/
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType getType();
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString getDisplayNameBytes();
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
int getLabelsCount();
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
boolean containsLabels(java.lang.String key);
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Deprecated
java.util.Map getLabels();
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
java.util.Map getLabelsMap();
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
java.lang.String getLabelsOrThrow(java.lang.String key);
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The description.
*/
java.lang.String getDescription();
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The bytes for description.
*/
com.google.protobuf.ByteString getDescriptionBytes();
}
/**
*
*
*
* Detailed steps the attack can take between path nodes.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode}
*/
public static final class AttackStepNode extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
AttackStepNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttackStepNode.newBuilder() to construct.
private AttackStepNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttackStepNode() {
uuid_ = "";
type_ = 0;
displayName_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttackStepNode();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
.class);
}
public static final int UUID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_ = 0;
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType getType() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType result =
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType.forNumber(type_);
return result == null
? com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType.UNRECOGNIZED
: result;
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
}
if (type_
!= com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType
.NODE_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
}
if (type_
!= com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType
.NODE_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)) {
return super.equals(obj);
}
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode other =
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode) obj;
if (!getUuid().equals(other.getUuid())) return false;
if (type_ != other.type_) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
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(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode 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;
}
/**
*
*
*
* Detailed steps the attack can take between path nodes.
*
*
* Protobuf type {@code
* google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection(int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.Builder.class);
}
// Construct using
// com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
uuid_ = "";
type_ = 0;
displayName_ = "";
internalGetMutableLabels().clear();
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_AttackStepNode_descriptor;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
getDefaultInstanceForType() {
return com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode build() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
buildPartial() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode result =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uuid_ = uuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.description_ = description_;
}
}
@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
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode) {
return mergeFrom(
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode other) {
if (other
== com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.getDefaultInstance()) return this;
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000004;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000008;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
type_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object uuid_ = "";
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Unique ID for one Node
*
*
* string uuid = 1;
*
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType getType() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType result =
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType.forNumber(
type_);
return result == null
? com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType.UNRECOGNIZED
: result;
}
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Attack step type. Can be either AND, OR or DEFENSE
*
*
* .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* User friendly name of the attack step
*
*
* string display_name = 3;
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ =
com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000008;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
*
*
* Attack step labels for metadata
*
*
* map<string, string> labels = 4;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Attack step description
*
*
* string description = 5;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000010;
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:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
}
// @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode)
private static final com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNode
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode();
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttackStepNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int RESOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resource_ = "";
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The resource.
*/
@java.lang.Override
public java.lang.String getResource() {
java.lang.Object ref = resource_;
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();
resource_ = s;
return s;
}
}
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The bytes for resource.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_TYPE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceType_ = "";
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The resourceType.
*/
@java.lang.Override
public java.lang.String getResourceType() {
java.lang.Object ref = resourceType_;
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();
resourceType_ = s;
return s;
}
}
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The bytes for resourceType.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResourceTypeBytes() {
java.lang.Object ref = resourceType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resourceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSOCIATED_FINDINGS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding>
associatedFindings_;
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding>
getAssociatedFindingsList() {
return associatedFindings_;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>
getAssociatedFindingsOrBuilderList() {
return associatedFindings_;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
@java.lang.Override
public int getAssociatedFindingsCount() {
return associatedFindings_.size();
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
getAssociatedFindings(int index) {
return associatedFindings_.get(index);
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder
getAssociatedFindingsOrBuilder(int index) {
return associatedFindings_.get(index);
}
public static final int UUID_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTACK_STEPS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>
attackSteps_;
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>
getAttackStepsList() {
return attackSteps_;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNodeOrBuilder>
getAttackStepsOrBuilderList() {
return attackSteps_;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
@java.lang.Override
public int getAttackStepsCount() {
return attackSteps_.size();
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
getAttackSteps(int index) {
return attackSteps_.get(index);
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder
getAttackStepsOrBuilder(int index) {
return attackSteps_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
}
for (int i = 0; i < associatedFindings_.size(); i++) {
output.writeMessage(4, associatedFindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uuid_);
}
for (int i = 0; i < attackSteps_.size(); i++) {
output.writeMessage(6, attackSteps_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
}
for (int i = 0; i < associatedFindings_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, associatedFindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uuid_);
}
for (int i = 0; i < attackSteps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, attackSteps_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode)) {
return super.equals(obj);
}
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode other =
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode) obj;
if (!getResource().equals(other.getResource())) return false;
if (!getResourceType().equals(other.getResourceType())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getAssociatedFindingsList().equals(other.getAssociatedFindingsList())) return false;
if (!getUuid().equals(other.getUuid())) return false;
if (!getAttackStepsList().equals(other.getAttackStepsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getResourceType().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (getAssociatedFindingsCount() > 0) {
hash = (37 * hash) + ASSOCIATED_FINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getAssociatedFindingsList().hashCode();
}
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
if (getAttackStepsCount() > 0) {
hash = (37 * hash) + ATTACK_STEPS_FIELD_NUMBER;
hash = (53 * hash) + getAttackStepsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode 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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode 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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode 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(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode 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;
}
/**
*
*
*
* Represents one point that an attacker passes through in this attack path.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath.AttackPathNode}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathNode)
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder.class);
}
// Construct using com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resource_ = "";
resourceType_ = "";
displayName_ = "";
if (associatedFindingsBuilder_ == null) {
associatedFindings_ = java.util.Collections.emptyList();
} else {
associatedFindings_ = null;
associatedFindingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
uuid_ = "";
if (attackStepsBuilder_ == null) {
attackSteps_ = java.util.Collections.emptyList();
} else {
attackSteps_ = null;
attackStepsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathNode_descriptor;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
getDefaultInstanceForType() {
return com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode build() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode buildPartial() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode result =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode result) {
if (associatedFindingsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
associatedFindings_ = java.util.Collections.unmodifiableList(associatedFindings_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.associatedFindings_ = associatedFindings_;
} else {
result.associatedFindings_ = associatedFindingsBuilder_.build();
}
if (attackStepsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
attackSteps_ = java.util.Collections.unmodifiableList(attackSteps_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.attackSteps_ = attackSteps_;
} else {
result.attackSteps_ = attackStepsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resource_ = resource_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.resourceType_ = resourceType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.uuid_ = uuid_;
}
}
@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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode) {
return mergeFrom((com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode other) {
if (other
== com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.getDefaultInstance())
return this;
if (!other.getResource().isEmpty()) {
resource_ = other.resource_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getResourceType().isEmpty()) {
resourceType_ = other.resourceType_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (associatedFindingsBuilder_ == null) {
if (!other.associatedFindings_.isEmpty()) {
if (associatedFindings_.isEmpty()) {
associatedFindings_ = other.associatedFindings_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAssociatedFindingsIsMutable();
associatedFindings_.addAll(other.associatedFindings_);
}
onChanged();
}
} else {
if (!other.associatedFindings_.isEmpty()) {
if (associatedFindingsBuilder_.isEmpty()) {
associatedFindingsBuilder_.dispose();
associatedFindingsBuilder_ = null;
associatedFindings_ = other.associatedFindings_;
bitField0_ = (bitField0_ & ~0x00000008);
associatedFindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAssociatedFindingsFieldBuilder()
: null;
} else {
associatedFindingsBuilder_.addAllMessages(other.associatedFindings_);
}
}
}
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000010;
onChanged();
}
if (attackStepsBuilder_ == null) {
if (!other.attackSteps_.isEmpty()) {
if (attackSteps_.isEmpty()) {
attackSteps_ = other.attackSteps_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAttackStepsIsMutable();
attackSteps_.addAll(other.attackSteps_);
}
onChanged();
}
} else {
if (!other.attackSteps_.isEmpty()) {
if (attackStepsBuilder_.isEmpty()) {
attackStepsBuilder_.dispose();
attackStepsBuilder_ = null;
attackSteps_ = other.attackSteps_;
bitField0_ = (bitField0_ & ~0x00000020);
attackStepsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAttackStepsFieldBuilder()
: null;
} else {
attackStepsBuilder_.addAllMessages(other.attackSteps_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
resource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
resourceType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding
m =
input.readMessage(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.parser(),
extensionRegistry);
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
associatedFindings_.add(m);
} else {
associatedFindingsBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode m =
input.readMessage(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNode.parser(),
extensionRegistry);
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
attackSteps_.add(m);
} else {
attackStepsBuilder_.addMessage(m);
}
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resource_ = "";
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The resource.
*/
public java.lang.String getResource() {
java.lang.Object ref = resource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return The bytes for resource.
*/
public com.google.protobuf.ByteString getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @param value The resource to set.
* @return This builder for chaining.
*/
public Builder setResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @return This builder for chaining.
*/
public Builder clearResource() {
resource_ = getDefaultInstance().getResource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
* format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
*
*
* string resource = 1;
*
* @param value The bytes for resource to set.
* @return This builder for chaining.
*/
public Builder setResourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object resourceType_ = "";
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The resourceType.
*/
public java.lang.String getResourceType() {
java.lang.Object ref = resourceType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return The bytes for resourceType.
*/
public com.google.protobuf.ByteString getResourceTypeBytes() {
java.lang.Object ref = resourceType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resourceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @param value The resourceType to set.
* @return This builder for chaining.
*/
public Builder setResourceType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @return This builder for chaining.
*/
public Builder clearResourceType() {
resourceType_ = getDefaultInstance().getResourceType();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The [supported resource
* type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
*
*
* string resource_type = 2;
*
* @param value The bytes for resourceType to set.
* @return This builder for chaining.
*/
public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Human-readable name of this resource.
*
*
* string display_name = 3;
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding>
associatedFindings_ = java.util.Collections.emptyList();
private void ensureAssociatedFindingsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
associatedFindings_ =
new java.util.ArrayList<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding>(associatedFindings_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>
associatedFindingsBuilder_;
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding>
getAssociatedFindingsList() {
if (associatedFindingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(associatedFindings_);
} else {
return associatedFindingsBuilder_.getMessageList();
}
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public int getAssociatedFindingsCount() {
if (associatedFindingsBuilder_ == null) {
return associatedFindings_.size();
} else {
return associatedFindingsBuilder_.getCount();
}
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
getAssociatedFindings(int index) {
if (associatedFindingsBuilder_ == null) {
return associatedFindings_.get(index);
} else {
return associatedFindingsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder setAssociatedFindings(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
value) {
if (associatedFindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedFindingsIsMutable();
associatedFindings_.set(index, value);
onChanged();
} else {
associatedFindingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder setAssociatedFindings(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
builderForValue) {
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
associatedFindings_.set(index, builderForValue.build());
onChanged();
} else {
associatedFindingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder addAssociatedFindings(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
value) {
if (associatedFindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedFindingsIsMutable();
associatedFindings_.add(value);
onChanged();
} else {
associatedFindingsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder addAssociatedFindings(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
value) {
if (associatedFindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedFindingsIsMutable();
associatedFindings_.add(index, value);
onChanged();
} else {
associatedFindingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder addAssociatedFindings(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
builderForValue) {
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
associatedFindings_.add(builderForValue.build());
onChanged();
} else {
associatedFindingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder addAssociatedFindings(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
builderForValue) {
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
associatedFindings_.add(index, builderForValue.build());
onChanged();
} else {
associatedFindingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder addAllAssociatedFindings(
java.lang.Iterable<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding>
values) {
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associatedFindings_);
onChanged();
} else {
associatedFindingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder clearAssociatedFindings() {
if (associatedFindingsBuilder_ == null) {
associatedFindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
associatedFindingsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public Builder removeAssociatedFindings(int index) {
if (associatedFindingsBuilder_ == null) {
ensureAssociatedFindingsIsMutable();
associatedFindings_.remove(index);
onChanged();
} else {
associatedFindingsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
getAssociatedFindingsBuilder(int index) {
return getAssociatedFindingsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder
getAssociatedFindingsOrBuilder(int index) {
if (associatedFindingsBuilder_ == null) {
return associatedFindings_.get(index);
} else {
return associatedFindingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>
getAssociatedFindingsOrBuilderList() {
if (associatedFindingsBuilder_ != null) {
return associatedFindingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(associatedFindings_);
}
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
addAssociatedFindingsBuilder() {
return getAssociatedFindingsFieldBuilder()
.addBuilder(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.getDefaultInstance());
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder
addAssociatedFindingsBuilder(int index) {
return getAssociatedFindingsFieldBuilder()
.addBuilder(
index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.getDefaultInstance());
}
/**
*
*
*
* The findings associated with this node in the attack path.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding associated_findings = 4;
*
*/
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder>
getAssociatedFindingsBuilderList() {
return getAssociatedFindingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.PathNodeAssociatedFinding
.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>
getAssociatedFindingsFieldBuilder() {
if (associatedFindingsBuilder_ == null) {
associatedFindingsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFinding.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.PathNodeAssociatedFindingOrBuilder>(
associatedFindings_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
associatedFindings_ = null;
}
return associatedFindingsBuilder_;
}
private java.lang.Object uuid_ = "";
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Unique id of the attack path node.
*
*
* string uuid = 5;
*
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uuid_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>
attackSteps_ = java.util.Collections.emptyList();
private void ensureAttackStepsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
attackSteps_ =
new java.util.ArrayList<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>(
attackSteps_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder>
attackStepsBuilder_;
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>
getAttackStepsList() {
if (attackStepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(attackSteps_);
} else {
return attackStepsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public int getAttackStepsCount() {
if (attackStepsBuilder_ == null) {
return attackSteps_.size();
} else {
return attackStepsBuilder_.getCount();
}
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
getAttackSteps(int index) {
if (attackStepsBuilder_ == null) {
return attackSteps_.get(index);
} else {
return attackStepsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder setAttackSteps(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode value) {
if (attackStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttackStepsIsMutable();
attackSteps_.set(index, value);
onChanged();
} else {
attackStepsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder setAttackSteps(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
builderForValue) {
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
attackSteps_.set(index, builderForValue.build());
onChanged();
} else {
attackStepsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder addAttackSteps(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode value) {
if (attackStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttackStepsIsMutable();
attackSteps_.add(value);
onChanged();
} else {
attackStepsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder addAttackSteps(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode value) {
if (attackStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttackStepsIsMutable();
attackSteps_.add(index, value);
onChanged();
} else {
attackStepsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder addAttackSteps(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
builderForValue) {
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
attackSteps_.add(builderForValue.build());
onChanged();
} else {
attackStepsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder addAttackSteps(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
builderForValue) {
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
attackSteps_.add(index, builderForValue.build());
onChanged();
} else {
attackStepsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder addAllAttackSteps(
java.lang.Iterable<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode>
values) {
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attackSteps_);
onChanged();
} else {
attackStepsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder clearAttackSteps() {
if (attackStepsBuilder_ == null) {
attackSteps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
attackStepsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public Builder removeAttackSteps(int index) {
if (attackStepsBuilder_ == null) {
ensureAttackStepsIsMutable();
attackSteps_.remove(index);
onChanged();
} else {
attackStepsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
getAttackStepsBuilder(int index) {
return getAttackStepsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder
getAttackStepsOrBuilder(int index) {
if (attackStepsBuilder_ == null) {
return attackSteps_.get(index);
} else {
return attackStepsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public java.util.List<
? extends
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNodeOrBuilder>
getAttackStepsOrBuilderList() {
if (attackStepsBuilder_ != null) {
return attackStepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attackSteps_);
}
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
addAttackStepsBuilder() {
return getAttackStepsFieldBuilder()
.addBuilder(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.getDefaultInstance());
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder
addAttackStepsBuilder(int index) {
return getAttackStepsFieldBuilder()
.addBuilder(
index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.getDefaultInstance());
}
/**
*
*
*
* A list of attack step nodes that exist in this attack path node.
*
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode attack_steps = 6;
*
*/
public java.util.List<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder>
getAttackStepsBuilderList() {
return getAttackStepsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNodeOrBuilder>
getAttackStepsFieldBuilder() {
if (attackStepsBuilder_ == null) {
attackStepsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode
.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
.AttackStepNodeOrBuilder>(
attackSteps_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
attackSteps_ = null;
}
return attackStepsBuilder_;
}
@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:google.cloud.securitycenter.v2.AttackPath.AttackPathNode)
}
// @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AttackPath.AttackPathNode)
private static final com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode();
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttackPathNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttackPathEdgeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The source.
*/
java.lang.String getSource();
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The bytes for source.
*/
com.google.protobuf.ByteString getSourceBytes();
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The destination.
*/
java.lang.String getDestination();
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The bytes for destination.
*/
com.google.protobuf.ByteString getDestinationBytes();
}
/**
*
*
*
* Represents a connection between a source node and a destination node in
* this attack path.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath.AttackPathEdge}
*/
public static final class AttackPathEdge extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)
AttackPathEdgeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttackPathEdge.newBuilder() to construct.
private AttackPathEdge(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttackPathEdge() {
source_ = "";
destination_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttackPathEdge();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder.class);
}
public static final int SOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object source_ = "";
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object destination_ = "";
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The destination.
*/
@java.lang.Override
public java.lang.String getDestination() {
java.lang.Object ref = destination_;
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();
destination_ = s;
return s;
}
}
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The bytes for destination.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDestinationBytes() {
java.lang.Object ref = destination_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
destination_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)) {
return super.equals(obj);
}
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge other =
(com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge) obj;
if (!getSource().equals(other.getSource())) return false;
if (!getDestination().equals(other.getDestination())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getDestination().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge 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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge 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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge 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(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge 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;
}
/**
*
*
*
* Represents a connection between a source node and a destination node in
* this attack path.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath.AttackPathEdge}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.class,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder.class);
}
// Construct using com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
source_ = "";
destination_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_AttackPathEdge_descriptor;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge
getDefaultInstanceForType() {
return com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge build() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge buildPartial() {
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge result =
new com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.source_ = source_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.destination_ = destination_;
}
}
@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 com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge) {
return mergeFrom((com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge other) {
if (other
== com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.getDefaultInstance())
return this;
if (!other.getSource().isEmpty()) {
source_ = other.source_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDestination().isEmpty()) {
destination_ = other.destination_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
source_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
destination_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object source_ = "";
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return The bytes for source.
*/
public com.google.protobuf.ByteString getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The attack node uuid of the source node.
*
*
* string source = 1;
*
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object destination_ = "";
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The destination.
*/
public java.lang.String getDestination() {
java.lang.Object ref = destination_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destination_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return The bytes for destination.
*/
public com.google.protobuf.ByteString getDestinationBytes() {
java.lang.Object ref = destination_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
destination_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @param value The destination to set.
* @return This builder for chaining.
*/
public Builder setDestination(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destination_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @return This builder for chaining.
*/
public Builder clearDestination() {
destination_ = getDefaultInstance().getDestination();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The attack node uuid of the destination node.
*
*
* string destination = 2;
*
* @param value The bytes for destination to set.
* @return This builder for chaining.
*/
public Builder setDestinationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destination_ = value;
bitField0_ |= 0x00000002;
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:google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)
}
// @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AttackPath.AttackPathEdge)
private static final com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge();
}
public static com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttackPathEdge parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_NODES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List pathNodes_;
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*/
@java.lang.Override
public java.util.List
getPathNodesList() {
return pathNodes_;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>
getPathNodesOrBuilderList() {
return pathNodes_;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*/
@java.lang.Override
public int getPathNodesCount() {
return pathNodes_.size();
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode getPathNodes(int index) {
return pathNodes_.get(index);
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder
getPathNodesOrBuilder(int index) {
return pathNodes_.get(index);
}
public static final int EDGES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List edges_;
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
@java.lang.Override
public java.util.List
getEdgesList() {
return edges_;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>
getEdgesOrBuilderList() {
return edges_;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
@java.lang.Override
public int getEdgesCount() {
return edges_.size();
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge getEdges(int index) {
return edges_.get(index);
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder getEdgesOrBuilder(
int index) {
return edges_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < pathNodes_.size(); i++) {
output.writeMessage(2, pathNodes_.get(i));
}
for (int i = 0; i < edges_.size(); i++) {
output.writeMessage(3, edges_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < pathNodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pathNodes_.get(i));
}
for (int i = 0; i < edges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, edges_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.securitycenter.v2.AttackPath)) {
return super.equals(obj);
}
com.google.cloud.securitycenter.v2.AttackPath other =
(com.google.cloud.securitycenter.v2.AttackPath) obj;
if (!getName().equals(other.getName())) return false;
if (!getPathNodesList().equals(other.getPathNodesList())) return false;
if (!getEdgesList().equals(other.getEdgesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getName().hashCode();
if (getPathNodesCount() > 0) {
hash = (37 * hash) + PATH_NODES_FIELD_NUMBER;
hash = (53 * hash) + getPathNodesList().hashCode();
}
if (getEdgesCount() > 0) {
hash = (37 * hash) + EDGES_FIELD_NUMBER;
hash = (53 * hash) + getEdgesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.securitycenter.v2.AttackPath parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath 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 com.google.cloud.securitycenter.v2.AttackPath parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath 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 com.google.cloud.securitycenter.v2.AttackPath parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.securitycenter.v2.AttackPath 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(com.google.cloud.securitycenter.v2.AttackPath 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;
}
/**
*
*
*
* A path that an attacker could take to reach an exposed resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v2.AttackPath}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AttackPath)
com.google.cloud.securitycenter.v2.AttackPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.securitycenter.v2.AttackPath.class,
com.google.cloud.securitycenter.v2.AttackPath.Builder.class);
}
// Construct using com.google.cloud.securitycenter.v2.AttackPath.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
if (pathNodesBuilder_ == null) {
pathNodes_ = java.util.Collections.emptyList();
} else {
pathNodes_ = null;
pathNodesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (edgesBuilder_ == null) {
edges_ = java.util.Collections.emptyList();
} else {
edges_ = null;
edgesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.securitycenter.v2.AttackPathProto
.internal_static_google_cloud_securitycenter_v2_AttackPath_descriptor;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath getDefaultInstanceForType() {
return com.google.cloud.securitycenter.v2.AttackPath.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath build() {
com.google.cloud.securitycenter.v2.AttackPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath buildPartial() {
com.google.cloud.securitycenter.v2.AttackPath result =
new com.google.cloud.securitycenter.v2.AttackPath(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.AttackPath result) {
if (pathNodesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
pathNodes_ = java.util.Collections.unmodifiableList(pathNodes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.pathNodes_ = pathNodes_;
} else {
result.pathNodes_ = pathNodesBuilder_.build();
}
if (edgesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
edges_ = java.util.Collections.unmodifiableList(edges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.edges_ = edges_;
} else {
result.edges_ = edgesBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.securitycenter.v2.AttackPath result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
}
@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 com.google.cloud.securitycenter.v2.AttackPath) {
return mergeFrom((com.google.cloud.securitycenter.v2.AttackPath) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.securitycenter.v2.AttackPath other) {
if (other == com.google.cloud.securitycenter.v2.AttackPath.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (pathNodesBuilder_ == null) {
if (!other.pathNodes_.isEmpty()) {
if (pathNodes_.isEmpty()) {
pathNodes_ = other.pathNodes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePathNodesIsMutable();
pathNodes_.addAll(other.pathNodes_);
}
onChanged();
}
} else {
if (!other.pathNodes_.isEmpty()) {
if (pathNodesBuilder_.isEmpty()) {
pathNodesBuilder_.dispose();
pathNodesBuilder_ = null;
pathNodes_ = other.pathNodes_;
bitField0_ = (bitField0_ & ~0x00000002);
pathNodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPathNodesFieldBuilder()
: null;
} else {
pathNodesBuilder_.addAllMessages(other.pathNodes_);
}
}
}
if (edgesBuilder_ == null) {
if (!other.edges_.isEmpty()) {
if (edges_.isEmpty()) {
edges_ = other.edges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEdgesIsMutable();
edges_.addAll(other.edges_);
}
onChanged();
}
} else {
if (!other.edges_.isEmpty()) {
if (edgesBuilder_.isEmpty()) {
edgesBuilder_.dispose();
edgesBuilder_ = null;
edges_ = other.edges_;
bitField0_ = (bitField0_ & ~0x00000004);
edgesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEdgesFieldBuilder()
: null;
} else {
edgesBuilder_.addAllMessages(other.edges_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode m =
input.readMessage(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.parser(),
extensionRegistry);
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
pathNodes_.add(m);
} else {
pathNodesBuilder_.addMessage(m);
}
break;
} // case 18
case 26:
{
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge m =
input.readMessage(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.parser(),
extensionRegistry);
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
edges_.add(m);
} else {
edgesBuilder_.addMessage(m);
}
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The attack path name, for example,
* `organizations/12/simulations/34/valuedResources/56/attackPaths/78`
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List
pathNodes_ = java.util.Collections.emptyList();
private void ensurePathNodesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
pathNodes_ =
new java.util.ArrayList(
pathNodes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>
pathNodesBuilder_;
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public java.util.List
getPathNodesList() {
if (pathNodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(pathNodes_);
} else {
return pathNodesBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public int getPathNodesCount() {
if (pathNodesBuilder_ == null) {
return pathNodes_.size();
} else {
return pathNodesBuilder_.getCount();
}
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode getPathNodes(int index) {
if (pathNodesBuilder_ == null) {
return pathNodes_.get(index);
} else {
return pathNodesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder setPathNodes(
int index, com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode value) {
if (pathNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathNodesIsMutable();
pathNodes_.set(index, value);
onChanged();
} else {
pathNodesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder setPathNodes(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder builderForValue) {
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
pathNodes_.set(index, builderForValue.build());
onChanged();
} else {
pathNodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder addPathNodes(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode value) {
if (pathNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathNodesIsMutable();
pathNodes_.add(value);
onChanged();
} else {
pathNodesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder addPathNodes(
int index, com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode value) {
if (pathNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathNodesIsMutable();
pathNodes_.add(index, value);
onChanged();
} else {
pathNodesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder addPathNodes(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder builderForValue) {
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
pathNodes_.add(builderForValue.build());
onChanged();
} else {
pathNodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder addPathNodes(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder builderForValue) {
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
pathNodes_.add(index, builderForValue.build());
onChanged();
} else {
pathNodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder addAllPathNodes(
java.lang.Iterable extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode>
values) {
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathNodes_);
onChanged();
} else {
pathNodesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder clearPathNodes() {
if (pathNodesBuilder_ == null) {
pathNodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pathNodesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public Builder removePathNodes(int index) {
if (pathNodesBuilder_ == null) {
ensurePathNodesIsMutable();
pathNodes_.remove(index);
onChanged();
} else {
pathNodesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder getPathNodesBuilder(
int index) {
return getPathNodesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder
getPathNodesOrBuilder(int index) {
if (pathNodesBuilder_ == null) {
return pathNodes_.get(index);
} else {
return pathNodesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public java.util.List<
? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>
getPathNodesOrBuilderList() {
if (pathNodesBuilder_ != null) {
return pathNodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pathNodes_);
}
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder
addPathNodesBuilder() {
return getPathNodesFieldBuilder()
.addBuilder(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.getDefaultInstance());
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder addPathNodesBuilder(
int index) {
return getPathNodesFieldBuilder()
.addBuilder(
index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.getDefaultInstance());
}
/**
*
*
*
* A list of nodes that exist in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;
*
*/
public java.util.List
getPathNodesBuilderList() {
return getPathNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>
getPathNodesFieldBuilder() {
if (pathNodesBuilder_ == null) {
pathNodesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>(
pathNodes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
pathNodes_ = null;
}
return pathNodesBuilder_;
}
private java.util.List edges_ =
java.util.Collections.emptyList();
private void ensureEdgesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
edges_ =
new java.util.ArrayList(
edges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>
edgesBuilder_;
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public java.util.List
getEdgesList() {
if (edgesBuilder_ == null) {
return java.util.Collections.unmodifiableList(edges_);
} else {
return edgesBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public int getEdgesCount() {
if (edgesBuilder_ == null) {
return edges_.size();
} else {
return edgesBuilder_.getCount();
}
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge getEdges(int index) {
if (edgesBuilder_ == null) {
return edges_.get(index);
} else {
return edgesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder setEdges(
int index, com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge value) {
if (edgesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgesIsMutable();
edges_.set(index, value);
onChanged();
} else {
edgesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder setEdges(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder builderForValue) {
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
edges_.set(index, builderForValue.build());
onChanged();
} else {
edgesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder addEdges(com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge value) {
if (edgesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgesIsMutable();
edges_.add(value);
onChanged();
} else {
edgesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder addEdges(
int index, com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge value) {
if (edgesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgesIsMutable();
edges_.add(index, value);
onChanged();
} else {
edgesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder addEdges(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder builderForValue) {
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
edges_.add(builderForValue.build());
onChanged();
} else {
edgesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder addEdges(
int index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder builderForValue) {
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
edges_.add(index, builderForValue.build());
onChanged();
} else {
edgesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder addAllEdges(
java.lang.Iterable extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge>
values) {
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, edges_);
onChanged();
} else {
edgesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder clearEdges() {
if (edgesBuilder_ == null) {
edges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
edgesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public Builder removeEdges(int index) {
if (edgesBuilder_ == null) {
ensureEdgesIsMutable();
edges_.remove(index);
onChanged();
} else {
edgesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder getEdgesBuilder(
int index) {
return getEdgesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder getEdgesOrBuilder(
int index) {
if (edgesBuilder_ == null) {
return edges_.get(index);
} else {
return edgesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public java.util.List<
? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>
getEdgesOrBuilderList() {
if (edgesBuilder_ != null) {
return edgesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(edges_);
}
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder addEdgesBuilder() {
return getEdgesFieldBuilder()
.addBuilder(
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.getDefaultInstance());
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder addEdgesBuilder(
int index) {
return getEdgesFieldBuilder()
.addBuilder(
index,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.getDefaultInstance());
}
/**
*
*
*
* A list of the edges between nodes in this attack path.
*
*
* repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;
*/
public java.util.List
getEdgesBuilderList() {
return getEdgesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>
getEdgesFieldBuilder() {
if (edgesBuilder_ == null) {
edgesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge.Builder,
com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>(
edges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
edges_ = null;
}
return edgesBuilder_;
}
@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:google.cloud.securitycenter.v2.AttackPath)
}
// @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AttackPath)
private static final com.google.cloud.securitycenter.v2.AttackPath DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.AttackPath();
}
public static com.google.cloud.securitycenter.v2.AttackPath getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttackPath parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.securitycenter.v2.AttackPath getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy