Class GetVpnTunnelRequest.Builder (1.64.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public GetVpnTunnelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetVpnTunnelRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GetVpnTunnelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.