Package com.google.cloud.iot.v1
Class GatewayListOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
- com.google.cloud.iot.v1.GatewayListOptions.Builder
-
- All Implemented Interfaces:
GatewayListOptionsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GatewayListOptions
public static final class GatewayListOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder> implements GatewayListOptionsOrBuilder
Options for limiting the list based on gateway type and associations.
Protobuf typegoogle.cloud.iot.v1.GatewayListOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayListOptions.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayListOptions
build()
GatewayListOptions
buildPartial()
GatewayListOptions.Builder
clear()
GatewayListOptions.Builder
clearAssociationsDeviceId()
If set, returns only the gateways with which the specified device is associated.GatewayListOptions.Builder
clearAssociationsGatewayId()
If set, only devices associated with the specified gateway are returned.GatewayListOptions.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GatewayListOptions.Builder
clearFilter()
GatewayListOptions.Builder
clearGatewayType()
If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GatewayListOptions.Builder
clone()
String
getAssociationsDeviceId()
If set, returns only the gateways with which the specified device is associated.com.google.protobuf.ByteString
getAssociationsDeviceIdBytes()
If set, returns only the gateways with which the specified device is associated.String
getAssociationsGatewayId()
If set, only devices associated with the specified gateway are returned.com.google.protobuf.ByteString
getAssociationsGatewayIdBytes()
If set, only devices associated with the specified gateway are returned.GatewayListOptions
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GatewayListOptions.FilterCase
getFilterCase()
GatewayType
getGatewayType()
If `GATEWAY` is specified, only gateways are returned.int
getGatewayTypeValue()
If `GATEWAY` is specified, only gateways are returned.boolean
hasAssociationsDeviceId()
If set, returns only the gateways with which the specified device is associated.boolean
hasAssociationsGatewayId()
If set, only devices associated with the specified gateway are returned.boolean
hasGatewayType()
If `GATEWAY` is specified, only gateways are returned.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GatewayListOptions.Builder
mergeFrom(GatewayListOptions other)
GatewayListOptions.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GatewayListOptions.Builder
mergeFrom(com.google.protobuf.Message other)
GatewayListOptions.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GatewayListOptions.Builder
setAssociationsDeviceId(String value)
If set, returns only the gateways with which the specified device is associated.GatewayListOptions.Builder
setAssociationsDeviceIdBytes(com.google.protobuf.ByteString value)
If set, returns only the gateways with which the specified device is associated.GatewayListOptions.Builder
setAssociationsGatewayId(String value)
If set, only devices associated with the specified gateway are returned.GatewayListOptions.Builder
setAssociationsGatewayIdBytes(com.google.protobuf.ByteString value)
If set, only devices associated with the specified gateway are returned.GatewayListOptions.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayListOptions.Builder
setGatewayType(GatewayType value)
If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.Builder
setGatewayTypeValue(int value)
If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GatewayListOptions.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clear
public GatewayListOptions.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
getDefaultInstanceForType
public GatewayListOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayListOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayListOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayListOptions.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
setField
public GatewayListOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clearField
public GatewayListOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clearOneof
public GatewayListOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
setRepeatedField
public GatewayListOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
addRepeatedField
public GatewayListOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
mergeFrom
public GatewayListOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>
-
mergeFrom
public GatewayListOptions.Builder mergeFrom(GatewayListOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
mergeFrom
public GatewayListOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>
- Throws:
IOException
-
getFilterCase
public GatewayListOptions.FilterCase getFilterCase()
- Specified by:
getFilterCase
in interfaceGatewayListOptionsOrBuilder
-
clearFilter
public GatewayListOptions.Builder clearFilter()
-
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;
- Specified by:
hasGatewayType
in interfaceGatewayListOptionsOrBuilder
- Returns:
- Whether the gatewayType field is set.
-
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;
- Specified by:
getGatewayTypeValue
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The enum numeric value on the wire for gatewayType.
-
setGatewayTypeValue
public GatewayListOptions.Builder setGatewayTypeValue(int value)
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;
- Parameters:
value
- The enum numeric value on the wire for gatewayType to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getGatewayType
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The gatewayType.
-
setGatewayType
public GatewayListOptions.Builder setGatewayType(GatewayType value)
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;
- Parameters:
value
- The gatewayType to set.- Returns:
- This builder for chaining.
-
clearGatewayType
public GatewayListOptions.Builder clearGatewayType()
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:
- This builder for chaining.
-
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;
- Specified by:
hasAssociationsGatewayId
in interfaceGatewayListOptionsOrBuilder
- Returns:
- Whether the associationsGatewayId field is set.
-
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;
- Specified by:
getAssociationsGatewayId
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The associationsGatewayId.
-
getAssociationsGatewayIdBytes
public com.google.protobuf.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;
- Specified by:
getAssociationsGatewayIdBytes
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The bytes for associationsGatewayId.
-
setAssociationsGatewayId
public GatewayListOptions.Builder setAssociationsGatewayId(String value)
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;
- Parameters:
value
- The associationsGatewayId to set.- Returns:
- This builder for chaining.
-
clearAssociationsGatewayId
public GatewayListOptions.Builder clearAssociationsGatewayId()
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:
- This builder for chaining.
-
setAssociationsGatewayIdBytes
public GatewayListOptions.Builder setAssociationsGatewayIdBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for associationsGatewayId to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasAssociationsDeviceId
in interfaceGatewayListOptionsOrBuilder
- Returns:
- Whether the associationsDeviceId field is set.
-
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;
- Specified by:
getAssociationsDeviceId
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The associationsDeviceId.
-
getAssociationsDeviceIdBytes
public com.google.protobuf.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;
- Specified by:
getAssociationsDeviceIdBytes
in interfaceGatewayListOptionsOrBuilder
- Returns:
- The bytes for associationsDeviceId.
-
setAssociationsDeviceId
public GatewayListOptions.Builder setAssociationsDeviceId(String value)
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;
- Parameters:
value
- The associationsDeviceId to set.- Returns:
- This builder for chaining.
-
clearAssociationsDeviceId
public GatewayListOptions.Builder clearAssociationsDeviceId()
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:
- This builder for chaining.
-
setAssociationsDeviceIdBytes
public GatewayListOptions.Builder setAssociationsDeviceIdBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for associationsDeviceId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GatewayListOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
mergeUnknownFields
public final GatewayListOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
-