Class TargetNotificationEvent.Builder (1.37.0)

public static final class TargetNotificationEvent.Builder extends GeneratedMessageV3.Builder<TargetNotificationEvent.Builder> implements TargetNotificationEventOrBuilder

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

Protobuf type google.cloud.deploy.v1.TargetNotificationEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TargetNotificationEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

build()

public TargetNotificationEvent build()
Returns
TypeDescription
TargetNotificationEvent

buildPartial()

public TargetNotificationEvent buildPartial()
Returns
TypeDescription
TargetNotificationEvent

clear()

public TargetNotificationEvent.Builder clear()
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TargetNotificationEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

clearMessage()

public TargetNotificationEvent.Builder clearMessage()

Debug message for when a notification fails to send.

string message = 1;

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetNotificationEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

clearTarget()

public TargetNotificationEvent.Builder clearTarget()

The name of the Target.

string target = 2;

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

clearType()

public TargetNotificationEvent.Builder clearType()

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

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

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

clone()

public TargetNotificationEvent.Builder clone()
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

getDefaultInstanceForType()

public TargetNotificationEvent getDefaultInstanceForType()
Returns
TypeDescription
TargetNotificationEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

Debug message for when a notification fails to send.

string message = 1;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Debug message for when a notification fails to send.

string message = 1;

Returns
TypeDescription
ByteString

The bytes for message.

getTarget()

public String getTarget()

The name of the Target.

string target = 2;

Returns
TypeDescription
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

The name of the Target.

string target = 2;

Returns
TypeDescription
ByteString

The bytes for target.

getType()

public Type getType()

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

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetNotificationEvent other)

public TargetNotificationEvent.Builder mergeFrom(TargetNotificationEvent other)
Parameter
NameDescription
otherTargetNotificationEvent
Returns
TypeDescription
TargetNotificationEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TargetNotificationEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TargetNotificationEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetNotificationEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TargetNotificationEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

setMessage(String value)

public TargetNotificationEvent.Builder setMessage(String value)

Debug message for when a notification fails to send.

string message = 1;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public TargetNotificationEvent.Builder setMessageBytes(ByteString value)

Debug message for when a notification fails to send.

string message = 1;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

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

public TargetNotificationEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides

setTarget(String value)

public TargetNotificationEvent.Builder setTarget(String value)

The name of the Target.

string target = 2;

Parameter
NameDescription
valueString

The target to set.

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public TargetNotificationEvent.Builder setTargetBytes(ByteString value)

The name of the Target.

string target = 2;

Parameter
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

setType(Type value)

public TargetNotificationEvent.Builder setType(Type value)

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

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

Parameter
NameDescription
valueType

The type to set.

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

setTypeValue(int value)

public TargetNotificationEvent.Builder setTypeValue(int value)

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

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TargetNotificationEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TargetNotificationEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetNotificationEvent.Builder
Overrides