Class GetVpnTunnelRequest.Builder (1.93.0)

public static final class GetVpnTunnelRequest.Builder extends GeneratedMessage.Builder<GetVpnTunnelRequest.Builder> implements GetVpnTunnelRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetVpnTunnelRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetVpnTunnelRequest build()
Returns
Type Description
GetVpnTunnelRequest

buildPartial()

public GetVpnTunnelRequest buildPartial()
Returns
Type Description
GetVpnTunnelRequest

clear()

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

clearProject()

public GetVpnTunnelRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

clearRegion()

public GetVpnTunnelRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

clearVpnTunnel()

public GetVpnTunnelRequest.Builder clearVpnTunnel()

Name of the VpnTunnel resource to return.

string vpn_tunnel = 143821331 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetVpnTunnelRequest getDefaultInstanceForType()
Returns
Type Description
GetVpnTunnelRequest

getDescriptorForType()

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

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 for this request.

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

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

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

Returns
Type Description
ByteString

The bytes for region.

getVpnTunnel()

public String getVpnTunnel()

Name of the VpnTunnel resource to return.

string vpn_tunnel = 143821331 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vpnTunnel.

getVpnTunnelBytes()

public ByteString getVpnTunnelBytes()

Name of the VpnTunnel resource to return.

string vpn_tunnel = 143821331 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vpnTunnel.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetVpnTunnelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setProject(String value)

public GetVpnTunnelRequest.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
GetVpnTunnelRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetVpnTunnelRequest.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
GetVpnTunnelRequest.Builder

This builder for chaining.

setRegion(String value)

public GetVpnTunnelRequest.Builder setRegion(String value)

Name of the region for this request.

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

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetVpnTunnelRequest.Builder setRegionBytes(ByteString value)

Name of the region for this request.

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

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

setVpnTunnel(String value)

public GetVpnTunnelRequest.Builder setVpnTunnel(String value)

Name of the VpnTunnel resource to return.

string vpn_tunnel = 143821331 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vpnTunnel to set.

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.

setVpnTunnelBytes(ByteString value)

public GetVpnTunnelRequest.Builder setVpnTunnelBytes(ByteString value)

Name of the VpnTunnel resource to return.

string vpn_tunnel = 143821331 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vpnTunnel to set.

Returns
Type Description
GetVpnTunnelRequest.Builder

This builder for chaining.