Class GetDeviceRegistryRequest.Builder (2.83.0)

public static final class GetDeviceRegistryRequest.Builder extends GeneratedMessage.Builder<GetDeviceRegistryRequest.Builder> implements GetDeviceRegistryRequestOrBuilder

Request for GetDeviceRegistry.

Protobuf type google.cloud.iot.v1.GetDeviceRegistryRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GetDeviceRegistryRequest build()
Returns
Type Description
GetDeviceRegistryRequest

buildPartial()

public GetDeviceRegistryRequest buildPartial()
Returns
Type Description
GetDeviceRegistryRequest

clear()

public GetDeviceRegistryRequest.Builder clear()
Returns
Type Description
GetDeviceRegistryRequest.Builder
Overrides

clearName()

public GetDeviceRegistryRequest.Builder clearName()

Required. The name of the device registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetDeviceRegistryRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetDeviceRegistryRequest getDefaultInstanceForType()
Returns
Type Description
GetDeviceRegistryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The name of the device registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

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 registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetDeviceRegistryRequest other)

public GetDeviceRegistryRequest.Builder mergeFrom(GetDeviceRegistryRequest other)
Parameter
Name Description
other GetDeviceRegistryRequest
Returns
Type Description
GetDeviceRegistryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDeviceRegistryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetDeviceRegistryRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetDeviceRegistryRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetDeviceRegistryRequest.Builder
Overrides

setName(String value)

public GetDeviceRegistryRequest.Builder setName(String value)

Required. The name of the device registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetDeviceRegistryRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDeviceRegistryRequest.Builder setNameBytes(ByteString value)

Required. The name of the device registry. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetDeviceRegistryRequest.Builder

This builder for chaining.