Class OrgPolicyConstraint (0.6.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
TypeDescription
int

POLICY_RULES_FIELD_NUMBER

public static final int POLICY_RULES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OrgPolicyConstraint getDefaultInstance()
Returns
TypeDescription
OrgPolicyConstraint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OrgPolicyConstraint.Builder newBuilder()
Returns
TypeDescription
OrgPolicyConstraint.Builder

newBuilder(OrgPolicyConstraint prototype)

public static OrgPolicyConstraint.Builder newBuilder(OrgPolicyConstraint prototype)
Parameter
NameDescription
prototypeOrgPolicyConstraint
Returns
TypeDescription
OrgPolicyConstraint.Builder

parseDelimitedFrom(InputStream input)

public static OrgPolicyConstraint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OrgPolicyConstraint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrgPolicyConstraint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrgPolicyConstraint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OrgPolicyConstraint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OrgPolicyConstraint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyConstraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OrgPolicyConstraint> parser()
Returns
TypeDescription
Parser<OrgPolicyConstraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCannedConstraintId()

public String getCannedConstraintId()

Required. Org Policy Canned Constraint id.

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

Returns
TypeDescription
String

The cannedConstraintId.

getCannedConstraintIdBytes()

public ByteString getCannedConstraintIdBytes()

Required. Org Policy Canned Constraint id.

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

Returns
TypeDescription
ByteString

The bytes for cannedConstraintId.

getDefaultInstanceForType()

public OrgPolicyConstraint getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicyConstraint

getParserForType()

public Parser<OrgPolicyConstraint> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PolicyRule

getPolicyRulesCount()

public int getPolicyRulesCount()

Required. Org PolicySpec rules.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.securityposture.v1.PolicyRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OrgPolicyConstraint.Builder newBuilderForType()
Returns
TypeDescription
OrgPolicyConstraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrgPolicyConstraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OrgPolicyConstraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OrgPolicyConstraint.Builder toBuilder()
Returns
TypeDescription
OrgPolicyConstraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException