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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EventNotificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EventNotificationConfig build()
Returns
buildPartial()
public EventNotificationConfig buildPartial()
Returns
clear()
public EventNotificationConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public EventNotificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EventNotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPubsubTopicName()
public EventNotificationConfig.Builder clearPubsubTopicName()
A Cloud Pub/Sub topic name. For example,
projects/myProject/topics/deviceEvents
.
string pubsub_topic_name = 1;
Returns
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
clone()
public EventNotificationConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public EventNotificationConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(EventNotificationConfig other)
public EventNotificationConfig.Builder mergeFrom(EventNotificationConfig other)
Parameter
Returns
public EventNotificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EventNotificationConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EventNotificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public EventNotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EventNotificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final EventNotificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides