Class Violation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Violation.Builder> implements ViolationOrBuilder
Workload monitoring Violation.
Protobuf typegoogle.cloud.assuredworkloads.v1.Violation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Violation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Violationbuild()ViolationbuildPartial()Violation.Builderclear()Violation.BuilderclearAcknowledged()Output only.Violation.BuilderclearAcknowledgementTime()Optional.Violation.BuilderclearAuditLogLink()Output only.Violation.BuilderclearBeginTime()Output only.Violation.BuilderclearCategory()Output only.Violation.BuilderclearDescription()Output only.Violation.BuilderclearExceptionAuditLogLink()Output only.Violation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Violation.BuilderclearName()Output only.Violation.BuilderclearNonCompliantOrgPolicy()Output only.Violation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Violation.BuilderclearOrgPolicyConstraint()Output only.Violation.BuilderclearRemediation()Output only.Violation.BuilderclearResolveTime()Output only.Violation.BuilderclearState()Output only.Violation.BuilderclearUpdateTime()Output only.Violation.Builderclone()booleangetAcknowledged()Output only.com.google.protobuf.TimestampgetAcknowledgementTime()Optional.com.google.protobuf.Timestamp.BuildergetAcknowledgementTimeBuilder()Optional.com.google.protobuf.TimestampOrBuildergetAcknowledgementTimeOrBuilder()Optional.StringgetAuditLogLink()Output only.com.google.protobuf.ByteStringgetAuditLogLinkBytes()Output only.com.google.protobuf.TimestampgetBeginTime()Output only.com.google.protobuf.Timestamp.BuildergetBeginTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetBeginTimeOrBuilder()Output only.StringgetCategory()Output only.com.google.protobuf.ByteStringgetCategoryBytes()Output only.ViolationgetDefaultInstanceForType()StringgetDescription()Output only.com.google.protobuf.ByteStringgetDescriptionBytes()Output only.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExceptionAuditLogLink()Output only.com.google.protobuf.ByteStringgetExceptionAuditLogLinkBytes()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetNonCompliantOrgPolicy()Output only.com.google.protobuf.ByteStringgetNonCompliantOrgPolicyBytes()Output only.StringgetOrgPolicyConstraint()Output only.com.google.protobuf.ByteStringgetOrgPolicyConstraintBytes()Output only.Violation.RemediationgetRemediation()Output only.Violation.Remediation.BuildergetRemediationBuilder()Output only.Violation.RemediationOrBuildergetRemediationOrBuilder()Output only.com.google.protobuf.TimestampgetResolveTime()Output only.com.google.protobuf.Timestamp.BuildergetResolveTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetResolveTimeOrBuilder()Output only.Violation.StategetState()Output only.intgetStateValue()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasAcknowledgementTime()Optional.booleanhasBeginTime()Output only.booleanhasRemediation()Output only.booleanhasResolveTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Violation.BuildermergeAcknowledgementTime(com.google.protobuf.Timestamp value)Optional.Violation.BuildermergeBeginTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildermergeFrom(Violation other)Violation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Violation.BuildermergeFrom(com.google.protobuf.Message other)Violation.BuildermergeRemediation(Violation.Remediation value)Output only.Violation.BuildermergeResolveTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Violation.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildersetAcknowledged(boolean value)Output only.Violation.BuildersetAcknowledgementTime(com.google.protobuf.Timestamp value)Optional.Violation.BuildersetAcknowledgementTime(com.google.protobuf.Timestamp.Builder builderForValue)Optional.Violation.BuildersetAuditLogLink(String value)Output only.Violation.BuildersetAuditLogLinkBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetBeginTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildersetBeginTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Violation.BuildersetCategory(String value)Output only.Violation.BuildersetCategoryBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetDescription(String value)Output only.Violation.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetExceptionAuditLogLink(String value)Output only.Violation.BuildersetExceptionAuditLogLinkBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Violation.BuildersetName(String value)Output only.Violation.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetNonCompliantOrgPolicy(String value)Output only.Violation.BuildersetNonCompliantOrgPolicyBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetOrgPolicyConstraint(String value)Output only.Violation.BuildersetOrgPolicyConstraintBytes(com.google.protobuf.ByteString value)Output only.Violation.BuildersetRemediation(Violation.Remediation value)Output only.Violation.BuildersetRemediation(Violation.Remediation.Builder builderForValue)Output only.Violation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Violation.BuildersetResolveTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildersetResolveTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Violation.BuildersetState(Violation.State value)Output only.Violation.BuildersetStateValue(int value)Output only.Violation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Violation.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.Violation.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clear
public Violation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Violation.Builder>
-
getDefaultInstanceForType
public Violation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Violation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Violation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Violation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
setField
public Violation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clearField
public Violation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clearOneof
public Violation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
setRepeatedField
public Violation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
addRepeatedField
public Violation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
mergeFrom
public Violation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violation.Builder>
-
mergeFrom
public Violation.Builder mergeFrom(Violation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
getResolveTimeOrBuilderin interfaceViolationOrBuilder
-
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:
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
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:
getStateValuein interfaceViolationOrBuilder- 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:
getStatein interfaceViolationOrBuilder- 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:
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
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:
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
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:
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
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:
hasRemediationin interfaceViolationOrBuilder- 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:
getRemediationin interfaceViolationOrBuilder- 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:
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
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:
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
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:
getAcknowledgementTimeOrBuilderin interfaceViolationOrBuilder
-
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:
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
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.
-
setUnknownFields
public final Violation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
mergeUnknownFields
public final Violation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
-