public static final class OrgPolicyConstraintCustom.Builder extends GeneratedMessageV3.Builder<OrgPolicyConstraintCustom.Builder> implements OrgPolicyConstraintCustomOrBuilder
Message for Org Policy Custom Constraint.
Protobuf type google.cloud.securityposture.v1.OrgPolicyConstraintCustom
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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OrgPolicyConstraintCustom build()
buildPartial()
public OrgPolicyConstraintCustom buildPartial()
clear()
public OrgPolicyConstraintCustom.Builder clear()
Overrides
clearCustomConstraint()
public OrgPolicyConstraintCustom.Builder clearCustomConstraint()
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public OrgPolicyConstraintCustom.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OrgPolicyConstraintCustom.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPolicyRules()
public OrgPolicyConstraintCustom.Builder clearPolicyRules()
Required. Org Policyspec rules.
repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public OrgPolicyConstraintCustom.Builder clone()
Overrides
getCustomConstraint()
public CustomConstraint getCustomConstraint()
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getCustomConstraintBuilder()
public CustomConstraint.Builder getCustomConstraintBuilder()
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getCustomConstraintOrBuilder()
public CustomConstraintOrBuilder getCustomConstraintOrBuilder()
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public OrgPolicyConstraintCustom 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> | |
hasCustomConstraint()
public boolean hasCustomConstraint()
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the customConstraint field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCustomConstraint(CustomConstraint value)
public OrgPolicyConstraintCustom.Builder mergeCustomConstraint(CustomConstraint value)
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(OrgPolicyConstraintCustom other)
public OrgPolicyConstraintCustom.Builder mergeFrom(OrgPolicyConstraintCustom other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OrgPolicyConstraintCustom.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OrgPolicyConstraintCustom.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyConstraintCustom.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removePolicyRules(int index)
public OrgPolicyConstraintCustom.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
|
setCustomConstraint(CustomConstraint value)
public OrgPolicyConstraintCustom.Builder setCustomConstraint(CustomConstraint value)
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
setCustomConstraint(CustomConstraint.Builder builderForValue)
public OrgPolicyConstraintCustom.Builder setCustomConstraint(CustomConstraint.Builder builderForValue)
Required. Org Policy Custom Constraint.
.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyConstraintCustom.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPolicyRules(int index, PolicyRule value)
public OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.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 OrgPolicyConstraintCustom.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyConstraintCustom.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides