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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetDeviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GetDeviceRequest build()
buildPartial()
public GetDeviceRequest buildPartial()
clear()
public GetDeviceRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
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;
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public GetDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GetDeviceRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public GetDeviceRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
FieldMask |
The fieldMask.
|
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;
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;
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 |
Type |
Description |
ByteString |
The bytes for name.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(GetDeviceRequest other)
public GetDeviceRequest.Builder mergeFrom(GetDeviceRequest other)
public GetDeviceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GetDeviceRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides