public static final class OrgPolicyConstraint.Builder extends GeneratedMessageV3.Builder<OrgPolicyConstraint.Builder> implements OrgPolicyConstraintOrBuilder
Message for Org Policy Canned Constraint.
Protobuf type google.cloud.securityposture.v1.OrgPolicyConstraint
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllPolicyRules(Iterable<? extends PolicyRule> values)
public OrgPolicyConstraint.Builder addAllPolicyRules(Iterable<? extends PolicyRule> values)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.securityposture.v1.PolicyRule>
|
addPolicyRules(PolicyRule value)
public OrgPolicyConstraint.Builder addPolicyRules(PolicyRule value)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
addPolicyRules(PolicyRule.Builder builderForValue)
public OrgPolicyConstraint.Builder addPolicyRules(PolicyRule.Builder builderForValue)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
addPolicyRules(int index, PolicyRule value)
public OrgPolicyConstraint.Builder addPolicyRules(int index, PolicyRule value)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
addPolicyRules(int index, PolicyRule.Builder builderForValue)
public OrgPolicyConstraint.Builder addPolicyRules(int index, PolicyRule.Builder builderForValue)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
addPolicyRulesBuilder()
public PolicyRule.Builder addPolicyRulesBuilder()
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
addPolicyRulesBuilder(int index)
public PolicyRule.Builder addPolicyRulesBuilder(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OrgPolicyConstraint build()
buildPartial()
public OrgPolicyConstraint buildPartial()
clear()
public OrgPolicyConstraint.Builder clear()
Overrides
clearCannedConstraintId()
public OrgPolicyConstraint.Builder clearCannedConstraintId()
Required. Org Policy Canned Constraint id.
string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public OrgPolicyConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OrgPolicyConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPolicyRules()
public OrgPolicyConstraint.Builder clearPolicyRules()
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public OrgPolicyConstraint.Builder clone()
Overrides
getCannedConstraintId()
public String getCannedConstraintId()
Required. Org Policy Canned Constraint id.
string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The cannedConstraintId.
|
getCannedConstraintIdBytes()
public ByteString getCannedConstraintIdBytes()
Required. Org Policy Canned Constraint id.
string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for cannedConstraintId.
|
getDefaultInstanceForType()
public OrgPolicyConstraint getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
getPolicyRulesBuilder(int index)
public PolicyRule.Builder getPolicyRulesBuilder(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
|
getPolicyRulesBuilderList()
public List<PolicyRule.Builder> getPolicyRulesBuilderList()
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
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];
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
|
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> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OrgPolicyConstraint other)
public OrgPolicyConstraint.Builder mergeFrom(OrgPolicyConstraint other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OrgPolicyConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OrgPolicyConstraint.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removePolicyRules(int index)
public OrgPolicyConstraint.Builder removePolicyRules(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
|
setCannedConstraintId(String value)
public OrgPolicyConstraint.Builder setCannedConstraintId(String value)
Required. Org Policy Canned Constraint id.
string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The cannedConstraintId to set.
|
setCannedConstraintIdBytes(ByteString value)
public OrgPolicyConstraint.Builder setCannedConstraintIdBytes(ByteString value)
Required. Org Policy Canned Constraint id.
string canned_constraint_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for cannedConstraintId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPolicyRules(int index, PolicyRule value)
public OrgPolicyConstraint.Builder setPolicyRules(int index, PolicyRule value)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
setPolicyRules(int index, PolicyRule.Builder builderForValue)
public OrgPolicyConstraint.Builder setPolicyRules(int index, PolicyRule.Builder builderForValue)
Required. Org PolicySpec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OrgPolicyConstraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides