Class ListDeviceStatesResponse.Builder (2.19.0)

public static final class ListDeviceStatesResponse.Builder extends GeneratedMessageV3.Builder<ListDeviceStatesResponse.Builder> implements ListDeviceStatesResponseOrBuilder

Response for ListDeviceStates.

Protobuf type google.cloud.iot.v1.ListDeviceStatesResponse

Static Methods

getDescriptor()

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

Methods

addAllDeviceStates(Iterable<? extends DeviceState> values)

public ListDeviceStatesResponse.Builder addAllDeviceStates(Iterable<? extends DeviceState> values)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.iot.v1.DeviceState>
Returns
TypeDescription
ListDeviceStatesResponse.Builder

addDeviceStates(DeviceState value)

public ListDeviceStatesResponse.Builder addDeviceStates(DeviceState value)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
valueDeviceState
Returns
TypeDescription
ListDeviceStatesResponse.Builder

addDeviceStates(DeviceState.Builder builderForValue)

public ListDeviceStatesResponse.Builder addDeviceStates(DeviceState.Builder builderForValue)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
builderForValueDeviceState.Builder
Returns
TypeDescription
ListDeviceStatesResponse.Builder

addDeviceStates(int index, DeviceState value)

public ListDeviceStatesResponse.Builder addDeviceStates(int index, DeviceState value)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameters
NameDescription
indexint
valueDeviceState
Returns
TypeDescription
ListDeviceStatesResponse.Builder

addDeviceStates(int index, DeviceState.Builder builderForValue)

public ListDeviceStatesResponse.Builder addDeviceStates(int index, DeviceState.Builder builderForValue)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameters
NameDescription
indexint
builderForValueDeviceState.Builder
Returns
TypeDescription
ListDeviceStatesResponse.Builder

addDeviceStatesBuilder()

public DeviceState.Builder addDeviceStatesBuilder()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
DeviceState.Builder

addDeviceStatesBuilder(int index)

public DeviceState.Builder addDeviceStatesBuilder(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceState.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDeviceStatesResponse build()
Returns
TypeDescription
ListDeviceStatesResponse

buildPartial()

public ListDeviceStatesResponse buildPartial()
Returns
TypeDescription
ListDeviceStatesResponse

clear()

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

clearDeviceStates()

public ListDeviceStatesResponse.Builder clearDeviceStates()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
ListDeviceStatesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListDeviceStatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDeviceStatesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceStates(int index)

public DeviceState getDeviceStates(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceState

getDeviceStatesBuilder(int index)

public DeviceState.Builder getDeviceStatesBuilder(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceState.Builder

getDeviceStatesBuilderList()

public List<DeviceState.Builder> getDeviceStatesBuilderList()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
List<Builder>

getDeviceStatesCount()

public int getDeviceStatesCount()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
int

getDeviceStatesList()

public List<DeviceState> getDeviceStatesList()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
List<DeviceState>

getDeviceStatesOrBuilder(int index)

public DeviceStateOrBuilder getDeviceStatesOrBuilder(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceStateOrBuilder

getDeviceStatesOrBuilderList()

public List<? extends DeviceStateOrBuilder> getDeviceStatesOrBuilderList()

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Returns
TypeDescription
List<? extends com.google.cloud.iot.v1.DeviceStateOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListDeviceStatesResponse other)

public ListDeviceStatesResponse.Builder mergeFrom(ListDeviceStatesResponse other)
Parameter
NameDescription
otherListDeviceStatesResponse
Returns
TypeDescription
ListDeviceStatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDeviceStates(int index)

public ListDeviceStatesResponse.Builder removeDeviceStates(int index)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListDeviceStatesResponse.Builder

setDeviceStates(int index, DeviceState value)

public ListDeviceStatesResponse.Builder setDeviceStates(int index, DeviceState value)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameters
NameDescription
indexint
valueDeviceState
Returns
TypeDescription
ListDeviceStatesResponse.Builder

setDeviceStates(int index, DeviceState.Builder builderForValue)

public ListDeviceStatesResponse.Builder setDeviceStates(int index, DeviceState.Builder builderForValue)

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

repeated .google.cloud.iot.v1.DeviceState device_states = 1;

Parameters
NameDescription
indexint
builderForValueDeviceState.Builder
Returns
TypeDescription
ListDeviceStatesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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