Class InterconnectAttachmentGroupAttachment.Builder (1.93.0)

public static final class InterconnectAttachmentGroupAttachment.Builder extends GeneratedMessage.Builder<InterconnectAttachmentGroupAttachment.Builder> implements InterconnectAttachmentGroupAttachmentOrBuilder

An Attachment in this AttachmentGroup.

Protobuf type google.cloud.compute.v1.InterconnectAttachmentGroupAttachment

Static Methods

getDescriptor()

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

Methods

build()

public InterconnectAttachmentGroupAttachment build()
Returns
Type Description
InterconnectAttachmentGroupAttachment

buildPartial()

public InterconnectAttachmentGroupAttachment buildPartial()
Returns
Type Description
InterconnectAttachmentGroupAttachment

clear()

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

clearAttachment()

public InterconnectAttachmentGroupAttachment.Builder clearAttachment()

optional string attachment = 183982371;

Returns
Type Description
InterconnectAttachmentGroupAttachment.Builder

This builder for chaining.

getAttachment()

public String getAttachment()

optional string attachment = 183982371;

Returns
Type Description
String

The attachment.

getAttachmentBytes()

public ByteString getAttachmentBytes()

optional string attachment = 183982371;

Returns
Type Description
ByteString

The bytes for attachment.

getDefaultInstanceForType()

public InterconnectAttachmentGroupAttachment getDefaultInstanceForType()
Returns
Type Description
InterconnectAttachmentGroupAttachment

getDescriptorForType()

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

hasAttachment()

public boolean hasAttachment()

optional string attachment = 183982371;

Returns
Type Description
boolean

Whether the attachment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectAttachmentGroupAttachment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAttachment(String value)

public InterconnectAttachmentGroupAttachment.Builder setAttachment(String value)

optional string attachment = 183982371;

Parameter
Name Description
value String

The attachment to set.

Returns
Type Description
InterconnectAttachmentGroupAttachment.Builder

This builder for chaining.

setAttachmentBytes(ByteString value)

public InterconnectAttachmentGroupAttachment.Builder setAttachmentBytes(ByteString value)

optional string attachment = 183982371;

Parameter
Name Description
value ByteString

The bytes for attachment to set.

Returns
Type Description
InterconnectAttachmentGroupAttachment.Builder

This builder for chaining.