Class OrgPolicyConstraint (0.10.0)

public final class OrgPolicyConstraint extends GeneratedMessageV3 implements OrgPolicyConstraintOrBuilder

Message for Org Policy Canned Constraint.

Protobuf type google.cloud.securityposture.v1.OrgPolicyConstraint

Static Fields

CANNED_CONSTRAINT_ID_FIELD_NUMBER

public static final int CANNED_CONSTRAINT_ID_FIELD_NUMBER
Field Value
Type Description
int

POLICY_RULES_FIELD_NUMBER

public static final int POLICY_RULES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrgPolicyConstraint getDefaultInstance()
Returns
Type Description
OrgPolicyConstraint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OrgPolicyConstraint.Builder newBuilder()
Returns
Type Description
OrgPolicyConstraint.Builder

newBuilder(OrgPolicyConstraint prototype)

public static OrgPolicyConstraint.Builder newBuilder(OrgPolicyConstraint prototype)
Parameter
Name Description
prototype OrgPolicyConstraint
Returns
Type Description
OrgPolicyConstraint.Builder

parseDelimitedFrom(InputStream input)

public static OrgPolicyConstraint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OrgPolicyConstraint parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrgPolicyConstraint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrgPolicyConstraint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OrgPolicyConstraint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OrgPolicyConstraint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OrgPolicyConstraint> parser()
Returns
Type Description
Parser<OrgPolicyConstraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCannedConstraintId()

public String getCannedConstraintId()

Required. Org Policy Canned Constraint id.

string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cannedConstraintId.

getCannedConstraintIdBytes()

public ByteString getCannedConstraintIdBytes()

Required. Org Policy Canned Constraint id.

string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cannedConstraintId.

getDefaultInstanceForType()

public OrgPolicyConstraint getDefaultInstanceForType()
Returns
Type Description
OrgPolicyConstraint

getParserForType()

public Parser<OrgPolicyConstraint> getParserForType()
Returns
Type Description
Parser<OrgPolicyConstraint>
Overrides

getPolicyRules(int index)

public PolicyRule getPolicyRules(int index)

Required. Org PolicySpec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRule

getPolicyRulesCount()

public int getPolicyRulesCount()

Required. Org PolicySpec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPolicyRulesList()

public List<PolicyRule> getPolicyRulesList()

Required. Org PolicySpec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<PolicyRule>

getPolicyRulesOrBuilder(int index)

public PolicyRuleOrBuilder getPolicyRulesOrBuilder(int index)

Required. Org PolicySpec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRuleOrBuilder

getPolicyRulesOrBuilderList()

public List<? extends PolicyRuleOrBuilder> getPolicyRulesOrBuilderList()

Required. Org PolicySpec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.securityposture.v1.PolicyRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrgPolicyConstraint.Builder newBuilderForType()
Returns
Type Description
OrgPolicyConstraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrgPolicyConstraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrgPolicyConstraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OrgPolicyConstraint.Builder toBuilder()
Returns
Type Description
OrgPolicyConstraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException