Send feedback
Class EventNotificationConfig.Builder (2.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.6.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]