Class DetachServiceProjectAttachmentRequest.Builder (0.47.0)

public static final class DetachServiceProjectAttachmentRequest.Builder extends GeneratedMessage.Builder<DetachServiceProjectAttachmentRequest.Builder> implements DetachServiceProjectAttachmentRequestOrBuilder

Request for DetachServiceProjectAttachment.

Protobuf type google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest

Static Methods

getDescriptor()

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

Methods

build()

public DetachServiceProjectAttachmentRequest build()
Returns
Type Description
DetachServiceProjectAttachmentRequest

buildPartial()

public DetachServiceProjectAttachmentRequest buildPartial()
Returns
Type Description
DetachServiceProjectAttachmentRequest

clear()

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

clearName()

public DetachServiceProjectAttachmentRequest.Builder clearName()

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DetachServiceProjectAttachmentRequest getDefaultInstanceForType()
Returns
Type Description
DetachServiceProjectAttachmentRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public DetachServiceProjectAttachmentRequest.Builder setName(String value)

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DetachServiceProjectAttachmentRequest.Builder setNameBytes(ByteString value)

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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
DetachServiceProjectAttachmentRequest.Builder

This builder for chaining.