public static final class PolicyViolation.Builder extends GeneratedMessageV3.Builder<PolicyViolation.Builder> implements PolicyViolationOrBuilder
Returned from an action if one or more policies were
violated, and therefore the action was prevented. Contains information about
what policies were violated and why.
Protobuf type google.cloud.deploy.v1.PolicyViolation
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
addAllPolicyViolationDetails(Iterable<? extends PolicyViolationDetails> values)
public PolicyViolation.Builder addAllPolicyViolationDetails(Iterable<? extends PolicyViolationDetails> values)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.deploy.v1.PolicyViolationDetails>
|
addPolicyViolationDetails(PolicyViolationDetails value)
public PolicyViolation.Builder addPolicyViolationDetails(PolicyViolationDetails value)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
addPolicyViolationDetails(PolicyViolationDetails.Builder builderForValue)
public PolicyViolation.Builder addPolicyViolationDetails(PolicyViolationDetails.Builder builderForValue)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
addPolicyViolationDetails(int index, PolicyViolationDetails value)
public PolicyViolation.Builder addPolicyViolationDetails(int index, PolicyViolationDetails value)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
addPolicyViolationDetails(int index, PolicyViolationDetails.Builder builderForValue)
public PolicyViolation.Builder addPolicyViolationDetails(int index, PolicyViolationDetails.Builder builderForValue)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
addPolicyViolationDetailsBuilder()
public PolicyViolationDetails.Builder addPolicyViolationDetailsBuilder()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
addPolicyViolationDetailsBuilder(int index)
public PolicyViolationDetails.Builder addPolicyViolationDetailsBuilder(int index)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyViolation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PolicyViolation build()
buildPartial()
public PolicyViolation buildPartial()
clear()
public PolicyViolation.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PolicyViolation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyViolation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPolicyViolationDetails()
public PolicyViolation.Builder clearPolicyViolationDetails()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
clone()
public PolicyViolation.Builder clone()
Overrides
getDefaultInstanceForType()
public PolicyViolation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPolicyViolationDetails(int index)
public PolicyViolationDetails getPolicyViolationDetails(int index)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
index |
int
|
getPolicyViolationDetailsBuilder(int index)
public PolicyViolationDetails.Builder getPolicyViolationDetailsBuilder(int index)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
index |
int
|
getPolicyViolationDetailsBuilderList()
public List<PolicyViolationDetails.Builder> getPolicyViolationDetailsBuilderList()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
getPolicyViolationDetailsCount()
public int getPolicyViolationDetailsCount()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Returns |
Type |
Description |
int |
|
getPolicyViolationDetailsList()
public List<PolicyViolationDetails> getPolicyViolationDetailsList()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
getPolicyViolationDetailsOrBuilder(int index)
public PolicyViolationDetailsOrBuilder getPolicyViolationDetailsOrBuilder(int index)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
index |
int
|
getPolicyViolationDetailsOrBuilderList()
public List<? extends PolicyViolationDetailsOrBuilder> getPolicyViolationDetailsOrBuilderList()
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.deploy.v1.PolicyViolationDetailsOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PolicyViolation other)
public PolicyViolation.Builder mergeFrom(PolicyViolation other)
public PolicyViolation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PolicyViolation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyViolation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removePolicyViolationDetails(int index)
public PolicyViolation.Builder removePolicyViolationDetails(int index)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyViolation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPolicyViolationDetails(int index, PolicyViolationDetails value)
public PolicyViolation.Builder setPolicyViolationDetails(int index, PolicyViolationDetails value)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
setPolicyViolationDetails(int index, PolicyViolationDetails.Builder builderForValue)
public PolicyViolation.Builder setPolicyViolationDetails(int index, PolicyViolationDetails.Builder builderForValue)
Policy violation details.
repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyViolation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyViolation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides