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

POLICY_RULES_FIELD_NUMBER

public static final int POLICY_RULES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OrgPolicyConstraintCustom getDefaultInstance()
Returns
TypeDescription
OrgPolicyConstraintCustom

getDescriptor()

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

newBuilder()

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

newBuilder(OrgPolicyConstraintCustom prototype)

public static OrgPolicyConstraintCustom.Builder newBuilder(OrgPolicyConstraintCustom prototype)
Parameter
NameDescription
prototypeOrgPolicyConstraintCustom
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CustomConstraintOrBuilder

getDefaultInstanceForType()

public OrgPolicyConstraintCustom getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicyConstraintCustom

getParserForType()

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

hasCustomConstraint()

public boolean hasCustomConstraint()

Required. Org Policy Custom Constraint.

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

Returns
TypeDescription
boolean

Whether the customConstraint field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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