Class EventNotificationConfig.Builder (2.83.0)

public static final class EventNotificationConfig.Builder extends GeneratedMessage.Builder<EventNotificationConfig.Builder> implements EventNotificationConfigOrBuilder

The configuration for forwarding telemetry events.

Protobuf type google.cloud.iot.v1.EventNotificationConfig

Static Methods

getDescriptor()

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

Methods

build()

public EventNotificationConfig build()
Returns
Type Description
EventNotificationConfig

buildPartial()

public EventNotificationConfig buildPartial()
Returns
Type Description
EventNotificationConfig

clear()

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

clearPubsubTopicName()

public EventNotificationConfig.Builder clearPubsubTopicName()

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

string pubsub_topic_name = 1;

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.

clearSubfolderMatches()

public EventNotificationConfig.Builder clearSubfolderMatches()

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

string subfolder_matches = 2;

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public EventNotificationConfig getDefaultInstanceForType()
Returns
Type Description
EventNotificationConfig

getDescriptorForType()

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

getPubsubTopicName()

public String getPubsubTopicName()

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

string pubsub_topic_name = 1;

Returns
Type Description
String

The pubsubTopicName.

getPubsubTopicNameBytes()

public ByteString getPubsubTopicNameBytes()

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

string pubsub_topic_name = 1;

Returns
Type Description
ByteString

The bytes for pubsubTopicName.

getSubfolderMatches()

public String getSubfolderMatches()

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

string subfolder_matches = 2;

Returns
Type Description
String

The subfolderMatches.

getSubfolderMatchesBytes()

public ByteString getSubfolderMatchesBytes()

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

string subfolder_matches = 2;

Returns
Type Description
ByteString

The bytes for subfolderMatches.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventNotificationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPubsubTopicName(String value)

public EventNotificationConfig.Builder setPubsubTopicName(String value)

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

string pubsub_topic_name = 1;

Parameter
Name Description
value String

The pubsubTopicName to set.

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.

setPubsubTopicNameBytes(ByteString value)

public EventNotificationConfig.Builder setPubsubTopicNameBytes(ByteString value)

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

string pubsub_topic_name = 1;

Parameter
Name Description
value ByteString

The bytes for pubsubTopicName to set.

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.

setSubfolderMatches(String value)

public EventNotificationConfig.Builder setSubfolderMatches(String value)

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

string subfolder_matches = 2;

Parameter
Name Description
value String

The subfolderMatches to set.

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.

setSubfolderMatchesBytes(ByteString value)

public EventNotificationConfig.Builder setSubfolderMatchesBytes(ByteString value)

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

string subfolder_matches = 2;

Parameter
Name Description
value ByteString

The bytes for subfolderMatches to set.

Returns
Type Description
EventNotificationConfig.Builder

This builder for chaining.