Class EventNotificationConfig (2.28.0)

public final class EventNotificationConfig extends GeneratedMessageV3 implements EventNotificationConfigOrBuilder

The configuration for forwarding telemetry events.

Protobuf type google.cloud.iot.v1.EventNotificationConfig

Static Fields

PUBSUB_TOPIC_NAME_FIELD_NUMBER

public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SUBFOLDER_MATCHES_FIELD_NUMBER

public static final int SUBFOLDER_MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EventNotificationConfig getDefaultInstance()
Returns
TypeDescription
EventNotificationConfig

getDescriptor()

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

newBuilder()

public static EventNotificationConfig.Builder newBuilder()
Returns
TypeDescription
EventNotificationConfig.Builder

newBuilder(EventNotificationConfig prototype)

public static EventNotificationConfig.Builder newBuilder(EventNotificationConfig prototype)
Parameter
NameDescription
prototypeEventNotificationConfig
Returns
TypeDescription
EventNotificationConfig.Builder

parseDelimitedFrom(InputStream input)

public static EventNotificationConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EventNotificationConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventNotificationConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventNotificationConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EventNotificationConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EventNotificationConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventNotificationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventNotificationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EventNotificationConfig> parser()
Returns
TypeDescription
Parser<EventNotificationConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public EventNotificationConfig getDefaultInstanceForType()
Returns
TypeDescription
EventNotificationConfig

getParserForType()

public Parser<EventNotificationConfig> getParserForType()
Returns
TypeDescription
Parser<EventNotificationConfig>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EventNotificationConfig.Builder newBuilderForType()
Returns
TypeDescription
EventNotificationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventNotificationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EventNotificationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EventNotificationConfig.Builder toBuilder()
Returns
TypeDescription
EventNotificationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException