public static final class StateNotificationConfig.Builder extends GeneratedMessageV3.Builder<StateNotificationConfig.Builder> implements StateNotificationConfigOrBuilder
The configuration for notification of new states received from the device.
Protobuf type google.cloud.iot.v1.StateNotificationConfig
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StateNotificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StateNotificationConfig build()
Returns
buildPartial()
public StateNotificationConfig buildPartial()
Returns
clear()
public StateNotificationConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StateNotificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StateNotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPubsubTopicName()
public StateNotificationConfig.Builder clearPubsubTopicName()
A Cloud Pub/Sub topic name. For example,
projects/myProject/topics/deviceEvents
.
string pubsub_topic_name = 1;
Returns
clone()
public StateNotificationConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StateNotificationConfig 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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StateNotificationConfig other)
public StateNotificationConfig.Builder mergeFrom(StateNotificationConfig other)
Parameter
Returns
public StateNotificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StateNotificationConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StateNotificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public StateNotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPubsubTopicName(String value)
public StateNotificationConfig.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 StateNotificationConfig.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 StateNotificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StateNotificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides