public static final class DeviceState.Builder extends GeneratedMessageV3.Builder<DeviceState.Builder> implements DeviceStateOrBuilder
The device state, as reported by the device.
Protobuf type google.events.cloud.iot.v1.DeviceState
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DeviceState.BuilderImplements
DeviceStateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
build()
public DeviceState build()
Returns | |
---|---|
Type | Description |
DeviceState |
buildPartial()
public DeviceState buildPartial()
Returns | |
---|---|
Type | Description |
DeviceState |
clear()
public DeviceState.Builder clear()
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
clearBinaryData()
public DeviceState.Builder clearBinaryData()
The device state data.
bytes binary_data = 2;
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DeviceState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
clearUpdateTime()
public DeviceState.Builder clearUpdateTime()
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
clone()
public DeviceState.Builder clone()
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
getBinaryData()
public ByteString getBinaryData()
The device state data.
bytes binary_data = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The binaryData. |
getDefaultInstanceForType()
public DeviceState getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DeviceState |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getUpdateTime()
public Timestamp getUpdateTime()
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasUpdateTime()
public boolean hasUpdateTime()
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DeviceState other)
public DeviceState.Builder mergeFrom(DeviceState other)
Parameter | |
---|---|
Name | Description |
other |
DeviceState |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeviceState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DeviceState.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
mergeUpdateTime(Timestamp value)
public DeviceState.Builder mergeUpdateTime(Timestamp value)
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
setBinaryData(ByteString value)
public DeviceState.Builder setBinaryData(ByteString value)
The device state data.
bytes binary_data = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The binaryData to set. |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
setUpdateTime(Timestamp value)
public DeviceState.Builder setUpdateTime(Timestamp value)
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public DeviceState.Builder setUpdateTime(Timestamp.Builder builderForValue)
[Output only] The time at which this state version was updated in Cloud IoT Core.
.google.protobuf.Timestamp update_time = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
DeviceState.Builder |