Class ListDeviceStatesResponse.Builder (2.42.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.iot.v1.DeviceState>
Returns
Type Description
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
Name Description
value DeviceState
Returns
Type Description
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
Name Description
builderForValue DeviceState.Builder
Returns
Type Description
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
Name Description
index int
value DeviceState
Returns
Type Description
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
Name Description
index int
builderForValue DeviceState.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
DeviceState.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDeviceStatesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

build()

public ListDeviceStatesResponse build()
Returns
Type Description
ListDeviceStatesResponse

buildPartial()

public ListDeviceStatesResponse buildPartial()
Returns
Type Description
ListDeviceStatesResponse

clear()

public ListDeviceStatesResponse.Builder clear()
Returns
Type Description
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
Type Description
ListDeviceStatesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDeviceStatesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDeviceStatesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

clone()

public ListDeviceStatesResponse.Builder clone()
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListDeviceStatesResponse getDefaultInstanceForType()
Returns
Type Description
ListDeviceStatesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.iot.v1.DeviceStateOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDeviceStatesResponse other)

public ListDeviceStatesResponse.Builder mergeFrom(ListDeviceStatesResponse other)
Parameter
Name Description
other ListDeviceStatesResponse
Returns
Type Description
ListDeviceStatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDeviceStatesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListDeviceStatesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDeviceStatesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value DeviceState
Returns
Type Description
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
Name Description
index int
builderForValue DeviceState.Builder
Returns
Type Description
ListDeviceStatesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDeviceStatesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

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

public ListDeviceStatesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDeviceStatesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDeviceStatesResponse.Builder
Overrides