Class OrgPolicyViolation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
com.google.cloud.policysimulator.v1.OrgPolicyViolation.Builder
- All Implemented Interfaces:
OrgPolicyViolationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OrgPolicyViolation
public static final class OrgPolicyViolation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
implements OrgPolicyViolationOrBuilder
OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.Protobuf type
google.cloud.policysimulator.v1.OrgPolicyViolation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The custom constraint being violated.Any error encountered during the evaluation.The name of the `OrgPolicyViolation`.The resource violating the constraint.The custom constraint being violated.The custom constraint being violated.The custom constraint being violated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()Any error encountered during the evaluation.Any error encountered during the evaluation.Any error encountered during the evaluation.getName()The name of the `OrgPolicyViolation`.com.google.protobuf.ByteStringThe name of the `OrgPolicyViolation`.The resource violating the constraint.The resource violating the constraint.The resource violating the constraint.booleanThe custom constraint being violated.booleanhasError()Any error encountered during the evaluation.booleanThe resource violating the constraint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe custom constraint being violated.mergeError(Status value) Any error encountered during the evaluation.mergeFrom(OrgPolicyViolation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResource(ResourceContext value) The resource violating the constraint.The custom constraint being violated.setCustomConstraint(CustomConstraint.Builder builderForValue) The custom constraint being violated.Any error encountered during the evaluation.setError(Status.Builder builderForValue) Any error encountered during the evaluation.The name of the `OrgPolicyViolation`.setNameBytes(com.google.protobuf.ByteString value) The name of the `OrgPolicyViolation`.setResource(ResourceContext value) The resource violating the constraint.setResource(ResourceContext.Builder builderForValue) The resource violating the constraint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrgPolicyViolation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolation.Builder>
-
mergeFrom
public OrgPolicyViolation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrgPolicyViolation.Builder>- Throws:
IOException
-
getName
The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Specified by:
getNamein interfaceOrgPolicyViolationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Specified by:
getNameBytesin interfaceOrgPolicyViolationOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasResource
public boolean hasResource()The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2;- Specified by:
hasResourcein interfaceOrgPolicyViolationOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2;- Specified by:
getResourcein interfaceOrgPolicyViolationOrBuilder- Returns:
- The resource.
-
setResource
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
setResource
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
mergeResource
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
clearResource
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
getResourceBuilder
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
getResourceOrBuilder
The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2;- Specified by:
getResourceOrBuilderin interfaceOrgPolicyViolationOrBuilder
-
hasCustomConstraint
public boolean hasCustomConstraint()The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;- Specified by:
hasCustomConstraintin interfaceOrgPolicyViolationOrBuilder- Returns:
- Whether the customConstraint field is set.
-
getCustomConstraint
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;- Specified by:
getCustomConstraintin interfaceOrgPolicyViolationOrBuilder- Returns:
- The customConstraint.
-
setCustomConstraint
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
setCustomConstraint
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
mergeCustomConstraint
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
clearCustomConstraint
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
getCustomConstraintBuilder
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
getCustomConstraintOrBuilder
The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;- Specified by:
getCustomConstraintOrBuilderin interfaceOrgPolicyViolationOrBuilder
-
hasError
public boolean hasError()Any error encountered during the evaluation.
.google.rpc.Status error = 4;- Specified by:
hasErrorin interfaceOrgPolicyViolationOrBuilder- Returns:
- Whether the error field is set.
-
getError
Any error encountered during the evaluation.
.google.rpc.Status error = 4;- Specified by:
getErrorin interfaceOrgPolicyViolationOrBuilder- Returns:
- The error.
-
setError
Any error encountered during the evaluation.
.google.rpc.Status error = 4; -
setError
Any error encountered during the evaluation.
.google.rpc.Status error = 4; -
mergeError
Any error encountered during the evaluation.
.google.rpc.Status error = 4; -
clearError
Any error encountered during the evaluation.
.google.rpc.Status error = 4; -
getErrorBuilder
Any error encountered during the evaluation.
.google.rpc.Status error = 4; -
getErrorOrBuilder
Any error encountered during the evaluation.
.google.rpc.Status error = 4;- Specified by:
getErrorOrBuilderin interfaceOrgPolicyViolationOrBuilder
-