Interface ViolationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Violation,Violation.Builder
@Generated
public interface ViolationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.longThe folder_id of the violationgetName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getState()Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- 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.cloudcontrolspartner.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.cloudcontrolspartner.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
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 = 8 [(.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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for nonCompliantOrgPolicy.
-
getFolderId
long getFolderId()The folder_id of the violation
int64 folder_id = 9;- Returns:
- The folderId.
-
hasRemediation
boolean hasRemediation()Output only. Compliance violation remediation
.google.cloud.cloudcontrolspartner.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.cloudcontrolspartner.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.cloudcontrolspartner.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
-