Class GetDeviceRegistryRequest.Builder (2.1.7)

public static final class GetDeviceRegistryRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetDeviceRegistryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

build()

public GetDeviceRegistryRequest build()
Returns
TypeDescription
GetDeviceRegistryRequest

buildPartial()

public GetDeviceRegistryRequest buildPartial()
Returns
TypeDescription
GetDeviceRegistryRequest

clear()

public GetDeviceRegistryRequest.Builder clear()
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetDeviceRegistryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetDeviceRegistryRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDeviceRegistryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

clone()

public GetDeviceRegistryRequest.Builder clone()
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

getDefaultInstanceForType()

public GetDeviceRegistryRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDeviceRegistryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDeviceRegistryRequest other)

public GetDeviceRegistryRequest.Builder mergeFrom(GetDeviceRegistryRequest other)
Parameter
NameDescription
otherGetDeviceRegistryRequest
Returns
TypeDescription
GetDeviceRegistryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDeviceRegistryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetDeviceRegistryRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetDeviceRegistryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetDeviceRegistryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetDeviceRegistryRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetDeviceRegistryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetDeviceRegistryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDeviceRegistryRequest.Builder
Overrides