Class GetVpnTunnelRequest.Builder (1.6.0-beta)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetVpnTunnelRequest build()
Returns
TypeDescription
GetVpnTunnelRequest

buildPartial()

public GetVpnTunnelRequest buildPartial()
Returns
TypeDescription
GetVpnTunnelRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetVpnTunnelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetVpnTunnelRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetVpnTunnelRequest.Builder clearProject()

Project ID for this request.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetVpnTunnelRequest getDefaultInstanceForType()
Returns
TypeDescription
GetVpnTunnelRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

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

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

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

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

The vpnTunnel.

getVpnTunnelBytes()

public ByteString getVpnTunnelBytes()

Name of the VpnTunnel resource to return.

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

Returns
TypeDescription
ByteString

The bytes for vpnTunnel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetVpnTunnelRequest other)

public GetVpnTunnelRequest.Builder mergeFrom(GetVpnTunnelRequest other)
Parameter
NameDescription
otherGetVpnTunnelRequest
Returns
TypeDescription
GetVpnTunnelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GetVpnTunnelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The vpnTunnel to set.

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

The bytes for vpnTunnel to set.

Returns
TypeDescription
GetVpnTunnelRequest.Builder

This builder for chaining.