Class GetNetworkAttachmentRequest.Builder (1.64.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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