Class DeployPolicyNotificationEvent.Builder

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

public static final class DeployPolicyNotificationEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployPolicyNotificationEvent.Builder> implements DeployPolicyNotificationEventOrBuilder
 Payload proto for "clouddeploy.googleapis.com/deploypolicy_notification".
 Platform Log event that describes the failure to send a pub/sub notification
 when there is a DeployPolicy status change.
 
Protobuf type google.cloud.deploy.v1.DeployPolicyNotificationEvent
  • 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<DeployPolicyNotificationEvent.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<DeployPolicyNotificationEvent.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<DeployPolicyNotificationEvent.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public DeployPolicyNotificationEvent.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<DeployPolicyNotificationEvent.Builder>
      Throws:
      IOException
    • getMessage

      public String getMessage()
       Debug message for when a deploy policy fails to send a pub/sub
       notification.
       
      string message = 1;
      Specified by:
      getMessage in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Debug message for when a deploy policy fails to send a pub/sub
       notification.
       
      string message = 1;
      Specified by:
      getMessageBytes in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public DeployPolicyNotificationEvent.Builder setMessage(String value)
       Debug message for when a deploy policy fails to send a pub/sub
       notification.
       
      string message = 1;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

       Debug message for when a deploy policy fails to send a pub/sub
       notification.
       
      string message = 1;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public DeployPolicyNotificationEvent.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Debug message for when a deploy policy fails to send a pub/sub
       notification.
       
      string message = 1;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getDeployPolicy

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

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

      public DeployPolicyNotificationEvent.Builder setDeployPolicy(String value)
       The name of the `DeployPolicy`.
       
      string deploy_policy = 2;
      Parameters:
      value - The deployPolicy to set.
      Returns:
      This builder for chaining.
    • clearDeployPolicy

      public DeployPolicyNotificationEvent.Builder clearDeployPolicy()
       The name of the `DeployPolicy`.
       
      string deploy_policy = 2;
      Returns:
      This builder for chaining.
    • setDeployPolicyBytes

      public DeployPolicyNotificationEvent.Builder setDeployPolicyBytes(com.google.protobuf.ByteString value)
       The name of the `DeployPolicy`.
       
      string deploy_policy = 2;
      Parameters:
      value - The bytes for deployPolicy to set.
      Returns:
      This builder for chaining.
    • getDeployPolicyUid

      public String getDeployPolicyUid()
       Unique identifier of the deploy policy.
       
      string deploy_policy_uid = 3;
      Specified by:
      getDeployPolicyUid in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The deployPolicyUid.
    • getDeployPolicyUidBytes

      public com.google.protobuf.ByteString getDeployPolicyUidBytes()
       Unique identifier of the deploy policy.
       
      string deploy_policy_uid = 3;
      Specified by:
      getDeployPolicyUidBytes in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The bytes for deployPolicyUid.
    • setDeployPolicyUid

      public DeployPolicyNotificationEvent.Builder setDeployPolicyUid(String value)
       Unique identifier of the deploy policy.
       
      string deploy_policy_uid = 3;
      Parameters:
      value - The deployPolicyUid to set.
      Returns:
      This builder for chaining.
    • clearDeployPolicyUid

      public DeployPolicyNotificationEvent.Builder clearDeployPolicyUid()
       Unique identifier of the deploy policy.
       
      string deploy_policy_uid = 3;
      Returns:
      This builder for chaining.
    • setDeployPolicyUidBytes

      public DeployPolicyNotificationEvent.Builder setDeployPolicyUidBytes(com.google.protobuf.ByteString value)
       Unique identifier of the deploy policy.
       
      string deploy_policy_uid = 3;
      Parameters:
      value - The bytes for deployPolicyUid to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Type of this notification, e.g. for a Pub/Sub failure.
       
      .google.cloud.deploy.v1.Type type = 4;
      Specified by:
      getTypeValue in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public DeployPolicyNotificationEvent.Builder setTypeValue(int value)
       Type of this notification, e.g. for a Pub/Sub failure.
       
      .google.cloud.deploy.v1.Type type = 4;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Type getType()
       Type of this notification, e.g. for a Pub/Sub failure.
       
      .google.cloud.deploy.v1.Type type = 4;
      Specified by:
      getType in interface DeployPolicyNotificationEventOrBuilder
      Returns:
      The type.
    • setType

       Type of this notification, e.g. for a Pub/Sub failure.
       
      .google.cloud.deploy.v1.Type type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Type of this notification, e.g. for a Pub/Sub failure.
       
      .google.cloud.deploy.v1.Type type = 4;
      Returns:
      This builder for chaining.