Package com.google.cloud.iot.v1
Class ListDevicesResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListDevicesResponse.Builder>
-
- com.google.cloud.iot.v1.ListDevicesResponse.Builder
-
- All Implemented Interfaces:
ListDevicesResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListDevicesResponse
public static final class ListDevicesResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListDevicesResponse.Builder> implements ListDevicesResponseOrBuilder
Response for `ListDevices`.
Protobuf typegoogle.cloud.iot.v1.ListDevicesResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDevicesResponse.Builder
addAllDevices(Iterable<? extends Device> values)
The devices that match the request.ListDevicesResponse.Builder
addDevices(int index, Device value)
The devices that match the request.ListDevicesResponse.Builder
addDevices(int index, Device.Builder builderForValue)
The devices that match the request.ListDevicesResponse.Builder
addDevices(Device value)
The devices that match the request.ListDevicesResponse.Builder
addDevices(Device.Builder builderForValue)
The devices that match the request.Device.Builder
addDevicesBuilder()
The devices that match the request.Device.Builder
addDevicesBuilder(int index)
The devices that match the request.ListDevicesResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListDevicesResponse
build()
ListDevicesResponse
buildPartial()
ListDevicesResponse.Builder
clear()
ListDevicesResponse.Builder
clearDevices()
The devices that match the request.ListDevicesResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListDevicesResponse.Builder
clearNextPageToken()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.ListDevicesResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListDevicesResponse.Builder
clone()
ListDevicesResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Device
getDevices(int index)
The devices that match the request.Device.Builder
getDevicesBuilder(int index)
The devices that match the request.List<Device.Builder>
getDevicesBuilderList()
The devices that match the request.int
getDevicesCount()
The devices that match the request.List<Device>
getDevicesList()
The devices that match the request.DeviceOrBuilder
getDevicesOrBuilder(int index)
The devices that match the request.List<? extends DeviceOrBuilder>
getDevicesOrBuilderList()
The devices that match the request.String
getNextPageToken()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.com.google.protobuf.ByteString
getNextPageTokenBytes()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListDevicesResponse.Builder
mergeFrom(ListDevicesResponse other)
ListDevicesResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListDevicesResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListDevicesResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListDevicesResponse.Builder
removeDevices(int index)
The devices that match the request.ListDevicesResponse.Builder
setDevices(int index, Device value)
The devices that match the request.ListDevicesResponse.Builder
setDevices(int index, Device.Builder builderForValue)
The devices that match the request.ListDevicesResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListDevicesResponse.Builder
setNextPageToken(String value)
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.ListDevicesResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.ListDevicesResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListDevicesResponse.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<ListDevicesResponse.Builder>
-
clear
public ListDevicesResponse.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<ListDevicesResponse.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<ListDevicesResponse.Builder>
-
getDefaultInstanceForType
public ListDevicesResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListDevicesResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListDevicesResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
setField
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
clearField
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
clearOneof
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
setRepeatedField
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
addRepeatedField
public ListDevicesResponse.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<ListDevicesResponse.Builder>
-
mergeFrom
public ListDevicesResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListDevicesResponse.Builder>
-
mergeFrom
public ListDevicesResponse.Builder mergeFrom(ListDevicesResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListDevicesResponse.Builder>
-
mergeFrom
public ListDevicesResponse.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<ListDevicesResponse.Builder>
- Throws:
IOException
-
getDevicesList
public List<Device> getDevicesList()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
- Specified by:
getDevicesList
in interfaceListDevicesResponseOrBuilder
-
getDevicesCount
public int getDevicesCount()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
- Specified by:
getDevicesCount
in interfaceListDevicesResponseOrBuilder
-
getDevices
public Device getDevices(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
- Specified by:
getDevices
in interfaceListDevicesResponseOrBuilder
-
setDevices
public ListDevicesResponse.Builder setDevices(int index, Device value)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
setDevices
public ListDevicesResponse.Builder setDevices(int index, Device.Builder builderForValue)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addDevices
public ListDevicesResponse.Builder addDevices(Device value)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addDevices
public ListDevicesResponse.Builder addDevices(int index, Device value)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addDevices
public ListDevicesResponse.Builder addDevices(Device.Builder builderForValue)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addDevices
public ListDevicesResponse.Builder addDevices(int index, Device.Builder builderForValue)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addAllDevices
public ListDevicesResponse.Builder addAllDevices(Iterable<? extends Device> values)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
clearDevices
public ListDevicesResponse.Builder clearDevices()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
removeDevices
public ListDevicesResponse.Builder removeDevices(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
getDevicesBuilder
public Device.Builder getDevicesBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
getDevicesOrBuilder
public DeviceOrBuilder getDevicesOrBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
- Specified by:
getDevicesOrBuilder
in interfaceListDevicesResponseOrBuilder
-
getDevicesOrBuilderList
public List<? extends DeviceOrBuilder> getDevicesOrBuilderList()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
- Specified by:
getDevicesOrBuilderList
in interfaceListDevicesResponseOrBuilder
-
addDevicesBuilder
public Device.Builder addDevicesBuilder()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
addDevicesBuilder
public Device.Builder addDevicesBuilder(int index)
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
getDevicesBuilderList
public List<Device.Builder> getDevicesBuilderList()
The devices that match the request.
repeated .google.cloud.iot.v1.Device devices = 1;
-
getNextPageToken
public String getNextPageToken()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
string next_page_token = 2;
- Specified by:
getNextPageToken
in interfaceListDevicesResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
string next_page_token = 2;
- Specified by:
getNextPageTokenBytes
in interfaceListDevicesResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
public ListDevicesResponse.Builder setNextPageToken(String value)
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
string next_page_token = 2;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public ListDevicesResponse.Builder clearNextPageToken()
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
string next_page_token = 2;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListDevicesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
string next_page_token = 2;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListDevicesResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListDevicesResponse.Builder>
-
mergeUnknownFields
public final ListDevicesResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListDevicesResponse.Builder>
-
-