Class OrgPolicyConstraintCustom (0.14.0)

public final class OrgPolicyConstraintCustom extends GeneratedMessageV3 implements OrgPolicyConstraintCustomOrBuilder

Message for Org Policy Custom Constraint.

Protobuf type google.cloud.securityposture.v1.OrgPolicyConstraintCustom

Static Fields

CUSTOM_CONSTRAINT_FIELD_NUMBER

public static final int CUSTOM_CONSTRAINT_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 OrgPolicyConstraintCustom getDefaultInstance()
Returns
Type Description
OrgPolicyConstraintCustom

getDescriptor()

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

newBuilder()

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

newBuilder(OrgPolicyConstraintCustom prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCustomConstraint()

public CustomConstraint getCustomConstraint()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConstraint

The customConstraint.

getCustomConstraintOrBuilder()

public CustomConstraintOrBuilder getCustomConstraintOrBuilder()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConstraintOrBuilder

getDefaultInstanceForType()

public OrgPolicyConstraintCustom getDefaultInstanceForType()
Returns
Type Description
OrgPolicyConstraintCustom

getParserForType()

public Parser<OrgPolicyConstraintCustom> getParserForType()
Returns
Type Description
Parser<OrgPolicyConstraintCustom>
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

hasCustomConstraint()

public boolean hasCustomConstraint()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customConstraint field is set.

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 OrgPolicyConstraintCustom.Builder newBuilderForType()
Returns
Type Description
OrgPolicyConstraintCustom.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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