Class GatewayListOptions (2.20.0)

public final class GatewayListOptions extends GeneratedMessageV3 implements GatewayListOptionsOrBuilder

Options for limiting the list based on gateway type and associations.

Protobuf type google.cloud.iot.v1.GatewayListOptions

Static Fields

ASSOCIATIONS_DEVICE_ID_FIELD_NUMBER

public static final int ASSOCIATIONS_DEVICE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ASSOCIATIONS_GATEWAY_ID_FIELD_NUMBER

public static final int ASSOCIATIONS_GATEWAY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

GATEWAY_TYPE_FIELD_NUMBER

public static final int GATEWAY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GatewayListOptions getDefaultInstance()
Returns
TypeDescription
GatewayListOptions

getDescriptor()

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

newBuilder()

public static GatewayListOptions.Builder newBuilder()
Returns
TypeDescription
GatewayListOptions.Builder

newBuilder(GatewayListOptions prototype)

public static GatewayListOptions.Builder newBuilder(GatewayListOptions prototype)
Parameter
NameDescription
prototypeGatewayListOptions
Returns
TypeDescription
GatewayListOptions.Builder

parseDelimitedFrom(InputStream input)

public static GatewayListOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GatewayListOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GatewayListOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GatewayListOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GatewayListOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GatewayListOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GatewayListOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayListOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GatewayListOptions> parser()
Returns
TypeDescription
Parser<GatewayListOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAssociationsDeviceId()

public String getAssociationsDeviceId()

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

string associations_device_id = 3;

Returns
TypeDescription
String

The associationsDeviceId.

getAssociationsDeviceIdBytes()

public ByteString getAssociationsDeviceIdBytes()

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

string associations_device_id = 3;

Returns
TypeDescription
ByteString

The bytes for associationsDeviceId.

getAssociationsGatewayId()

public String getAssociationsGatewayId()

If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

string associations_gateway_id = 2;

Returns
TypeDescription
String

The associationsGatewayId.

getAssociationsGatewayIdBytes()

public ByteString getAssociationsGatewayIdBytes()

If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

string associations_gateway_id = 2;

Returns
TypeDescription
ByteString

The bytes for associationsGatewayId.

getDefaultInstanceForType()

public GatewayListOptions getDefaultInstanceForType()
Returns
TypeDescription
GatewayListOptions

getFilterCase()

public GatewayListOptions.FilterCase getFilterCase()
Returns
TypeDescription
GatewayListOptions.FilterCase

getGatewayType()

public GatewayType getGatewayType()

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
GatewayType

The gatewayType.

getGatewayTypeValue()

public int getGatewayTypeValue()

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for gatewayType.

getParserForType()

public Parser<GatewayListOptions> getParserForType()
Returns
TypeDescription
Parser<GatewayListOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAssociationsDeviceId()

public boolean hasAssociationsDeviceId()

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

string associations_device_id = 3;

Returns
TypeDescription
boolean

Whether the associationsDeviceId field is set.

hasAssociationsGatewayId()

public boolean hasAssociationsGatewayId()

If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

string associations_gateway_id = 2;

Returns
TypeDescription
boolean

Whether the associationsGatewayId field is set.

hasGatewayType()

public boolean hasGatewayType()

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
boolean

Whether the gatewayType field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GatewayListOptions.Builder newBuilderForType()
Returns
TypeDescription
GatewayListOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GatewayListOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GatewayListOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GatewayListOptions.Builder toBuilder()
Returns
TypeDescription
GatewayListOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException