public static final class MqttConfig.Builder extends GeneratedMessageV3.Builder<MqttConfig.Builder> implements MqttConfigOrBuilder
The configuration of MQTT for a device registry.
Protobuf type google.cloud.iot.v1.MqttConfig
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 MqttConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MqttConfig build()
Returns
buildPartial()
public MqttConfig buildPartial()
Returns
clear()
public MqttConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MqttConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMqttEnabledState()
public MqttConfig.Builder clearMqttEnabledState()
If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
connections to this registry will fail.
.google.cloud.iot.v1.MqttState mqtt_enabled_state = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MqttConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MqttConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MqttConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMqttEnabledState()
public MqttState getMqttEnabledState()
If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
connections to this registry will fail.
.google.cloud.iot.v1.MqttState mqtt_enabled_state = 1;
Returns
Type | Description |
MqttState | The mqttEnabledState.
|
getMqttEnabledStateValue()
public int getMqttEnabledStateValue()
If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
connections to this registry will fail.
.google.cloud.iot.v1.MqttState mqtt_enabled_state = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for mqttEnabledState.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MqttConfig other)
public MqttConfig.Builder mergeFrom(MqttConfig other)
Parameter
Returns
public MqttConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MqttConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MqttConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public MqttConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMqttEnabledState(MqttState value)
public MqttConfig.Builder setMqttEnabledState(MqttState value)
If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
connections to this registry will fail.
.google.cloud.iot.v1.MqttState mqtt_enabled_state = 1;
Parameter
Name | Description |
value | MqttState
The mqttEnabledState to set.
|
Returns
setMqttEnabledStateValue(int value)
public MqttConfig.Builder setMqttEnabledStateValue(int value)
If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
connections to this registry will fail.
.google.cloud.iot.v1.MqttState mqtt_enabled_state = 1;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for mqttEnabledState to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MqttConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MqttConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides