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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GatewayListOptionsbuild()GatewayListOptionsbuildPartial()GatewayListOptions.Builderclear()GatewayListOptions.BuilderclearAssociationsDeviceId()If set, returns only the gateways with which the specified device is associated.GatewayListOptions.BuilderclearAssociationsGatewayId()If set, only devices associated with the specified gateway are returned.GatewayListOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GatewayListOptions.BuilderclearFilter()GatewayListOptions.BuilderclearGatewayType()If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GatewayListOptions.Builderclone()StringgetAssociationsDeviceId()If set, returns only the gateways with which the specified device is associated.com.google.protobuf.ByteStringgetAssociationsDeviceIdBytes()If set, returns only the gateways with which the specified device is associated.StringgetAssociationsGatewayId()If set, only devices associated with the specified gateway are returned.com.google.protobuf.ByteStringgetAssociationsGatewayIdBytes()If set, only devices associated with the specified gateway are returned.GatewayListOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GatewayListOptions.FilterCasegetFilterCase()GatewayTypegetGatewayType()If `GATEWAY` is specified, only gateways are returned.intgetGatewayTypeValue()If `GATEWAY` is specified, only gateways are returned.booleanhasAssociationsDeviceId()If set, returns only the gateways with which the specified device is associated.booleanhasAssociationsGatewayId()If set, only devices associated with the specified gateway are returned.booleanhasGatewayType()If `GATEWAY` is specified, only gateways are returned.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GatewayListOptions.BuildermergeFrom(GatewayListOptions other)GatewayListOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GatewayListOptions.BuildermergeFrom(com.google.protobuf.Message other)GatewayListOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GatewayListOptions.BuildersetAssociationsDeviceId(String value)If set, returns only the gateways with which the specified device is associated.GatewayListOptions.BuildersetAssociationsDeviceIdBytes(com.google.protobuf.ByteString value)If set, returns only the gateways with which the specified device is associated.GatewayListOptions.BuildersetAssociationsGatewayId(String value)If set, only devices associated with the specified gateway are returned.GatewayListOptions.BuildersetAssociationsGatewayIdBytes(com.google.protobuf.ByteString value)If set, only devices associated with the specified gateway are returned.GatewayListOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GatewayListOptions.BuildersetGatewayType(GatewayType value)If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.BuildersetGatewayTypeValue(int value)If `GATEWAY` is specified, only gateways are returned.GatewayListOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GatewayListOptions.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clear
public GatewayListOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
getDefaultInstanceForType
public GatewayListOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayListOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayListOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayListOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
setField
public GatewayListOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clearField
public GatewayListOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
clearOneof
public GatewayListOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
setRepeatedField
public GatewayListOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
addRepeatedField
public GatewayListOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
mergeFrom
public GatewayListOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>
-
mergeFrom
public GatewayListOptions.Builder mergeFrom(GatewayListOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>- Throws:
IOException
-
getFilterCase
public GatewayListOptions.FilterCase getFilterCase()
- Specified by:
getFilterCasein 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:
hasGatewayTypein 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:
getGatewayTypeValuein 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:
getGatewayTypein 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:
hasAssociationsGatewayIdin 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:
getAssociationsGatewayIdin 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:
getAssociationsGatewayIdBytesin 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:
hasAssociationsDeviceIdin 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:
getAssociationsDeviceIdin 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:
getAssociationsDeviceIdBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
mergeUnknownFields
public final GatewayListOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
-
-