Package com.google.cloud.iot.v1
Class EventNotificationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
- com.google.cloud.iot.v1.EventNotificationConfig.Builder
-
- All Implemented Interfaces:
EventNotificationConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- EventNotificationConfig
public static final class EventNotificationConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder> implements EventNotificationConfigOrBuilder
The configuration for forwarding telemetry events.
Protobuf typegoogle.cloud.iot.v1.EventNotificationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventNotificationConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EventNotificationConfig
build()
EventNotificationConfig
buildPartial()
EventNotificationConfig.Builder
clear()
EventNotificationConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EventNotificationConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EventNotificationConfig.Builder
clearPubsubTopicName()
A Cloud Pub/Sub topic name.EventNotificationConfig.Builder
clearSubfolderMatches()
If the subfolder name matches this string exactly, this configuration will be used.EventNotificationConfig.Builder
clone()
EventNotificationConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPubsubTopicName()
A Cloud Pub/Sub topic name.com.google.protobuf.ByteString
getPubsubTopicNameBytes()
A Cloud Pub/Sub topic name.String
getSubfolderMatches()
If the subfolder name matches this string exactly, this configuration will be used.com.google.protobuf.ByteString
getSubfolderMatchesBytes()
If the subfolder name matches this string exactly, this configuration will be used.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EventNotificationConfig.Builder
mergeFrom(EventNotificationConfig other)
EventNotificationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EventNotificationConfig.Builder
mergeFrom(com.google.protobuf.Message other)
EventNotificationConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EventNotificationConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EventNotificationConfig.Builder
setPubsubTopicName(String value)
A Cloud Pub/Sub topic name.EventNotificationConfig.Builder
setPubsubTopicNameBytes(com.google.protobuf.ByteString value)
A Cloud Pub/Sub topic name.EventNotificationConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EventNotificationConfig.Builder
setSubfolderMatches(String value)
If the subfolder name matches this string exactly, this configuration will be used.EventNotificationConfig.Builder
setSubfolderMatchesBytes(com.google.protobuf.ByteString value)
If the subfolder name matches this string exactly, this configuration will be used.EventNotificationConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
clear
public EventNotificationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
getDefaultInstanceForType
public EventNotificationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventNotificationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventNotificationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventNotificationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
setField
public EventNotificationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
clearField
public EventNotificationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
clearOneof
public EventNotificationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
setRepeatedField
public EventNotificationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
addRepeatedField
public EventNotificationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
mergeFrom
public EventNotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventNotificationConfig.Builder>
-
mergeFrom
public EventNotificationConfig.Builder mergeFrom(EventNotificationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
mergeFrom
public EventNotificationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventNotificationConfig.Builder>
- Throws:
IOException
-
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;
- Specified by:
getSubfolderMatches
in interfaceEventNotificationConfigOrBuilder
- Returns:
- The subfolderMatches.
-
getSubfolderMatchesBytes
public com.google.protobuf.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;
- Specified by:
getSubfolderMatchesBytes
in interfaceEventNotificationConfigOrBuilder
- Returns:
- The bytes for subfolderMatches.
-
setSubfolderMatches
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;
- Parameters:
value
- The subfolderMatches to set.- Returns:
- 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:
- This builder for chaining.
-
setSubfolderMatchesBytes
public EventNotificationConfig.Builder setSubfolderMatchesBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for subfolderMatches to set.- Returns:
- This builder for chaining.
-
getPubsubTopicName
public String getPubsubTopicName()
A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/deviceEvents`.
string pubsub_topic_name = 1;
- Specified by:
getPubsubTopicName
in interfaceEventNotificationConfigOrBuilder
- Returns:
- The pubsubTopicName.
-
getPubsubTopicNameBytes
public com.google.protobuf.ByteString getPubsubTopicNameBytes()
A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/deviceEvents`.
string pubsub_topic_name = 1;
- Specified by:
getPubsubTopicNameBytes
in interfaceEventNotificationConfigOrBuilder
- Returns:
- The bytes for pubsubTopicName.
-
setPubsubTopicName
public EventNotificationConfig.Builder setPubsubTopicName(String value)
A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/deviceEvents`.
string pubsub_topic_name = 1;
- Parameters:
value
- The pubsubTopicName to set.- Returns:
- This builder for chaining.
-
clearPubsubTopicName
public EventNotificationConfig.Builder clearPubsubTopicName()
A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/deviceEvents`.
string pubsub_topic_name = 1;
- Returns:
- This builder for chaining.
-
setPubsubTopicNameBytes
public EventNotificationConfig.Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value)
A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/deviceEvents`.
string pubsub_topic_name = 1;
- Parameters:
value
- The bytes for pubsubTopicName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventNotificationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
mergeUnknownFields
public final EventNotificationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventNotificationConfig.Builder>
-
-