Class DetachServiceProjectAttachmentRequest.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DetachServiceProjectAttachmentRequest build()
Returns
TypeDescription
DetachServiceProjectAttachmentRequest

buildPartial()

public DetachServiceProjectAttachmentRequest buildPartial()
Returns
TypeDescription
DetachServiceProjectAttachmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DetachServiceProjectAttachmentRequest getDefaultInstanceForType()
Returns
TypeDescription
DetachServiceProjectAttachmentRequest

getDescriptorForType()

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

public DetachServiceProjectAttachmentRequest.Builder mergeFrom(DetachServiceProjectAttachmentRequest other)
Parameter
NameDescription
otherDetachServiceProjectAttachmentRequest
Returns
TypeDescription
DetachServiceProjectAttachmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DetachServiceProjectAttachmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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