Class GetNetworkAttachmentRequest.Builder (1.47.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNetworkAttachmentRequest build()
Returns
TypeDescription
GetNetworkAttachmentRequest

buildPartial()

public GetNetworkAttachmentRequest buildPartial()
Returns
TypeDescription
GetNetworkAttachmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetNetworkAttachmentRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
GetNetworkAttachmentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetNetworkAttachmentRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNetworkAttachmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworkAttachment()

public String getNetworkAttachment()

Name of the NetworkAttachment resource to return.

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

Returns
TypeDescription
String

The networkAttachment.

getNetworkAttachmentBytes()

public ByteString getNetworkAttachmentBytes()

Name of the NetworkAttachment resource to return.

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

Returns
TypeDescription
ByteString

The bytes for networkAttachment.

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region of this request.

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

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetNetworkAttachmentRequest other)

public GetNetworkAttachmentRequest.Builder mergeFrom(GetNetworkAttachmentRequest other)
Parameter
NameDescription
otherGetNetworkAttachmentRequest
Returns
TypeDescription
GetNetworkAttachmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The networkAttachment to set.

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

The bytes for networkAttachment to set.

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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