public final class OrgPolicyViolationsPreview extends GeneratedMessageV3 implements OrgPolicyViolationsPreviewOrBuilder
   
   OrgPolicyViolationsPreview is a resource providing a preview of the
 violations that will exist if an OrgPolicy change is made.
 The list of violations are modeled as child resources and retrieved via a
 [ListOrgPolicyViolations][] API call. There are potentially more
 [OrgPolicyViolations][] than could fit in an embedded field. Thus, the use of
 a child resource instead of a field.
 Protobuf type google.cloud.policysimulator.v1.OrgPolicyViolationsPreview
    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
  
  CREATE_TIME_FIELD_NUMBER
  
    public static final int CREATE_TIME_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  CUSTOM_CONSTRAINTS_FIELD_NUMBER
  
    public static final int CUSTOM_CONSTRAINTS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  NAME_FIELD_NUMBER
  
    public static final int NAME_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  OVERLAY_FIELD_NUMBER
  
    public static final int OVERLAY_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  RESOURCE_COUNTS_FIELD_NUMBER
  
    public static final int RESOURCE_COUNTS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  STATE_FIELD_NUMBER
  
    public static final int STATE_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  VIOLATIONS_COUNT_FIELD_NUMBER
  
    public static final int VIOLATIONS_COUNT_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static OrgPolicyViolationsPreview getDefaultInstance()
   
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  
  newBuilder()
  
    public static OrgPolicyViolationsPreview.Builder newBuilder()
   
  
  
  newBuilder(OrgPolicyViolationsPreview prototype)
  
    public static OrgPolicyViolationsPreview.Builder newBuilder(OrgPolicyViolationsPreview prototype)
   
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseDelimitedFrom(InputStream input)
   
  
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(byte[] data)
  
    public static OrgPolicyViolationsPreview parseFrom(byte[] data)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | data | byte[]
 | 
    
  
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static OrgPolicyViolationsPreview parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteString data)
  
    public static OrgPolicyViolationsPreview parseFrom(ByteString data)
   
  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static OrgPolicyViolationsPreview parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseFrom(CodedInputStream input)
   
  
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseFrom(InputStream input)
   
  
  
  
  
  
  
    public static OrgPolicyViolationsPreview parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteBuffer data)
  
    public static OrgPolicyViolationsPreview parseFrom(ByteBuffer data)
   
  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static OrgPolicyViolationsPreview parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parser()
  
    public static Parser<OrgPolicyViolationsPreview> parser()
   
  
  Methods
  
  
  equals(Object obj)
  
    public boolean equals(Object obj)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | obj | Object
 | 
    
  
  
  Overrides
  
  
  getCreateTime()
  
    public Timestamp getCreateTime()
   
   Output only. Time when this OrgPolicyViolationsPreview was created.
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Timestamp | The createTime. | 
    
  
  
  getCreateTimeOrBuilder()
  
    public TimestampOrBuilder getCreateTimeOrBuilder()
   
   Output only. Time when this OrgPolicyViolationsPreview was created.
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getCustomConstraints(int index)
  
    public String getCustomConstraints(int index)
   
   Output only. The names of the constraints against which all
 OrgPolicyViolations were evaluated.
 If OrgPolicyOverlay only contains PolicyOverlay then it contains
 the name of the configured custom constraint, applicable to the specified
 policies. Otherwise it contains the name of the constraint specified in
 CustomConstraintOverlay.
 Format:
 organizations/{organization_id}/customConstraints/{custom_constraint_id}
 Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms
 
 repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 The index of the element to return. | 
    
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String | The customConstraints at the given index. | 
    
  
  
  getCustomConstraintsBytes(int index)
  
    public ByteString getCustomConstraintsBytes(int index)
   
   Output only. The names of the constraints against which all
 OrgPolicyViolations were evaluated.
 If OrgPolicyOverlay only contains PolicyOverlay then it contains
 the name of the configured custom constraint, applicable to the specified
 policies. Otherwise it contains the name of the constraint specified in
 CustomConstraintOverlay.
 Format:
 organizations/{organization_id}/customConstraints/{custom_constraint_id}
 Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms
 
 repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
 
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | index | int
 The index of the value to return. | 
    
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | ByteString | The bytes of the customConstraints at the given index. | 
    
  
  
  getCustomConstraintsCount()
  
    public int getCustomConstraintsCount()
   
   Output only. The names of the constraints against which all
 OrgPolicyViolations were evaluated.
 If OrgPolicyOverlay only contains PolicyOverlay then it contains
 the name of the configured custom constraint, applicable to the specified
 policies. Otherwise it contains the name of the constraint specified in
 CustomConstraintOverlay.
 Format:
 organizations/{organization_id}/customConstraints/{custom_constraint_id}
 Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms
 
 repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int | The count of customConstraints. | 
    
  
  
  getCustomConstraintsList()
  
    public ProtocolStringList getCustomConstraintsList()
   
   Output only. The names of the constraints against which all
 OrgPolicyViolations were evaluated.
 If OrgPolicyOverlay only contains PolicyOverlay then it contains
 the name of the configured custom constraint, applicable to the specified
 policies. Otherwise it contains the name of the constraint specified in
 CustomConstraintOverlay.
 Format:
 organizations/{organization_id}/customConstraints/{custom_constraint_id}
 Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms
 
 repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
 
getDefaultInstanceForType()
  
    public OrgPolicyViolationsPreview getDefaultInstanceForType()
   
  
  
  getName()
  
   Output only. The resource name of the OrgPolicyViolationsPreview. It has
 the following format:
 organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
 Example:
 organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f
 string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String | The name. | 
    
  
  
  getNameBytes()
  
    public ByteString getNameBytes()
   
   Output only. The resource name of the OrgPolicyViolationsPreview. It has
 the following format:
 organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
 Example:
 organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f
 string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        | Returns | 
      
        | Type | Description | 
      
        | ByteString | The bytes for name. | 
    
  
  
  getOverlay()
  
    public OrgPolicyOverlay getOverlay()
   
   Required. The proposed changes we are previewing violations for.
 
 .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
 
getOverlayOrBuilder()
  
    public OrgPolicyOverlayOrBuilder getOverlayOrBuilder()
   
   Required. The proposed changes we are previewing violations for.
 
 .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
 
getParserForType()
  
    public Parser<OrgPolicyViolationsPreview> getParserForType()
   
  
  Overrides
  
  
  getResourceCounts()
  
    public OrgPolicyViolationsPreview.ResourceCounts getResourceCounts()
   
   Output only. A summary of the state of all resources scanned for compliance
 with the changed OrgPolicy.
 
 .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getResourceCountsOrBuilder()
  
    public OrgPolicyViolationsPreview.ResourceCountsOrBuilder getResourceCountsOrBuilder()
   
   Output only. A summary of the state of all resources scanned for compliance
 with the changed OrgPolicy.
 
 .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getSerializedSize()
  
    public int getSerializedSize()
   
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  getState()
  
    public PreviewState getState()
   
   Output only. The state of the OrgPolicyViolationsPreview.
 
 .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getStateValue()
  
    public int getStateValue()
   
   Output only. The state of the OrgPolicyViolationsPreview.
 
 .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int | The enum numeric value on the wire for state. | 
    
  
  
  getViolationsCount()
  
    public int getViolationsCount()
   
   Output only. The number of [OrgPolicyViolations][] in this
 OrgPolicyViolationsPreview. This count may differ from
 resource_summary.noncompliant_count because each
 OrgPolicyViolation is
 specific to a resource and constraint. If there are multiple
 constraints being evaluated (i.e. multiple policies in the overlay), a
 single resource may violate multiple constraints.
 int32 violations_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int | The violationsCount. | 
    
  
  
  hasCreateTime()
  
    public boolean hasCreateTime()
   
   Output only. Time when this OrgPolicyViolationsPreview was created.
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the createTime field is set. | 
    
  
  
  hasOverlay()
  
    public boolean hasOverlay()
   
   Required. The proposed changes we are previewing violations for.
 
 .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the overlay field is set. | 
    
  
  
  hasResourceCounts()
  
    public boolean hasResourceCounts()
   
   Output only. A summary of the state of all resources scanned for compliance
 with the changed OrgPolicy.
 
 .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the resourceCounts field is set. | 
    
  
  
  hashCode()
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  newBuilderForType()
  
    public OrgPolicyViolationsPreview.Builder newBuilderForType()
   
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected OrgPolicyViolationsPreview.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Object |  | 
    
  
  Overrides
  
  
  toBuilder()
  
    public OrgPolicyViolationsPreview.Builder toBuilder()
   
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  
  Overrides