Class 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 type google.cloud.iot.v1.GatewayListOptions
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • clear

        public GatewayListOptions.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • getDefaultInstanceForType

        public GatewayListOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GatewayListOptions build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GatewayListOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GatewayListOptions.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • setField

        public GatewayListOptions.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • clearField

        public GatewayListOptions.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • clearOneof

        public GatewayListOptions.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • addRepeatedField

        public GatewayListOptions.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • mergeFrom

        public GatewayListOptions.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayListOptions.Builder>
        Throws:
        IOException
      • 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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface GatewayListOptionsOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>
      • mergeUnknownFields

        public final GatewayListOptions.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayListOptions.Builder>