Class MqttConfig (2.30.0)

public final class MqttConfig extends GeneratedMessageV3 implements MqttConfigOrBuilder

The configuration of MQTT for a device registry.

Protobuf type google.cloud.iot.v1.MqttConfig

Implements

MqttConfigOrBuilder

Static Fields

MQTT_ENABLED_STATE_FIELD_NUMBER

public static final int MQTT_ENABLED_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MqttConfig getDefaultInstance()
Returns
TypeDescription
MqttConfig

getDescriptor()

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

newBuilder()

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

newBuilder(MqttConfig prototype)

public static MqttConfig.Builder newBuilder(MqttConfig prototype)
Parameter
NameDescription
prototypeMqttConfig
Returns
TypeDescription
MqttConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MqttConfig getDefaultInstanceForType()
Returns
TypeDescription
MqttConfig

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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for mqttEnabledState.

getParserForType()

public Parser<MqttConfig> getParserForType()
Returns
TypeDescription
Parser<MqttConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 MqttConfig.Builder newBuilderForType()
Returns
TypeDescription
MqttConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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