Class EventNotificationConfig.Builder (2.52.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public EventNotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public EventNotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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