public static final class GetDeviceRequest.Builder extends GeneratedMessageV3.Builder<GetDeviceRequest.Builder> implements GetDeviceRequestOrBuilder
Request for GetDevice
.
Protobuf type google.cloud.iot.v1.GetDeviceRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetDeviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetDeviceRequest build()
Returns
buildPartial()
public GetDeviceRequest buildPartial()
Returns
clear()
public GetDeviceRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFieldMask()
public GetDeviceRequest.Builder clearFieldMask()
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Returns
clearName()
public GetDeviceRequest.Builder clearName()
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public GetDeviceRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetDeviceRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFieldMask()
public FieldMask getFieldMask()
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Returns
getFieldMaskBuilder()
public FieldMask.Builder getFieldMaskBuilder()
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Returns
getFieldMaskOrBuilder()
public FieldMaskOrBuilder getFieldMaskOrBuilder()
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Returns
getName()
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasFieldMask()
public boolean hasFieldMask()
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Returns
Type | Description |
boolean | Whether the fieldMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFieldMask(FieldMask value)
public GetDeviceRequest.Builder mergeFieldMask(FieldMask value)
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Parameter
Returns
mergeFrom(GetDeviceRequest other)
public GetDeviceRequest.Builder mergeFrom(GetDeviceRequest other)
Parameter
Returns
public GetDeviceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetDeviceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setFieldMask(FieldMask value)
public GetDeviceRequest.Builder setFieldMask(FieldMask value)
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Parameter
Returns
setFieldMask(FieldMask.Builder builderForValue)
public GetDeviceRequest.Builder setFieldMask(FieldMask.Builder builderForValue)
The fields of the Device
resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time
.
.google.protobuf.FieldMask field_mask = 2;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setName(String value)
public GetDeviceRequest.Builder setName(String value)
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public GetDeviceRequest.Builder setNameBytes(ByteString value)
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides