Send feedback
Class Policy (0.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.20.0 keyboard_arrow_down
public final class Policy extends GeneratedMessageV3 implements PolicyOrBuilder
Policy representation.
Protobuf type google.cloud.securityposture.v1.Policy
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
COMPLIANCE_STANDARDS_FIELD_NUMBER
public static final int COMPLIANCE_STANDARDS_FIELD_NUMBER
Field Value
Type
Description
int
CONSTRAINT_FIELD_NUMBER
public static final int CONSTRAINT_FIELD_NUMBER
Field Value
Type
Description
int
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type
Description
int
POLICY_ID_FIELD_NUMBER
public static final int POLICY_ID_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Policy getDefaultInstance ()
Returns
Type
Description
Policy
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Policy . Builder newBuilder ()
newBuilder(Policy prototype)
public static Policy . Builder newBuilder ( Policy prototype )
Parameter
Name
Description
prototype
Policy
parseDelimitedFrom(InputStream input)
public static Policy parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Policy
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Policy parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parseFrom(byte[] data)
public static Policy parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Policy
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parseFrom(ByteString data)
public static Policy parseFrom ( ByteString data )
Returns
Type
Description
Policy
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parseFrom(CodedInputStream input)
public static Policy parseFrom ( CodedInputStream input )
Returns
Type
Description
Policy
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parseFrom(InputStream input)
public static Policy parseFrom ( InputStream input )
Returns
Type
Description
Policy
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parseFrom(ByteBuffer data)
public static Policy parseFrom ( ByteBuffer data )
Returns
Type
Description
Policy
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Policy parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Policy
parser()
public static Parser<Policy> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getComplianceStandards(int index)
public 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
getComplianceStandardsCount()
public 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 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];
getComplianceStandardsOrBuilder(int index)
public 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
getComplianceStandardsOrBuilderList()
public 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 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 ConstraintOrBuilder getConstraintOrBuilder ()
Required. Constraint details.
.google.cloud.securityposture.v1.Constraint constraint = 3 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public Policy getDefaultInstanceForType ()
Returns
Type
Description
Policy
getDescription()
public String getDescription ()
Optional. Description of the Policy.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Optional. Description of the Policy.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for description.
getParserForType()
public Parser<Policy> getParserForType ()
Overrides
getPolicyId()
public 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 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.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasConstraint()
public 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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Policy . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Policy . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Policy . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]