Class DeviceEventData.Builder (0.14.1)

public static final class DeviceEventData.Builder extends GeneratedMessageV3.Builder<DeviceEventData.Builder> implements DeviceEventDataOrBuilder

The data within all Cloud IoT Device events.

Protobuf type google.events.cloud.iot.v1.DeviceEventData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceEventData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceEventData.Builder
Overrides

build()

public DeviceEventData build()
Returns
TypeDescription
DeviceEventData

buildPartial()

public DeviceEventData buildPartial()
Returns
TypeDescription
DeviceEventData

clear()

public DeviceEventData.Builder clear()
Returns
TypeDescription
DeviceEventData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeviceEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeviceEventData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeviceEventData.Builder
Overrides

clearPayload()

public DeviceEventData.Builder clearPayload()

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Returns
TypeDescription
DeviceEventData.Builder

clone()

public DeviceEventData.Builder clone()
Returns
TypeDescription
DeviceEventData.Builder
Overrides

getDefaultInstanceForType()

public DeviceEventData getDefaultInstanceForType()
Returns
TypeDescription
DeviceEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPayload()

public Device getPayload()

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Returns
TypeDescription
Device

The payload.

getPayloadBuilder()

public Device.Builder getPayloadBuilder()

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Returns
TypeDescription
Device.Builder

getPayloadOrBuilder()

public DeviceOrBuilder getPayloadOrBuilder()

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Returns
TypeDescription
DeviceOrBuilder

hasPayload()

public boolean hasPayload()

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Returns
TypeDescription
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeviceEventData other)

public DeviceEventData.Builder mergeFrom(DeviceEventData other)
Parameter
NameDescription
otherDeviceEventData
Returns
TypeDescription
DeviceEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceEventData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceEventData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeviceEventData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeviceEventData.Builder
Overrides

mergePayload(Device value)

public DeviceEventData.Builder mergePayload(Device value)

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Parameter
NameDescription
valueDevice
Returns
TypeDescription
DeviceEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceEventData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceEventData.Builder
Overrides

setPayload(Device value)

public DeviceEventData.Builder setPayload(Device value)

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Parameter
NameDescription
valueDevice
Returns
TypeDescription
DeviceEventData.Builder

setPayload(Device.Builder builderForValue)

public DeviceEventData.Builder setPayload(Device.Builder builderForValue)

Optional. The Device event payload. Unset for deletion events.

optional .google.events.cloud.iot.v1.Device payload = 1;

Parameter
NameDescription
builderForValueDevice.Builder
Returns
TypeDescription
DeviceEventData.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeviceEventData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeviceEventData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceEventData.Builder
Overrides