Package com.google.cloud.iot.v1
Class ListDevicesRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.iot.v1.ListDevicesRequest
-
- All Implemented Interfaces:
ListDevicesRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ListDevicesRequest extends com.google.protobuf.GeneratedMessageV3 implements ListDevicesRequestOrBuilder
Request for `ListDevices`.
Protobuf typegoogle.cloud.iot.v1.ListDevicesRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListDevicesRequest.BuilderRequest for `ListDevices`.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDEVICE_IDS_FIELD_NUMBERstatic intDEVICE_NUM_IDS_FIELD_NUMBERstatic intFIELD_MASK_FIELD_NUMBERstatic intGATEWAY_LIST_OPTIONS_FIELD_NUMBERstatic intPAGE_SIZE_FIELD_NUMBERstatic intPAGE_TOKEN_FIELD_NUMBERstatic intPARENT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ListDevicesRequestgetDefaultInstance()ListDevicesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDeviceIds(int index)A list of device string IDs.com.google.protobuf.ByteStringgetDeviceIdsBytes(int index)A list of device string IDs.intgetDeviceIdsCount()A list of device string IDs.com.google.protobuf.ProtocolStringListgetDeviceIdsList()A list of device string IDs.longgetDeviceNumIds(int index)A list of device numeric IDs.intgetDeviceNumIdsCount()A list of device numeric IDs.List<Long>getDeviceNumIdsList()A list of device numeric IDs.com.google.protobuf.FieldMaskgetFieldMask()The fields of the `Device` resource to be returned in the response.com.google.protobuf.FieldMaskOrBuildergetFieldMaskOrBuilder()The fields of the `Device` resource to be returned in the response.GatewayListOptionsgetGatewayListOptions()Options related to gateways.GatewayListOptionsOrBuildergetGatewayListOptionsOrBuilder()Options related to gateways.intgetPageSize()The maximum number of devices to return in the response.StringgetPageToken()The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.com.google.protobuf.ByteStringgetPageTokenBytes()The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.com.google.protobuf.Parser<ListDevicesRequest>getParserForType()intgetSerializedSize()booleanhasFieldMask()The fields of the `Device` resource to be returned in the response.booleanhasGatewayListOptions()Options related to gateways.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ListDevicesRequest.BuildernewBuilder()static ListDevicesRequest.BuildernewBuilder(ListDevicesRequest prototype)ListDevicesRequest.BuildernewBuilderForType()protected ListDevicesRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ListDevicesRequestparseDelimitedFrom(InputStream input)static ListDevicesRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListDevicesRequestparseFrom(byte[] data)static ListDevicesRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListDevicesRequestparseFrom(com.google.protobuf.ByteString data)static ListDevicesRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListDevicesRequestparseFrom(com.google.protobuf.CodedInputStream input)static ListDevicesRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListDevicesRequestparseFrom(InputStream input)static ListDevicesRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListDevicesRequestparseFrom(ByteBuffer data)static ListDevicesRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ListDevicesRequest>parser()ListDevicesRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICE_NUM_IDS_FIELD_NUMBER
public static final int DEVICE_NUM_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICE_IDS_FIELD_NUMBER
public static final int DEVICE_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIELD_MASK_FIELD_NUMBER
public static final int FIELD_MASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GATEWAY_LIST_OPTIONS_FIELD_NUMBER
public static final int GATEWAY_LIST_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_TOKEN_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getParent
public String getParent()
Required. The device registry path. Required. For example, `projects/my-project/locations/us-central1/registries/my-registry`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceListDevicesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The device registry path. Required. For example, `projects/my-project/locations/us-central1/registries/my-registry`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceListDevicesRequestOrBuilder- Returns:
- The bytes for parent.
-
getDeviceNumIdsList
public List<Long> getDeviceNumIdsList()
A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.
repeated uint64 device_num_ids = 2;- Specified by:
getDeviceNumIdsListin interfaceListDevicesRequestOrBuilder- Returns:
- A list containing the deviceNumIds.
-
getDeviceNumIdsCount
public int getDeviceNumIdsCount()
A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.
repeated uint64 device_num_ids = 2;- Specified by:
getDeviceNumIdsCountin interfaceListDevicesRequestOrBuilder- Returns:
- The count of deviceNumIds.
-
getDeviceNumIds
public long getDeviceNumIds(int index)
A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.
repeated uint64 device_num_ids = 2;- Specified by:
getDeviceNumIdsin interfaceListDevicesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deviceNumIds at the given index.
-
getDeviceIdsList
public com.google.protobuf.ProtocolStringList getDeviceIdsList()
A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000
repeated string device_ids = 3;- Specified by:
getDeviceIdsListin interfaceListDevicesRequestOrBuilder- Returns:
- A list containing the deviceIds.
-
getDeviceIdsCount
public int getDeviceIdsCount()
A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000
repeated string device_ids = 3;- Specified by:
getDeviceIdsCountin interfaceListDevicesRequestOrBuilder- Returns:
- The count of deviceIds.
-
getDeviceIds
public String getDeviceIds(int index)
A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000
repeated string device_ids = 3;- Specified by:
getDeviceIdsin interfaceListDevicesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deviceIds at the given index.
-
getDeviceIdsBytes
public com.google.protobuf.ByteString getDeviceIdsBytes(int index)
A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000
repeated string device_ids = 3;- Specified by:
getDeviceIdsBytesin interfaceListDevicesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deviceIds at the given index.
-
hasFieldMask
public boolean hasFieldMask()
The fields of the `Device` resource to be returned in the response. The fields `id` and `num_id` are always returned, along with any other fields specified in snake_case format, for example: `last_heartbeat_time`.
.google.protobuf.FieldMask field_mask = 4;- Specified by:
hasFieldMaskin interfaceListDevicesRequestOrBuilder- Returns:
- Whether the fieldMask field is set.
-
getFieldMask
public com.google.protobuf.FieldMask getFieldMask()
The fields of the `Device` resource to be returned in the response. The fields `id` and `num_id` are always returned, along with any other fields specified in snake_case format, for example: `last_heartbeat_time`.
.google.protobuf.FieldMask field_mask = 4;- Specified by:
getFieldMaskin interfaceListDevicesRequestOrBuilder- Returns:
- The fieldMask.
-
getFieldMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder()
The fields of the `Device` resource to be returned in the response. The fields `id` and `num_id` are always returned, along with any other fields specified in snake_case format, for example: `last_heartbeat_time`.
.google.protobuf.FieldMask field_mask = 4;- Specified by:
getFieldMaskOrBuilderin interfaceListDevicesRequestOrBuilder
-
hasGatewayListOptions
public boolean hasGatewayListOptions()
Options related to gateways.
.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;- Specified by:
hasGatewayListOptionsin interfaceListDevicesRequestOrBuilder- Returns:
- Whether the gatewayListOptions field is set.
-
getGatewayListOptions
public GatewayListOptions getGatewayListOptions()
Options related to gateways.
.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;- Specified by:
getGatewayListOptionsin interfaceListDevicesRequestOrBuilder- Returns:
- The gatewayListOptions.
-
getGatewayListOptionsOrBuilder
public GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder()
Options related to gateways.
.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;- Specified by:
getGatewayListOptionsOrBuilderin interfaceListDevicesRequestOrBuilder
-
getPageSize
public int getPageSize()
The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.
int32 page_size = 100;- Specified by:
getPageSizein interfaceListDevicesRequestOrBuilder- Returns:
- The pageSize.
-
getPageToken
public String getPageToken()
The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.
string page_token = 101;- Specified by:
getPageTokenin interfaceListDevicesRequestOrBuilder- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.
string page_token = 101;- Specified by:
getPageTokenBytesin interfaceListDevicesRequestOrBuilder- Returns:
- The bytes for pageToken.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ListDevicesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListDevicesRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ListDevicesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ListDevicesRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ListDevicesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ListDevicesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ListDevicesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ListDevicesRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ListDevicesRequest.Builder newBuilder()
-
newBuilder
public static ListDevicesRequest.Builder newBuilder(ListDevicesRequest prototype)
-
toBuilder
public ListDevicesRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ListDevicesRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ListDevicesRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ListDevicesRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ListDevicesRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ListDevicesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-