Class GetNamespaceRequest.Builder (2.30.0)

public static final class GetNamespaceRequest.Builder extends GeneratedMessageV3.Builder<GetNamespaceRequest.Builder> implements GetNamespaceRequestOrBuilder

The request message for RegistrationService.GetNamespace.

Protobuf type google.cloud.servicedirectory.v1beta1.GetNamespaceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNamespaceRequest build()
Returns
TypeDescription
GetNamespaceRequest

buildPartial()

public GetNamespaceRequest buildPartial()
Returns
TypeDescription
GetNamespaceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetNamespaceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetNamespaceRequest.Builder
Overrides

clearName()

public GetNamespaceRequest.Builder clearName()

Required. The name of the namespace to retrieve.

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

Returns
TypeDescription
GetNamespaceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetNamespaceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNamespaceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the namespace to retrieve.

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 namespace to retrieve.

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(GetNamespaceRequest other)

public GetNamespaceRequest.Builder mergeFrom(GetNamespaceRequest other)
Parameter
NameDescription
otherGetNamespaceRequest
Returns
TypeDescription
GetNamespaceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetNamespaceRequest.Builder setName(String value)

Required. The name of the namespace to retrieve.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetNamespaceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetNamespaceRequest.Builder setNameBytes(ByteString value)

Required. The name of the namespace to retrieve.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetNamespaceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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