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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.booleanOutput only.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getState()Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAcknowledgementTime(com.google.protobuf.Timestamp value) Optional.mergeBeginTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.mergeResolveTime(com.google.protobuf.Timestamp value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setAcknowledged(boolean value) Output only.setAcknowledgementTime(com.google.protobuf.Timestamp value) Optional.setAcknowledgementTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setAuditLogLink(String value) Output only.setAuditLogLinkBytes(com.google.protobuf.ByteString value) Output only.setBeginTime(com.google.protobuf.Timestamp value) Output only.setBeginTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCategory(String value) Output only.setCategoryBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) Output only.setDescriptionBytes(com.google.protobuf.ByteString value) Output only.setExceptionAuditLogLink(String value) Output only.setExceptionAuditLogLinkBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setNonCompliantOrgPolicy(String value) Output only.setNonCompliantOrgPolicyBytes(com.google.protobuf.ByteString value) Output only.setOrgPolicyConstraint(String value) Output only.setOrgPolicyConstraintBytes(com.google.protobuf.ByteString value) Output only.Output only.setRemediation(Violation.Remediation.Builder builderForValue) Output only.setResolveTime(com.google.protobuf.Timestamp value) Output only.setResolveTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setState(Violation.State value) Output only.setStateValue(int value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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<Violation.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<Violation.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<Violation.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<Violation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violation.Builder>- Throws:
IOException
-
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:
getNamein interfaceViolationOrBuilder- 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:
getNameBytesin interfaceViolationOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
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:
getDescriptionin interfaceViolationOrBuilder- 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:
getDescriptionBytesin interfaceViolationOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
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
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:
hasBeginTimein interfaceViolationOrBuilder- 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:
getBeginTimein interfaceViolationOrBuilder- Returns:
- The beginTime.
-
setBeginTime
Output only. Time of the event which triggered the Violation.
.google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setBeginTime
Output only. Time of the event which triggered the Violation.
.google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeBeginTime
Output only. Time of the event which triggered the Violation.
.google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getBeginTimeOrBuilderin interfaceViolationOrBuilder
-
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:
hasUpdateTimein interfaceViolationOrBuilder- 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:
getUpdateTimein interfaceViolationOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last time when the Violation record was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last time when the Violation record was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last time when the Violation record was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceViolationOrBuilder
-
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:
hasResolveTimein interfaceViolationOrBuilder- 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:
getResolveTimein interfaceViolationOrBuilder- Returns:
- The resolveTime.
-
setResolveTime
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
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
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
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:
getResolveTimeOrBuilderin interfaceViolationOrBuilder
-
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:
getCategoryin interfaceViolationOrBuilder- 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:
getCategoryBytesin interfaceViolationOrBuilder- Returns:
- The bytes for category.
-
setCategory
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
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
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:
getStateValuein interfaceViolationOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Output only. State of the violation
.google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceViolationOrBuilder- Returns:
- The state.
-
setState
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
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
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:
getOrgPolicyConstraintin interfaceViolationOrBuilder- 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:
getOrgPolicyConstraintBytesin interfaceViolationOrBuilder- Returns:
- The bytes for orgPolicyConstraint.
-
setOrgPolicyConstraint
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
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
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
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:
getAuditLogLinkin interfaceViolationOrBuilder- 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:
getAuditLogLinkBytesin interfaceViolationOrBuilder- Returns:
- The bytes for auditLogLink.
-
setAuditLogLink
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
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
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
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:
getNonCompliantOrgPolicyin interfaceViolationOrBuilder- 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:
getNonCompliantOrgPolicyBytesin interfaceViolationOrBuilder- Returns:
- The bytes for nonCompliantOrgPolicy.
-
setNonCompliantOrgPolicy
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
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
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:
hasRemediationin interfaceViolationOrBuilder- Returns:
- Whether the remediation field is set.
-
getRemediation
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRemediationin interfaceViolationOrBuilder- Returns:
- The remediation.
-
setRemediation
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setRemediation
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeRemediation
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearRemediation
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRemediationBuilder
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRemediationOrBuilder
Output only. Compliance violation remediation
.google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRemediationOrBuilderin interfaceViolationOrBuilder
-
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:
getAcknowledgedin interfaceViolationOrBuilder- Returns:
- The acknowledged.
-
setAcknowledged
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
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:
hasAcknowledgementTimein interfaceViolationOrBuilder- 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:
getAcknowledgementTimein interfaceViolationOrBuilder- Returns:
- The acknowledgementTime.
-
setAcknowledgementTime
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
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
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:
getAcknowledgementTimeOrBuilderin interfaceViolationOrBuilder
-
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:
getExceptionAuditLogLinkin interfaceViolationOrBuilder- 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:
getExceptionAuditLogLinkBytesin interfaceViolationOrBuilder- Returns:
- The bytes for exceptionAuditLogLink.
-
setExceptionAuditLogLink
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
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
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.
-