Package com.google.cloud.deploy.v1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPayload proto for "clouddeploy.googleapis.com/deploypolicy_evaluation" Platform Log event that describes the deploy policy evaluation event.static enumThe policy verdict of the request.static enumThings that could have overridden the policy verdict.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether the request is allowed.static DeployPolicyEvaluationEventThe name of the `Delivery Pipeline`.com.google.protobuf.ByteStringThe name of the `Delivery Pipeline`.The name of the `DeployPolicy`.com.google.protobuf.ByteStringThe name of the `DeployPolicy`.Unique identifier of the `DeployPolicy`.com.google.protobuf.ByteStringUnique identifier of the `DeployPolicy`.static final com.google.protobuf.Descriptors.DescriptorWhat invoked the action (e.g. a user or automation).intWhat invoked the action (e.g. a user or automation).Debug message for when a deploy policy event occurs.com.google.protobuf.ByteStringDebug message for when a deploy policy event occurs.getOverrides(int index) Things that could have overridden the policy verdict.intThings that could have overridden the policy verdict.Things that could have overridden the policy verdict.intgetOverridesValue(int index) Things that could have overridden the policy verdict.Things that could have overridden the policy verdict.com.google.protobuf.Parser<DeployPolicyEvaluationEvent>Unique identifier of the `Delivery Pipeline`.com.google.protobuf.ByteStringUnique identifier of the `Delivery Pipeline`.getRule()Rule id.com.google.protobuf.ByteStringRule id.Rule type (e.g.com.google.protobuf.ByteStringRule type (e.g.intThe name of the `Target`.com.google.protobuf.ByteStringThe name of the `Target`.Unique identifier of the `Target`.com.google.protobuf.ByteStringUnique identifier of the `Target`.The policy verdict of the request.intThe policy verdict of the request.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(DeployPolicyEvaluationEvent prototype) protected DeployPolicyEvaluationEvent.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DeployPolicyEvaluationEventparseDelimitedFrom(InputStream input) static DeployPolicyEvaluationEventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployPolicyEvaluationEventparseFrom(byte[] data) static DeployPolicyEvaluationEventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployPolicyEvaluationEventparseFrom(com.google.protobuf.ByteString data) static DeployPolicyEvaluationEventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployPolicyEvaluationEventparseFrom(com.google.protobuf.CodedInputStream input) static DeployPolicyEvaluationEventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployPolicyEvaluationEventparseFrom(InputStream input) static DeployPolicyEvaluationEventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployPolicyEvaluationEventparseFrom(ByteBuffer data) static DeployPolicyEvaluationEventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DeployPolicyEvaluationEvent>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMessage
Debug message for when a deploy policy event occurs.
string message = 1;- Specified by:
getMessagein interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()Debug message for when a deploy policy event occurs.
string message = 1;- Specified by:
getMessageBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for message.
-
getRuleType
Rule type (e.g. Restrict Rollouts).
string rule_type = 2;- Specified by:
getRuleTypein interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The ruleType.
-
getRuleTypeBytes
public com.google.protobuf.ByteString getRuleTypeBytes()Rule type (e.g. Restrict Rollouts).
string rule_type = 2;- Specified by:
getRuleTypeBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for ruleType.
-
getRule
Rule id.
string rule = 3;- Specified by:
getRulein interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The rule.
-
getRuleBytes
public com.google.protobuf.ByteString getRuleBytes()Rule id.
string rule = 3;- Specified by:
getRuleBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for rule.
-
getPipelineUid
Unique identifier of the `Delivery Pipeline`.
string pipeline_uid = 4;- Specified by:
getPipelineUidin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The pipelineUid.
-
getPipelineUidBytes
public com.google.protobuf.ByteString getPipelineUidBytes()Unique identifier of the `Delivery Pipeline`.
string pipeline_uid = 4;- Specified by:
getPipelineUidBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for pipelineUid.
-
getDeliveryPipeline
The name of the `Delivery Pipeline`.
string delivery_pipeline = 5;- Specified by:
getDeliveryPipelinein interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The deliveryPipeline.
-
getDeliveryPipelineBytes
public com.google.protobuf.ByteString getDeliveryPipelineBytes()The name of the `Delivery Pipeline`.
string delivery_pipeline = 5;- Specified by:
getDeliveryPipelineBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for deliveryPipeline.
-
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:
getTargetUidin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getTargetUidBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for targetUid.
-
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:
getTargetin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getTargetBytesin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getInvokerValuein interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The enum numeric value on the wire for invoker.
-
getInvoker
What invoked the action (e.g. a user or automation).
.google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8;- Specified by:
getInvokerin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The invoker.
-
getDeployPolicy
The name of the `DeployPolicy`.
string deploy_policy = 9;- Specified by:
getDeployPolicyin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The deployPolicy.
-
getDeployPolicyBytes
public com.google.protobuf.ByteString getDeployPolicyBytes()The name of the `DeployPolicy`.
string deploy_policy = 9;- Specified by:
getDeployPolicyBytesin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The bytes for deployPolicy.
-
getDeployPolicyUid
Unique identifier of the `DeployPolicy`.
string deploy_policy_uid = 10;- Specified by:
getDeployPolicyUidin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The deployPolicyUid.
-
getDeployPolicyUidBytes
public com.google.protobuf.ByteString getDeployPolicyUidBytes()Unique identifier of the `DeployPolicy`.
string deploy_policy_uid = 10;- Specified by:
getDeployPolicyUidBytesin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getAllowedin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The allowed.
-
getVerdictValue
public int getVerdictValue()The policy verdict of the request.
.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12;- Specified by:
getVerdictValuein interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getVerdictin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getOverridesListin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getOverridesCountin interfaceDeployPolicyEvaluationEventOrBuilder- Returns:
- The count of overrides.
-
getOverrides
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:
getOverridesin interfaceDeployPolicyEvaluationEventOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The overrides at the given index.
-
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:
getOverridesValueListin interfaceDeployPolicyEvaluationEventOrBuilder- 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:
getOverridesValuein interfaceDeployPolicyEvaluationEventOrBuilder- 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static DeployPolicyEvaluationEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DeployPolicyEvaluationEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-