Class GetNetworkAttachmentRequest.Builder (1.93.0)

public static final class GetNetworkAttachmentRequest.Builder extends GeneratedMessage.Builder<GetNetworkAttachmentRequest.Builder> implements GetNetworkAttachmentRequestOrBuilder

A request message for NetworkAttachments.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetNetworkAttachmentRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetNetworkAttachmentRequest build()
Returns
Type Description
GetNetworkAttachmentRequest

buildPartial()

public GetNetworkAttachmentRequest buildPartial()
Returns
Type Description
GetNetworkAttachmentRequest

clear()

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

clearNetworkAttachment()

public GetNetworkAttachmentRequest.Builder clearNetworkAttachment()

Name of the NetworkAttachment resource to return.

string network_attachment = 224644052 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

clearProject()

public GetNetworkAttachmentRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

clearRegion()

public GetNetworkAttachmentRequest.Builder clearRegion()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetNetworkAttachmentRequest getDefaultInstanceForType()
Returns
Type Description
GetNetworkAttachmentRequest

getDescriptorForType()

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

getNetworkAttachment()

public String getNetworkAttachment()

Name of the NetworkAttachment resource to return.

string network_attachment = 224644052 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

public ByteString getNetworkAttachmentBytes()

Name of the NetworkAttachment resource to return.

string network_attachment = 224644052 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for networkAttachment.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getRegion()

public String getRegion()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetNetworkAttachmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNetworkAttachment(String value)

public GetNetworkAttachmentRequest.Builder setNetworkAttachment(String value)

Name of the NetworkAttachment resource to return.

string network_attachment = 224644052 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The networkAttachment to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

setNetworkAttachmentBytes(ByteString value)

public GetNetworkAttachmentRequest.Builder setNetworkAttachmentBytes(ByteString value)

Name of the NetworkAttachment resource to return.

string network_attachment = 224644052 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for networkAttachment to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

setProject(String value)

public GetNetworkAttachmentRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetNetworkAttachmentRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

setRegion(String value)

public GetNetworkAttachmentRequest.Builder setRegion(String value)

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetNetworkAttachmentRequest.Builder setRegionBytes(ByteString value)

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetNetworkAttachmentRequest.Builder

This builder for chaining.