Class Violation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
com.google.cloud.assuredworkloads.v1.Violation.Builder
All Implemented Interfaces:
ViolationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Violation

public static final class Violation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Violation.Builder> implements ViolationOrBuilder
 Workload monitoring Violation.
 
Protobuf type google.cloud.assuredworkloads.v1.Violation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • clear

      public Violation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • getDefaultInstanceForType

      public Violation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Violation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Violation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Violation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violation.Builder>
    • mergeFrom

      public Violation.Builder mergeFrom(Violation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • mergeFrom

      public Violation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violation.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Immutable. Name of the Violation.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface ViolationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Immutable. Name of the Violation.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface ViolationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Violation.Builder setName(String value)
       Output only. Immutable. Name of the Violation.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Violation.Builder clearName()
       Output only. Immutable. Name of the Violation.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Violation.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Name of the Violation.
       Format:
       organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. Description for the Violation.
       e.g. OrgPolicy gcp.resourceLocations has non compliant value.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface ViolationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. Description for the Violation.
       e.g. OrgPolicy gcp.resourceLocations has non compliant value.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface ViolationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Violation.Builder setDescription(String value)
       Output only. Description for the Violation.
       e.g. OrgPolicy gcp.resourceLocations has non compliant value.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Violation.Builder clearDescription()
       Output only. Description for the Violation.
       e.g. OrgPolicy gcp.resourceLocations has non compliant value.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Violation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. Description for the Violation.
       e.g. OrgPolicy gcp.resourceLocations has non compliant value.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasBeginTime

      public boolean hasBeginTime()
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasBeginTime in interface ViolationOrBuilder
      Returns:
      Whether the beginTime field is set.
    • getBeginTime

      public com.google.protobuf.Timestamp getBeginTime()
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBeginTime in interface ViolationOrBuilder
      Returns:
      The beginTime.
    • setBeginTime

      public Violation.Builder setBeginTime(com.google.protobuf.Timestamp value)
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setBeginTime

      public Violation.Builder setBeginTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeBeginTime

      public Violation.Builder mergeBeginTime(com.google.protobuf.Timestamp value)
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearBeginTime

      public Violation.Builder clearBeginTime()
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBeginTimeBuilder

      public com.google.protobuf.Timestamp.Builder getBeginTimeBuilder()
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBeginTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getBeginTimeOrBuilder()
       Output only. Time of the event which triggered the Violation.
       
      .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBeginTimeOrBuilder in interface ViolationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ViolationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ViolationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Violation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Violation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Violation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Violation.Builder clearUpdateTime()
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last time when the Violation record was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ViolationOrBuilder
    • hasResolveTime

      public boolean hasResolveTime()
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasResolveTime in interface ViolationOrBuilder
      Returns:
      Whether the resolveTime field is set.
    • getResolveTime

      public com.google.protobuf.Timestamp getResolveTime()
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolveTime in interface ViolationOrBuilder
      Returns:
      The resolveTime.
    • setResolveTime

      public Violation.Builder setResolveTime(com.google.protobuf.Timestamp value)
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setResolveTime

      public Violation.Builder setResolveTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeResolveTime

      public Violation.Builder mergeResolveTime(com.google.protobuf.Timestamp value)
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearResolveTime

      public Violation.Builder clearResolveTime()
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResolveTimeBuilder

      public com.google.protobuf.Timestamp.Builder getResolveTimeBuilder()
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResolveTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getResolveTimeOrBuilder()
       Output only. Time of the event which fixed the Violation.
       If the violation is ACTIVE this will be empty.
       
      .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolveTimeOrBuilder in interface ViolationOrBuilder
    • getCategory

      public String getCategory()
       Output only. Category under which this violation is mapped.
       e.g. Location, Service Usage, Access, Encryption, etc.
       
      string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategory in interface ViolationOrBuilder
      Returns:
      The category.
    • getCategoryBytes

      public com.google.protobuf.ByteString getCategoryBytes()
       Output only. Category under which this violation is mapped.
       e.g. Location, Service Usage, Access, Encryption, etc.
       
      string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategoryBytes in interface ViolationOrBuilder
      Returns:
      The bytes for category.
    • setCategory

      public Violation.Builder setCategory(String value)
       Output only. Category under which this violation is mapped.
       e.g. Location, Service Usage, Access, Encryption, etc.
       
      string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public Violation.Builder clearCategory()
       Output only. Category under which this violation is mapped.
       e.g. Location, Service Usage, Access, Encryption, etc.
       
      string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCategoryBytes

      public Violation.Builder setCategoryBytes(com.google.protobuf.ByteString value)
       Output only. Category under which this violation is mapped.
       e.g. Location, Service Usage, Access, Encryption, etc.
       
      string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for category to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the violation
       
      .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ViolationOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Violation.Builder setStateValue(int value)
       Output only. State of the violation
       
      .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Violation.State getState()
       Output only. State of the violation
       
      .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ViolationOrBuilder
      Returns:
      The state.
    • setState

      public Violation.Builder setState(Violation.State value)
       Output only. State of the violation
       
      .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Violation.Builder clearState()
       Output only. State of the violation
       
      .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getOrgPolicyConstraint

      public String getOrgPolicyConstraint()
       Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
       this violation.
       
      string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getOrgPolicyConstraint in interface ViolationOrBuilder
      Returns:
      The orgPolicyConstraint.
    • getOrgPolicyConstraintBytes

      public com.google.protobuf.ByteString getOrgPolicyConstraintBytes()
       Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
       this violation.
       
      string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getOrgPolicyConstraintBytes in interface ViolationOrBuilder
      Returns:
      The bytes for orgPolicyConstraint.
    • setOrgPolicyConstraint

      public Violation.Builder setOrgPolicyConstraint(String value)
       Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
       this violation.
       
      string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The orgPolicyConstraint to set.
      Returns:
      This builder for chaining.
    • clearOrgPolicyConstraint

      public Violation.Builder clearOrgPolicyConstraint()
       Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
       this violation.
       
      string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setOrgPolicyConstraintBytes

      public Violation.Builder setOrgPolicyConstraintBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
       this violation.
       
      string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for orgPolicyConstraint to set.
      Returns:
      This builder for chaining.
    • getAuditLogLink

      public String getAuditLogLink()
       Output only. Immutable. Audit Log Link for violated resource
       Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
       
      string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAuditLogLink in interface ViolationOrBuilder
      Returns:
      The auditLogLink.
    • getAuditLogLinkBytes

      public com.google.protobuf.ByteString getAuditLogLinkBytes()
       Output only. Immutable. Audit Log Link for violated resource
       Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
       
      string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAuditLogLinkBytes in interface ViolationOrBuilder
      Returns:
      The bytes for auditLogLink.
    • setAuditLogLink

      public Violation.Builder setAuditLogLink(String value)
       Output only. Immutable. Audit Log Link for violated resource
       Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
       
      string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The auditLogLink to set.
      Returns:
      This builder for chaining.
    • clearAuditLogLink

      public Violation.Builder clearAuditLogLink()
       Output only. Immutable. Audit Log Link for violated resource
       Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
       
      string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setAuditLogLinkBytes

      public Violation.Builder setAuditLogLinkBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Audit Log Link for violated resource
       Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
       
      string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for auditLogLink to set.
      Returns:
      This builder for chaining.
    • getNonCompliantOrgPolicy

      public String getNonCompliantOrgPolicy()
       Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
       resulted this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNonCompliantOrgPolicy in interface ViolationOrBuilder
      Returns:
      The nonCompliantOrgPolicy.
    • getNonCompliantOrgPolicyBytes

      public com.google.protobuf.ByteString getNonCompliantOrgPolicyBytes()
       Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
       resulted this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNonCompliantOrgPolicyBytes in interface ViolationOrBuilder
      Returns:
      The bytes for nonCompliantOrgPolicy.
    • setNonCompliantOrgPolicy

      public Violation.Builder setNonCompliantOrgPolicy(String value)
       Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
       resulted this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The nonCompliantOrgPolicy to set.
      Returns:
      This builder for chaining.
    • clearNonCompliantOrgPolicy

      public Violation.Builder clearNonCompliantOrgPolicy()
       Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
       resulted this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNonCompliantOrgPolicyBytes

      public Violation.Builder setNonCompliantOrgPolicyBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
       resulted this violation.
       Format:
       projects/{project_number}/policies/{constraint_name}
       folders/{folder_id}/policies/{constraint_name}
       organizations/{organization_id}/policies/{constraint_name}
       
      string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for nonCompliantOrgPolicy to set.
      Returns:
      This builder for chaining.
    • hasRemediation

      public boolean hasRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRemediation in interface ViolationOrBuilder
      Returns:
      Whether the remediation field is set.
    • getRemediation

      public Violation.Remediation getRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRemediation in interface ViolationOrBuilder
      Returns:
      The remediation.
    • setRemediation

      public Violation.Builder setRemediation(Violation.Remediation value)
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setRemediation

      public Violation.Builder setRemediation(Violation.Remediation.Builder builderForValue)
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeRemediation

      public Violation.Builder mergeRemediation(Violation.Remediation value)
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRemediation

      public Violation.Builder clearRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRemediationBuilder

      public Violation.Remediation.Builder getRemediationBuilder()
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRemediationOrBuilder

      public Violation.RemediationOrBuilder getRemediationOrBuilder()
       Output only. Compliance violation remediation
       
      .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRemediationOrBuilder in interface ViolationOrBuilder
    • getAcknowledged

      public boolean getAcknowledged()
       Output only. A boolean that indicates if the violation is acknowledged
       
      bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAcknowledged in interface ViolationOrBuilder
      Returns:
      The acknowledged.
    • setAcknowledged

      public Violation.Builder setAcknowledged(boolean value)
       Output only. A boolean that indicates if the violation is acknowledged
       
      bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The acknowledged to set.
      Returns:
      This builder for chaining.
    • clearAcknowledged

      public Violation.Builder clearAcknowledged()
       Output only. A boolean that indicates if the violation is acknowledged
       
      bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasAcknowledgementTime

      public boolean hasAcknowledgementTime()
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAcknowledgementTime in interface ViolationOrBuilder
      Returns:
      Whether the acknowledgementTime field is set.
    • getAcknowledgementTime

      public com.google.protobuf.Timestamp getAcknowledgementTime()
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAcknowledgementTime in interface ViolationOrBuilder
      Returns:
      The acknowledgementTime.
    • setAcknowledgementTime

      public Violation.Builder setAcknowledgementTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
    • setAcknowledgementTime

      public Violation.Builder setAcknowledgementTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAcknowledgementTime

      public Violation.Builder mergeAcknowledgementTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
    • clearAcknowledgementTime

      public Violation.Builder clearAcknowledgementTime()
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getAcknowledgementTimeBuilder

      public com.google.protobuf.Timestamp.Builder getAcknowledgementTimeBuilder()
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getAcknowledgementTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getAcknowledgementTimeOrBuilder()
       Optional. Timestamp when this violation was acknowledged last.
       This will be absent when acknowledged field is marked as false.
       
      optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAcknowledgementTimeOrBuilder in interface ViolationOrBuilder
    • getExceptionAuditLogLink

      public String getExceptionAuditLogLink()
       Output only. Immutable. Audit Log link to find business justification provided for violation
       exception. Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
       
      string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getExceptionAuditLogLink in interface ViolationOrBuilder
      Returns:
      The exceptionAuditLogLink.
    • getExceptionAuditLogLinkBytes

      public com.google.protobuf.ByteString getExceptionAuditLogLinkBytes()
       Output only. Immutable. Audit Log link to find business justification provided for violation
       exception. Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
       
      string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getExceptionAuditLogLinkBytes in interface ViolationOrBuilder
      Returns:
      The bytes for exceptionAuditLogLink.
    • setExceptionAuditLogLink

      public Violation.Builder setExceptionAuditLogLink(String value)
       Output only. Immutable. Audit Log link to find business justification provided for violation
       exception. Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
       
      string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The exceptionAuditLogLink to set.
      Returns:
      This builder for chaining.
    • clearExceptionAuditLogLink

      public Violation.Builder clearExceptionAuditLogLink()
       Output only. Immutable. Audit Log link to find business justification provided for violation
       exception. Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
       
      string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setExceptionAuditLogLinkBytes

      public Violation.Builder setExceptionAuditLogLinkBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Audit Log link to find business justification provided for violation
       exception. Format:
       https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
       
      string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for exceptionAuditLogLink to set.
      Returns:
      This builder for chaining.