Interface PolicyOrBuilder (0.13.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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
Constraint

The constraint.

getConstraintOrBuilder()

public abstract ConstraintOrBuilder getConstraintOrBuilder()

Required. Constraint details.

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

Returns
Type Description
ConstraintOrBuilder

getDescription()

public abstract String getDescription()

Optional. Description of the Policy.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. Description of the Policy.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the constraint field is set.