Class DeployPolicyNotificationEvent.Builder (1.52.0)

public static final class DeployPolicyNotificationEvent.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeployPolicyNotificationEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

build()

public DeployPolicyNotificationEvent build()
Returns
Type Description
DeployPolicyNotificationEvent

buildPartial()

public DeployPolicyNotificationEvent buildPartial()
Returns
Type Description
DeployPolicyNotificationEvent

clear()

public DeployPolicyNotificationEvent.Builder clear()
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

clearDeployPolicy()

public DeployPolicyNotificationEvent.Builder clearDeployPolicy()

The name of the DeployPolicy.

string deploy_policy = 2;

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

clearDeployPolicyUid()

public DeployPolicyNotificationEvent.Builder clearDeployPolicyUid()

Unique identifier of the deploy policy.

string deploy_policy_uid = 3;

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeployPolicyNotificationEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

clearMessage()

public DeployPolicyNotificationEvent.Builder clearMessage()

Debug message for when a deploy policy fails to send a pub/sub notification.

string message = 1;

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeployPolicyNotificationEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

clearType()

public DeployPolicyNotificationEvent.Builder clearType()

Type of this notification, e.g. for a Pub/Sub failure.

.google.cloud.deploy.v1.Type type = 4;

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

clone()

public DeployPolicyNotificationEvent.Builder clone()
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

getDefaultInstanceForType()

public DeployPolicyNotificationEvent getDefaultInstanceForType()
Returns
Type Description
DeployPolicyNotificationEvent

getDeployPolicy()

public String getDeployPolicy()

The name of the DeployPolicy.

string deploy_policy = 2;

Returns
Type Description
String

The deployPolicy.

getDeployPolicyBytes()

public ByteString getDeployPolicyBytes()

The name of the DeployPolicy.

string deploy_policy = 2;

Returns
Type Description
ByteString

The bytes for deployPolicy.

getDeployPolicyUid()

public String getDeployPolicyUid()

Unique identifier of the deploy policy.

string deploy_policy_uid = 3;

Returns
Type Description
String

The deployPolicyUid.

getDeployPolicyUidBytes()

public ByteString getDeployPolicyUidBytes()

Unique identifier of the deploy policy.

string deploy_policy_uid = 3;

Returns
Type Description
ByteString

The bytes for deployPolicyUid.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessage()

public String getMessage()

Debug message for when a deploy policy fails to send a pub/sub notification.

string message = 1;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Debug message for when a deploy policy fails to send a pub/sub notification.

string message = 1;

Returns
Type Description
ByteString

The bytes for message.

getType()

public Type getType()

Type of this notification, e.g. for a Pub/Sub failure.

.google.cloud.deploy.v1.Type type = 4;

Returns
Type Description
Type

The type.

getTypeValue()

public int getTypeValue()

Type of this notification, e.g. for a Pub/Sub failure.

.google.cloud.deploy.v1.Type type = 4;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeployPolicyNotificationEvent other)

public DeployPolicyNotificationEvent.Builder mergeFrom(DeployPolicyNotificationEvent other)
Parameter
Name Description
other DeployPolicyNotificationEvent
Returns
Type Description
DeployPolicyNotificationEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeployPolicyNotificationEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeployPolicyNotificationEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeployPolicyNotificationEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

setDeployPolicy(String value)

public DeployPolicyNotificationEvent.Builder setDeployPolicy(String value)

The name of the DeployPolicy.

string deploy_policy = 2;

Parameter
Name Description
value String

The deployPolicy to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setDeployPolicyBytes(ByteString value)

public DeployPolicyNotificationEvent.Builder setDeployPolicyBytes(ByteString value)

The name of the DeployPolicy.

string deploy_policy = 2;

Parameter
Name Description
value ByteString

The bytes for deployPolicy to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setDeployPolicyUid(String value)

public DeployPolicyNotificationEvent.Builder setDeployPolicyUid(String value)

Unique identifier of the deploy policy.

string deploy_policy_uid = 3;

Parameter
Name Description
value String

The deployPolicyUid to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setDeployPolicyUidBytes(ByteString value)

public DeployPolicyNotificationEvent.Builder setDeployPolicyUidBytes(ByteString value)

Unique identifier of the deploy policy.

string deploy_policy_uid = 3;

Parameter
Name Description
value ByteString

The bytes for deployPolicyUid to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeployPolicyNotificationEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

setMessage(String value)

public DeployPolicyNotificationEvent.Builder setMessage(String value)

Debug message for when a deploy policy fails to send a pub/sub notification.

string message = 1;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public DeployPolicyNotificationEvent.Builder setMessageBytes(ByteString value)

Debug message for when a deploy policy fails to send a pub/sub notification.

string message = 1;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeployPolicyNotificationEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides

setType(Type value)

public DeployPolicyNotificationEvent.Builder setType(Type value)

Type of this notification, e.g. for a Pub/Sub failure.

.google.cloud.deploy.v1.Type type = 4;

Parameter
Name Description
value Type

The type to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setTypeValue(int value)

public DeployPolicyNotificationEvent.Builder setTypeValue(int value)

Type of this notification, e.g. for a Pub/Sub failure.

.google.cloud.deploy.v1.Type type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
DeployPolicyNotificationEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeployPolicyNotificationEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployPolicyNotificationEvent.Builder
Overrides