Class DeployPolicyEvaluationEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.DeployPolicyEvaluationEvent
All Implemented Interfaces:
DeployPolicyEvaluationEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DeployPolicyEvaluationEvent extends com.google.protobuf.GeneratedMessage implements DeployPolicyEvaluationEventOrBuilder
 Payload proto for "clouddeploy.googleapis.com/deploypolicy_evaluation"
 Platform Log event that describes the deploy policy evaluation event.
 
Protobuf type google.cloud.deploy.v1.DeployPolicyEvaluationEvent
See Also:
  • Field Details

    • MESSAGE_FIELD_NUMBER

      public static final int MESSAGE_FIELD_NUMBER
      See Also:
    • RULE_TYPE_FIELD_NUMBER

      public static final int RULE_TYPE_FIELD_NUMBER
      See Also:
    • RULE_FIELD_NUMBER

      public static final int RULE_FIELD_NUMBER
      See Also:
    • PIPELINE_UID_FIELD_NUMBER

      public static final int PIPELINE_UID_FIELD_NUMBER
      See Also:
    • DELIVERY_PIPELINE_FIELD_NUMBER

      public static final int DELIVERY_PIPELINE_FIELD_NUMBER
      See Also:
    • TARGET_UID_FIELD_NUMBER

      public static final int TARGET_UID_FIELD_NUMBER
      See Also:
    • TARGET_FIELD_NUMBER

      public static final int TARGET_FIELD_NUMBER
      See Also:
    • INVOKER_FIELD_NUMBER

      public static final int INVOKER_FIELD_NUMBER
      See Also:
    • DEPLOY_POLICY_FIELD_NUMBER

      public static final int DEPLOY_POLICY_FIELD_NUMBER
      See Also:
    • DEPLOY_POLICY_UID_FIELD_NUMBER

      public static final int DEPLOY_POLICY_UID_FIELD_NUMBER
      See Also:
    • ALLOWED_FIELD_NUMBER

      public static final int ALLOWED_FIELD_NUMBER
      See Also:
    • VERDICT_FIELD_NUMBER

      public static final int VERDICT_FIELD_NUMBER
      See Also:
    • OVERRIDES_FIELD_NUMBER

      public static final int OVERRIDES_FIELD_NUMBER
      See Also:
  • 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
    • getMessage

      public String getMessage()
       Debug message for when a deploy policy event occurs.
       
      string message = 1;
      Specified by:
      getMessage in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Debug message for when a deploy policy event occurs.
       
      string message = 1;
      Specified by:
      getMessageBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for message.
    • getRuleType

      public String getRuleType()
       Rule type (e.g. Restrict Rollouts).
       
      string rule_type = 2;
      Specified by:
      getRuleType in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The ruleType.
    • getRuleTypeBytes

      public com.google.protobuf.ByteString getRuleTypeBytes()
       Rule type (e.g. Restrict Rollouts).
       
      string rule_type = 2;
      Specified by:
      getRuleTypeBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for ruleType.
    • getRule

      public String getRule()
       Rule id.
       
      string rule = 3;
      Specified by:
      getRule in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The rule.
    • getRuleBytes

      public com.google.protobuf.ByteString getRuleBytes()
       Rule id.
       
      string rule = 3;
      Specified by:
      getRuleBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for rule.
    • getPipelineUid

      public String getPipelineUid()
       Unique identifier of the `Delivery Pipeline`.
       
      string pipeline_uid = 4;
      Specified by:
      getPipelineUid in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The pipelineUid.
    • getPipelineUidBytes

      public com.google.protobuf.ByteString getPipelineUidBytes()
       Unique identifier of the `Delivery Pipeline`.
       
      string pipeline_uid = 4;
      Specified by:
      getPipelineUidBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for pipelineUid.
    • getDeliveryPipeline

      public String getDeliveryPipeline()
       The name of the `Delivery Pipeline`.
       
      string delivery_pipeline = 5;
      Specified by:
      getDeliveryPipeline in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The deliveryPipeline.
    • getDeliveryPipelineBytes

      public com.google.protobuf.ByteString getDeliveryPipelineBytes()
       The name of the `Delivery Pipeline`.
       
      string delivery_pipeline = 5;
      Specified by:
      getDeliveryPipelineBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for deliveryPipeline.
    • getTargetUid

      public String getTargetUid()
       Unique identifier of the `Target`. This is an optional field, as a `Target`
       may not always be applicable to a policy.
       
      string target_uid = 6;
      Specified by:
      getTargetUid in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The targetUid.
    • getTargetUidBytes

      public com.google.protobuf.ByteString getTargetUidBytes()
       Unique identifier of the `Target`. This is an optional field, as a `Target`
       may not always be applicable to a policy.
       
      string target_uid = 6;
      Specified by:
      getTargetUidBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for targetUid.
    • getTarget

      public String getTarget()
       The name of the `Target`. This is an optional field, as a `Target` may not
       always be applicable to a policy.
       
      string target = 7;
      Specified by:
      getTarget in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       The name of the `Target`. This is an optional field, as a `Target` may not
       always be applicable to a policy.
       
      string target = 7;
      Specified by:
      getTargetBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for target.
    • getInvokerValue

      public int getInvokerValue()
       What invoked the action (e.g. a user or automation).
       
      .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8;
      Specified by:
      getInvokerValue in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The enum numeric value on the wire for invoker.
    • getInvoker

      public DeployPolicy.Invoker getInvoker()
       What invoked the action (e.g. a user or automation).
       
      .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8;
      Specified by:
      getInvoker in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The invoker.
    • getDeployPolicy

      public String getDeployPolicy()
       The name of the `DeployPolicy`.
       
      string deploy_policy = 9;
      Specified by:
      getDeployPolicy in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The deployPolicy.
    • getDeployPolicyBytes

      public com.google.protobuf.ByteString getDeployPolicyBytes()
       The name of the `DeployPolicy`.
       
      string deploy_policy = 9;
      Specified by:
      getDeployPolicyBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for deployPolicy.
    • getDeployPolicyUid

      public String getDeployPolicyUid()
       Unique identifier of the `DeployPolicy`.
       
      string deploy_policy_uid = 10;
      Specified by:
      getDeployPolicyUid in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The deployPolicyUid.
    • getDeployPolicyUidBytes

      public com.google.protobuf.ByteString getDeployPolicyUidBytes()
       Unique identifier of the `DeployPolicy`.
       
      string deploy_policy_uid = 10;
      Specified by:
      getDeployPolicyUidBytes in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The bytes for deployPolicyUid.
    • getAllowed

      public boolean getAllowed()
       Whether the request is allowed. Allowed is set as true if:
       (1) the request complies with the policy; or
       (2) the request doesn't comply with the policy but the policy was
       overridden; or
       (3) the request doesn't comply with the policy but the policy was suspended
       
      bool allowed = 11;
      Specified by:
      getAllowed in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The allowed.
    • getVerdictValue

      public int getVerdictValue()
       The policy verdict of the request.
       
      .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12;
      Specified by:
      getVerdictValue in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The enum numeric value on the wire for verdict.
    • getVerdict

       The policy verdict of the request.
       
      .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12;
      Specified by:
      getVerdict in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The verdict.
    • getOverridesList

       Things that could have overridden the policy verdict. Overrides together
       with verdict decide whether the request is allowed.
       
      repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
      Specified by:
      getOverridesList in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      A list containing the overrides.
    • getOverridesCount

      public int getOverridesCount()
       Things that could have overridden the policy verdict. Overrides together
       with verdict decide whether the request is allowed.
       
      repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
      Specified by:
      getOverridesCount in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      The count of overrides.
    • getOverrides

      public DeployPolicyEvaluationEvent.PolicyVerdictOverride getOverrides(int index)
       Things that could have overridden the policy verdict. Overrides together
       with verdict decide whether the request is allowed.
       
      repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
      Specified by:
      getOverrides in interface DeployPolicyEvaluationEventOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The overrides at the given index.
    • getOverridesValueList

      public List<Integer> getOverridesValueList()
       Things that could have overridden the policy verdict. Overrides together
       with verdict decide whether the request is allowed.
       
      repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
      Specified by:
      getOverridesValueList in interface DeployPolicyEvaluationEventOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for overrides.
    • getOverridesValue

      public int getOverridesValue(int index)
       Things that could have overridden the policy verdict. Overrides together
       with verdict decide whether the request is allowed.
       
      repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
      Specified by:
      getOverridesValue in interface DeployPolicyEvaluationEventOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of overrides at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeployPolicyEvaluationEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeployPolicyEvaluationEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployPolicyEvaluationEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DeployPolicyEvaluationEvent.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DeployPolicyEvaluationEvent.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DeployPolicyEvaluationEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DeployPolicyEvaluationEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DeployPolicyEvaluationEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<DeployPolicyEvaluationEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DeployPolicyEvaluationEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder