Class FirewallPolicyAssessment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssessment.Builder>
com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FirewallPolicyAssessmentOrBuilder, Cloneable
Enclosing class:
FirewallPolicyAssessment

public static final class FirewallPolicyAssessment.Builder extends com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssessment.Builder> implements FirewallPolicyAssessmentOrBuilder
 Policy config assessment.
 
Protobuf type google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment
  • 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<FirewallPolicyAssessment.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<FirewallPolicyAssessment.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<FirewallPolicyAssessment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FirewallPolicyAssessment.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<FirewallPolicyAssessment.Builder>
      Throws:
      IOException
    • hasError

      public boolean hasError()
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface FirewallPolicyAssessmentOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface FirewallPolicyAssessmentOrBuilder
      Returns:
      The error.
    • setError

      public FirewallPolicyAssessment.Builder setError(Status value)
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setError

      public FirewallPolicyAssessment.Builder setError(Status.Builder builderForValue)
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeError

      public FirewallPolicyAssessment.Builder mergeError(Status value)
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearError

      public FirewallPolicyAssessment.Builder clearError()
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorBuilder

      public Status.Builder getErrorBuilder()
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. If the processing of a policy config fails, an error is
       populated and the firewall_policy is left empty.
       
      .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface FirewallPolicyAssessmentOrBuilder
    • hasFirewallPolicy

      public boolean hasFirewallPolicy()
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFirewallPolicy in interface FirewallPolicyAssessmentOrBuilder
      Returns:
      Whether the firewallPolicy field is set.
    • getFirewallPolicy

      public FirewallPolicy getFirewallPolicy()
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFirewallPolicy in interface FirewallPolicyAssessmentOrBuilder
      Returns:
      The firewallPolicy.
    • setFirewallPolicy

      public FirewallPolicyAssessment.Builder setFirewallPolicy(FirewallPolicy value)
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setFirewallPolicy

      public FirewallPolicyAssessment.Builder setFirewallPolicy(FirewallPolicy.Builder builderForValue)
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeFirewallPolicy

      public FirewallPolicyAssessment.Builder mergeFirewallPolicy(FirewallPolicy value)
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearFirewallPolicy

      public FirewallPolicyAssessment.Builder clearFirewallPolicy()
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFirewallPolicyBuilder

      public FirewallPolicy.Builder getFirewallPolicyBuilder()
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFirewallPolicyOrBuilder

      public FirewallPolicyOrBuilder getFirewallPolicyOrBuilder()
       Output only. The policy that matched the request. If more than one policy
       may match, this is the first match. If no policy matches the incoming
       request, the policy field is left empty.
       
      .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFirewallPolicyOrBuilder in interface FirewallPolicyAssessmentOrBuilder