Class DetachServiceProjectAttachmentRequest.Builder (0.19.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DetachServiceProjectAttachmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public DetachServiceProjectAttachmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public DetachServiceProjectAttachmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DetachServiceProjectAttachmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DetachServiceProjectAttachmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public DetachServiceProjectAttachmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DetachServiceProjectAttachmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DetachServiceProjectAttachmentRequest.Builder
Overrides