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.cloudcontrolspartner.v1beta.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
 Details of resource Violation
 
Protobuf type google.cloud.cloudcontrolspartner.v1beta.Violation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • clear

      public Violation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Violation.Builder>
    • getDefaultInstanceForType

      public Violation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Violation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Violation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Violation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violation.Builder>
    • mergeFrom

      public Violation.Builder mergeFrom(Violation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violation.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ViolationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ViolationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Violation.Builder setName(String value)
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Violation.Builder clearName()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Violation.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
    • 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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
    • 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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
    • 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 interface ViolationOrBuilder
      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 interface ViolationOrBuilder
      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.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ViolationOrBuilder
      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.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ViolationOrBuilder
      Returns:
      The state.
    • setState

      public Violation.Builder setState(Violation.State value)
       Output only. State of the violation
       
      .google.cloud.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNonCompliantOrgPolicy in interface ViolationOrBuilder
      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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNonCompliantOrgPolicyBytes in interface ViolationOrBuilder
      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 = 8 [(.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 = 8 [(.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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for nonCompliantOrgPolicy to set.
      Returns:
      This builder for chaining.
    • getFolderId

      public long getFolderId()
       The folder_id of the violation
       
      int64 folder_id = 9;
      Specified by:
      getFolderId in interface ViolationOrBuilder
      Returns:
      The folderId.
    • setFolderId

      public Violation.Builder setFolderId(long value)
       The folder_id of the violation
       
      int64 folder_id = 9;
      Parameters:
      value - The folderId to set.
      Returns:
      This builder for chaining.
    • clearFolderId

      public Violation.Builder clearFolderId()
       The folder_id of the violation
       
      int64 folder_id = 9;
      Returns:
      This builder for chaining.
    • hasRemediation

      public boolean hasRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRemediation in interface ViolationOrBuilder
      Returns:
      Whether the remediation field is set.
    • getRemediation

      public Violation.Remediation getRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRemediation in interface ViolationOrBuilder
      Returns:
      The remediation.
    • setRemediation

      public Violation.Builder setRemediation(Violation.Remediation value)
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRemediation

      public Violation.Builder clearRemediation()
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRemediationBuilder

      public Violation.Remediation.Builder getRemediationBuilder()
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRemediationOrBuilder

      public Violation.RemediationOrBuilder getRemediationOrBuilder()
       Output only. Compliance violation remediation
       
      .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRemediationOrBuilder in interface ViolationOrBuilder