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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DeviceEventData.BuilderImplements
DeviceEventDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceEventData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
build()
public DeviceEventData build()
Returns | |
---|---|
Type | Description |
DeviceEventData |
buildPartial()
public DeviceEventData buildPartial()
Returns | |
---|---|
Type | Description |
DeviceEventData |
clear()
public DeviceEventData.Builder clear()
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
clearField(Descriptors.FieldDescriptor field)
public DeviceEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
clearPayload()
public DeviceEventData.Builder clearPayload()
Optional. The Device event payload. Unset for deletion events.
optional .google.events.cloud.iot.v1.Device payload = 1;
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
clone()
public DeviceEventData.Builder clone()
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
getDefaultInstanceForType()
public DeviceEventData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DeviceEventData |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPayload()
public Device getPayload()
Optional. The Device event payload. Unset for deletion events.
optional .google.events.cloud.iot.v1.Device payload = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DeviceOrBuilder |
hasPayload()
public boolean hasPayload()
Optional. The Device event payload. Unset for deletion events.
optional .google.events.cloud.iot.v1.Device payload = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the payload field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DeviceEventData other)
public DeviceEventData.Builder mergeFrom(DeviceEventData other)
Parameter | |
---|---|
Name | Description |
other |
DeviceEventData |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeviceEventData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DeviceEventData.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
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 | |
---|---|
Name | Description |
value |
Device |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
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 | |
---|---|
Name | Description |
value |
Device |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Device.Builder |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceEventData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeviceEventData.Builder |