Class PolicyViolationDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyViolationDetails.Builder>
com.google.cloud.deploy.v1.PolicyViolationDetails.Builder
All Implemented Interfaces:
PolicyViolationDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyViolationDetails

public static final class PolicyViolationDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyViolationDetails.Builder> implements PolicyViolationDetailsOrBuilder
 Policy violation details.
 
Protobuf type google.cloud.deploy.v1.PolicyViolationDetails
  • 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<PolicyViolationDetails.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<PolicyViolationDetails.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<PolicyViolationDetails.Builder>
    • getDefaultInstanceForType

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

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

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

      public PolicyViolationDetails.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<PolicyViolationDetails.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PolicyViolationDetails.Builder>
    • mergeFrom

      public PolicyViolationDetails.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<PolicyViolationDetails.Builder>
      Throws:
      IOException
    • getPolicy

      public String getPolicy()
       Name of the policy that was violated.
       Policy resource will be in the format of
       `projects/{project}/locations/{location}/policies/{policy}`.
       
      string policy = 1;
      Specified by:
      getPolicy in interface PolicyViolationDetailsOrBuilder
      Returns:
      The policy.
    • getPolicyBytes

      public com.google.protobuf.ByteString getPolicyBytes()
       Name of the policy that was violated.
       Policy resource will be in the format of
       `projects/{project}/locations/{location}/policies/{policy}`.
       
      string policy = 1;
      Specified by:
      getPolicyBytes in interface PolicyViolationDetailsOrBuilder
      Returns:
      The bytes for policy.
    • setPolicy

      public PolicyViolationDetails.Builder setPolicy(String value)
       Name of the policy that was violated.
       Policy resource will be in the format of
       `projects/{project}/locations/{location}/policies/{policy}`.
       
      string policy = 1;
      Parameters:
      value - The policy to set.
      Returns:
      This builder for chaining.
    • clearPolicy

      public PolicyViolationDetails.Builder clearPolicy()
       Name of the policy that was violated.
       Policy resource will be in the format of
       `projects/{project}/locations/{location}/policies/{policy}`.
       
      string policy = 1;
      Returns:
      This builder for chaining.
    • setPolicyBytes

      public PolicyViolationDetails.Builder setPolicyBytes(com.google.protobuf.ByteString value)
       Name of the policy that was violated.
       Policy resource will be in the format of
       `projects/{project}/locations/{location}/policies/{policy}`.
       
      string policy = 1;
      Parameters:
      value - The bytes for policy to set.
      Returns:
      This builder for chaining.
    • getRuleId

      public String getRuleId()
       Id of the rule that triggered the policy violation.
       
      string rule_id = 2;
      Specified by:
      getRuleId in interface PolicyViolationDetailsOrBuilder
      Returns:
      The ruleId.
    • getRuleIdBytes

      public com.google.protobuf.ByteString getRuleIdBytes()
       Id of the rule that triggered the policy violation.
       
      string rule_id = 2;
      Specified by:
      getRuleIdBytes in interface PolicyViolationDetailsOrBuilder
      Returns:
      The bytes for ruleId.
    • setRuleId

      public PolicyViolationDetails.Builder setRuleId(String value)
       Id of the rule that triggered the policy violation.
       
      string rule_id = 2;
      Parameters:
      value - The ruleId to set.
      Returns:
      This builder for chaining.
    • clearRuleId

      public PolicyViolationDetails.Builder clearRuleId()
       Id of the rule that triggered the policy violation.
       
      string rule_id = 2;
      Returns:
      This builder for chaining.
    • setRuleIdBytes

      public PolicyViolationDetails.Builder setRuleIdBytes(com.google.protobuf.ByteString value)
       Id of the rule that triggered the policy violation.
       
      string rule_id = 2;
      Parameters:
      value - The bytes for ruleId to set.
      Returns:
      This builder for chaining.
    • getFailureMessage

      public String getFailureMessage()
       User readable message about why the request violated a policy. This is not
       intended for machine parsing.
       
      string failure_message = 3;
      Specified by:
      getFailureMessage in interface PolicyViolationDetailsOrBuilder
      Returns:
      The failureMessage.
    • getFailureMessageBytes

      public com.google.protobuf.ByteString getFailureMessageBytes()
       User readable message about why the request violated a policy. This is not
       intended for machine parsing.
       
      string failure_message = 3;
      Specified by:
      getFailureMessageBytes in interface PolicyViolationDetailsOrBuilder
      Returns:
      The bytes for failureMessage.
    • setFailureMessage

      public PolicyViolationDetails.Builder setFailureMessage(String value)
       User readable message about why the request violated a policy. This is not
       intended for machine parsing.
       
      string failure_message = 3;
      Parameters:
      value - The failureMessage to set.
      Returns:
      This builder for chaining.
    • clearFailureMessage

      public PolicyViolationDetails.Builder clearFailureMessage()
       User readable message about why the request violated a policy. This is not
       intended for machine parsing.
       
      string failure_message = 3;
      Returns:
      This builder for chaining.
    • setFailureMessageBytes

      public PolicyViolationDetails.Builder setFailureMessageBytes(com.google.protobuf.ByteString value)
       User readable message about why the request violated a policy. This is not
       intended for machine parsing.
       
      string failure_message = 3;
      Parameters:
      value - The bytes for failureMessage to set.
      Returns:
      This builder for chaining.