Send feedback
Class MqttConfig.Builder (2.1.7)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.7 keyboard_arrow_down
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
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
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-27 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-27 UTC."],[],[]]