Class EventNotificationConfig.Builder (0.14.1)

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

The configuration for forwarding telemetry events.

Protobuf type google.events.cloud.iot.v1.EventNotificationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventNotificationConfig build()
Returns
TypeDescription
EventNotificationConfig

buildPartial()

public EventNotificationConfig buildPartial()
Returns
TypeDescription
EventNotificationConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public EventNotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EventNotificationConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EventNotificationConfig getDefaultInstanceForType()
Returns
TypeDescription
EventNotificationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPubsubTopicName()

public String getPubsubTopicName()

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

string pubsub_topic_name = 1;

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

The bytes for subfolderMatches.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EventNotificationConfig other)

public EventNotificationConfig.Builder mergeFrom(EventNotificationConfig other)
Parameter
NameDescription
otherEventNotificationConfig
Returns
TypeDescription
EventNotificationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public EventNotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The pubsubTopicName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pubsubTopicName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subfolderMatches to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subfolderMatches to set.

Returns
TypeDescription
EventNotificationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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