Interface PolicyOrBuilder (0.2.0)

public interface PolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getComplianceStandards(int index)

public abstract Policy.ComplianceStandard getComplianceStandards(int index)

Optional. Contains list of mapping for a Policy to a standard and control.

repeated .google.cloud.securityposture.v1.Policy.ComplianceStandard compliance_standards = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Policy.ComplianceStandard

getComplianceStandardsCount()

public abstract int getComplianceStandardsCount()

Optional. Contains list of mapping for a Policy to a standard and control.

repeated .google.cloud.securityposture.v1.Policy.ComplianceStandard compliance_standards = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getComplianceStandardsList()

public abstract List<Policy.ComplianceStandard> getComplianceStandardsList()

Optional. Contains list of mapping for a Policy to a standard and control.

repeated .google.cloud.securityposture.v1.Policy.ComplianceStandard compliance_standards = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ComplianceStandard>

getComplianceStandardsOrBuilder(int index)

public abstract Policy.ComplianceStandardOrBuilder getComplianceStandardsOrBuilder(int index)

Optional. Contains list of mapping for a Policy to a standard and control.

repeated .google.cloud.securityposture.v1.Policy.ComplianceStandard compliance_standards = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Policy.ComplianceStandardOrBuilder

getComplianceStandardsOrBuilderList()

public abstract List<? extends Policy.ComplianceStandardOrBuilder> getComplianceStandardsOrBuilderList()

Optional. Contains list of mapping for a Policy to a standard and control.

repeated .google.cloud.securityposture.v1.Policy.ComplianceStandard compliance_standards = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.securityposture.v1.Policy.ComplianceStandardOrBuilder>

getConstraint()

public abstract Constraint getConstraint()

Required. Constraint details.

.google.cloud.securityposture.v1.Constraint constraint = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Constraint

The constraint.

getConstraintOrBuilder()

public abstract ConstraintOrBuilder getConstraintOrBuilder()

Required. Constraint details.

.google.cloud.securityposture.v1.Constraint constraint = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConstraintOrBuilder

getDescription()

public abstract String getDescription()

Optional. Description of the Policy.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. Description of the Policy.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getPolicyId()

public abstract String getPolicyId()

Required. ID of the Policy that is user generated, immutable and unique within the scope of a policy set.

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

Returns
TypeDescription
String

The policyId.

getPolicyIdBytes()

public abstract ByteString getPolicyIdBytes()

Required. ID of the Policy that is user generated, immutable and unique within the scope of a policy set.

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

Returns
TypeDescription
ByteString

The bytes for policyId.

hasConstraint()

public abstract boolean hasConstraint()

Required. Constraint details.

.google.cloud.securityposture.v1.Constraint constraint = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the constraint field is set.