Interface ViolationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Violation
,Violation.Builder
public interface ViolationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAcknowledged()
Output only.com.google.protobuf.Timestamp
getAcknowledgementTime()
Optional.com.google.protobuf.TimestampOrBuilder
getAcknowledgementTimeOrBuilder()
Optional.String
getAuditLogLink()
Output only.com.google.protobuf.ByteString
getAuditLogLinkBytes()
Output only.com.google.protobuf.Timestamp
getBeginTime()
Output only.com.google.protobuf.TimestampOrBuilder
getBeginTimeOrBuilder()
Output only.String
getCategory()
Output only.com.google.protobuf.ByteString
getCategoryBytes()
Output only.String
getDescription()
Output only.com.google.protobuf.ByteString
getDescriptionBytes()
Output only.String
getExceptionAuditLogLink()
Output only.com.google.protobuf.ByteString
getExceptionAuditLogLinkBytes()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNonCompliantOrgPolicy()
Output only.com.google.protobuf.ByteString
getNonCompliantOrgPolicyBytes()
Output only.String
getOrgPolicyConstraint()
Output only.com.google.protobuf.ByteString
getOrgPolicyConstraintBytes()
Output only.Violation.Remediation
getRemediation()
Output only.Violation.RemediationOrBuilder
getRemediationOrBuilder()
Output only.com.google.protobuf.Timestamp
getResolveTime()
Output only.com.google.protobuf.TimestampOrBuilder
getResolveTimeOrBuilder()
Output only.Violation.State
getState()
Output only.int
getStateValue()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasAcknowledgementTime()
Optional.boolean
hasBeginTime()
Output only.boolean
hasRemediation()
Output only.boolean
hasResolveTime()
Output only.boolean
hasUpdateTime()
Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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];
- Returns:
- The name.
-
getNameBytes
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];
- Returns:
- The bytes for name.
-
getDescription
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];
- Returns:
- The description.
-
getDescriptionBytes
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];
- Returns:
- The bytes for description.
-
hasBeginTime
boolean hasBeginTime()
Output only. Time of the event which triggered the Violation.
.google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the beginTime field is set.
-
getBeginTime
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];
- Returns:
- The beginTime.
-
getBeginTimeOrBuilder
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];
-
hasUpdateTime
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];
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
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];
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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];
-
hasResolveTime
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];
- Returns:
- Whether the resolveTime field is set.
-
getResolveTime
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];
- Returns:
- The resolveTime.
-
getResolveTimeOrBuilder
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];
-
getCategory
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];
- Returns:
- The category.
-
getCategoryBytes
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];
- Returns:
- The bytes for category.
-
getStateValue
int getStateValue()
Output only. State of the violation
.google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The enum numeric value on the wire for state.
-
getState
Violation.State getState()
Output only. State of the violation
.google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The state.
-
getOrgPolicyConstraint
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];
- Returns:
- The orgPolicyConstraint.
-
getOrgPolicyConstraintBytes
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];
- Returns:
- The bytes for orgPolicyConstraint.
-
getAuditLogLink
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];
- Returns:
- The auditLogLink.
-
getAuditLogLinkBytes
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];
- Returns:
- The bytes for auditLogLink.
-
getNonCompliantOrgPolicy
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];
- Returns:
- The nonCompliantOrgPolicy.
-
getNonCompliantOrgPolicyBytes
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];
- Returns:
- The bytes for nonCompliantOrgPolicy.
-
hasRemediation
boolean hasRemediation()
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the remediation field is set.
-
getRemediation
Violation.Remediation getRemediation()
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The remediation.
-
getRemediationOrBuilder
Violation.RemediationOrBuilder getRemediationOrBuilder()
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getAcknowledged
boolean getAcknowledged()
Output only. A boolean that indicates if the violation is acknowledged
bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The acknowledged.
-
hasAcknowledgementTime
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];
- Returns:
- Whether the acknowledgementTime field is set.
-
getAcknowledgementTime
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];
- Returns:
- The acknowledgementTime.
-
getAcknowledgementTimeOrBuilder
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];
-
getExceptionAuditLogLink
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];
- Returns:
- The exceptionAuditLogLink.
-
getExceptionAuditLogLinkBytes
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];
- Returns:
- The bytes for exceptionAuditLogLink.
-
-