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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Violation
build()
Violation
buildPartial()
Violation.Builder
clear()
Violation.Builder
clearAcknowledged()
Output only.Violation.Builder
clearAcknowledgementTime()
Optional.Violation.Builder
clearAuditLogLink()
Output only.Violation.Builder
clearBeginTime()
Output only.Violation.Builder
clearCategory()
Output only.Violation.Builder
clearDescription()
Output only.Violation.Builder
clearExceptionAuditLogLink()
Output only.Violation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Violation.Builder
clearName()
Output only.Violation.Builder
clearNonCompliantOrgPolicy()
Output only.Violation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Violation.Builder
clearOrgPolicyConstraint()
Output only.Violation.Builder
clearRemediation()
Output only.Violation.Builder
clearResolveTime()
Output only.Violation.Builder
clearState()
Output only.Violation.Builder
clearUpdateTime()
Output only.Violation.Builder
clone()
boolean
getAcknowledged()
Output only.com.google.protobuf.Timestamp
getAcknowledgementTime()
Optional.com.google.protobuf.Timestamp.Builder
getAcknowledgementTimeBuilder()
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.Timestamp.Builder
getBeginTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getBeginTimeOrBuilder()
Output only.String
getCategory()
Output only.com.google.protobuf.ByteString
getCategoryBytes()
Output only.Violation
getDefaultInstanceForType()
String
getDescription()
Output only.com.google.protobuf.ByteString
getDescriptionBytes()
Output only.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.Remediation.Builder
getRemediationBuilder()
Output only.Violation.RemediationOrBuilder
getRemediationOrBuilder()
Output only.com.google.protobuf.Timestamp
getResolveTime()
Output only.com.google.protobuf.Timestamp.Builder
getResolveTimeBuilder()
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.Timestamp.Builder
getUpdateTimeBuilder()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Violation.Builder
mergeAcknowledgementTime(com.google.protobuf.Timestamp value)
Optional.Violation.Builder
mergeBeginTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
mergeFrom(Violation other)
Violation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Violation.Builder
mergeFrom(com.google.protobuf.Message other)
Violation.Builder
mergeRemediation(Violation.Remediation value)
Output only.Violation.Builder
mergeResolveTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Violation.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
setAcknowledged(boolean value)
Output only.Violation.Builder
setAcknowledgementTime(com.google.protobuf.Timestamp value)
Optional.Violation.Builder
setAcknowledgementTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional.Violation.Builder
setAuditLogLink(String value)
Output only.Violation.Builder
setAuditLogLinkBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setBeginTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
setBeginTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Violation.Builder
setCategory(String value)
Output only.Violation.Builder
setCategoryBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setDescription(String value)
Output only.Violation.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setExceptionAuditLogLink(String value)
Output only.Violation.Builder
setExceptionAuditLogLinkBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Violation.Builder
setName(String value)
Output only.Violation.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setNonCompliantOrgPolicy(String value)
Output only.Violation.Builder
setNonCompliantOrgPolicyBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setOrgPolicyConstraint(String value)
Output only.Violation.Builder
setOrgPolicyConstraintBytes(com.google.protobuf.ByteString value)
Output only.Violation.Builder
setRemediation(Violation.Remediation value)
Output only.Violation.Builder
setRemediation(Violation.Remediation.Builder builderForValue)
Output only.Violation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Violation.Builder
setResolveTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
setResolveTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Violation.Builder
setState(Violation.State value)
Output only.Violation.Builder
setStateValue(int value)
Output only.Violation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Violation.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Violation.Builder
setUpdateTime(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clear
public Violation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
getDefaultInstanceForType
public Violation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Violation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Violation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Violation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
setField
public Violation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clearField
public Violation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
clearOneof
public Violation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
setRepeatedField
public Violation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
addRepeatedField
public Violation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
mergeFrom
public Violation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Violation.Builder>
-
mergeFrom
public Violation.Builder mergeFrom(Violation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
hasBeginTime
in 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:
getBeginTime
in 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:
getBeginTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
hasResolveTime
in 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:
getResolveTime
in 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:
getResolveTimeOrBuilder
in 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:
getCategory
in 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:
getCategoryBytes
in 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:
getStateValue
in 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:
getState
in 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:
getOrgPolicyConstraint
in 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:
getOrgPolicyConstraintBytes
in 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:
getAuditLogLink
in 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:
getAuditLogLinkBytes
in 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:
getNonCompliantOrgPolicy
in 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:
getNonCompliantOrgPolicyBytes
in 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:
hasRemediation
in 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:
getRemediation
in 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:
getRemediationOrBuilder
in 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:
getAcknowledged
in 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:
hasAcknowledgementTime
in 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:
getAcknowledgementTime
in 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:
getAcknowledgementTimeOrBuilder
in 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:
getExceptionAuditLogLink
in 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:
getExceptionAuditLogLinkBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
mergeUnknownFields
public final Violation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Builder>
-
-