Class CustomTargetTypeNotificationEvent.Builder (1.83.0)

public static final class CustomTargetTypeNotificationEvent.Builder extends GeneratedMessage.Builder<CustomTargetTypeNotificationEvent.Builder> implements CustomTargetTypeNotificationEventOrBuilder

Payload proto for "clouddeploy.googleapis.com/customtargettype_notification" Platform Log event that describes the failure to send a custom target type status change Pub/Sub notification.

Protobuf type google.cloud.deploy.v1.CustomTargetTypeNotificationEvent

Static Methods

getDescriptor()

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

Methods

build()

public CustomTargetTypeNotificationEvent build()
Returns
Type Description
CustomTargetTypeNotificationEvent

buildPartial()

public CustomTargetTypeNotificationEvent buildPartial()
Returns
Type Description
CustomTargetTypeNotificationEvent

clear()

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

clearCustomTargetType()

public CustomTargetTypeNotificationEvent.Builder clearCustomTargetType()

The name of the CustomTargetType.

string custom_target_type = 2;

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

clearCustomTargetTypeUid()

public CustomTargetTypeNotificationEvent.Builder clearCustomTargetTypeUid()

Unique identifier of the CustomTargetType.

string custom_target_type_uid = 4;

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

clearMessage()

public CustomTargetTypeNotificationEvent.Builder clearMessage()

Debug message for when a notification fails to send.

string message = 1;

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

clearType()

public CustomTargetTypeNotificationEvent.Builder clearType()

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

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

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

getCustomTargetType()

public String getCustomTargetType()

The name of the CustomTargetType.

string custom_target_type = 2;

Returns
Type Description
String

The customTargetType.

getCustomTargetTypeBytes()

public ByteString getCustomTargetTypeBytes()

The name of the CustomTargetType.

string custom_target_type = 2;

Returns
Type Description
ByteString

The bytes for customTargetType.

getCustomTargetTypeUid()

public String getCustomTargetTypeUid()

Unique identifier of the CustomTargetType.

string custom_target_type_uid = 4;

Returns
Type Description
String

The customTargetTypeUid.

getCustomTargetTypeUidBytes()

public ByteString getCustomTargetTypeUidBytes()

Unique identifier of the CustomTargetType.

string custom_target_type_uid = 4;

Returns
Type Description
ByteString

The bytes for customTargetTypeUid.

getDefaultInstanceForType()

public CustomTargetTypeNotificationEvent getDefaultInstanceForType()
Returns
Type Description
CustomTargetTypeNotificationEvent

getDescriptorForType()

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

getMessage()

public String getMessage()

Debug message for when a notification fails to send.

string message = 1;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Debug message for when a notification fails to send.

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 = 3;

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 = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomTargetTypeNotificationEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCustomTargetType(String value)

public CustomTargetTypeNotificationEvent.Builder setCustomTargetType(String value)

The name of the CustomTargetType.

string custom_target_type = 2;

Parameter
Name Description
value String

The customTargetType to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setCustomTargetTypeBytes(ByteString value)

public CustomTargetTypeNotificationEvent.Builder setCustomTargetTypeBytes(ByteString value)

The name of the CustomTargetType.

string custom_target_type = 2;

Parameter
Name Description
value ByteString

The bytes for customTargetType to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setCustomTargetTypeUid(String value)

public CustomTargetTypeNotificationEvent.Builder setCustomTargetTypeUid(String value)

Unique identifier of the CustomTargetType.

string custom_target_type_uid = 4;

Parameter
Name Description
value String

The customTargetTypeUid to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setCustomTargetTypeUidBytes(ByteString value)

public CustomTargetTypeNotificationEvent.Builder setCustomTargetTypeUidBytes(ByteString value)

Unique identifier of the CustomTargetType.

string custom_target_type_uid = 4;

Parameter
Name Description
value ByteString

The bytes for customTargetTypeUid to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setMessage(String value)

public CustomTargetTypeNotificationEvent.Builder setMessage(String value)

Debug message for when a notification fails to send.

string message = 1;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public CustomTargetTypeNotificationEvent.Builder setMessageBytes(ByteString value)

Debug message for when a notification fails to send.

string message = 1;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setType(Type value)

public CustomTargetTypeNotificationEvent.Builder setType(Type value)

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

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

Parameter
Name Description
value Type

The type to set.

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.

setTypeValue(int value)

public CustomTargetTypeNotificationEvent.Builder setTypeValue(int value)

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

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

Parameter
Name Description
value int

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

Returns
Type Description
CustomTargetTypeNotificationEvent.Builder

This builder for chaining.