Class GetNatIpInfoRouterRequest.Builder (1.53.0)

public static final class GetNatIpInfoRouterRequest.Builder extends GeneratedMessageV3.Builder<GetNatIpInfoRouterRequest.Builder> implements GetNatIpInfoRouterRequestOrBuilder

A request message for Routers.GetNatIpInfo. See the method description for details.

Protobuf type google.cloud.compute.v1.GetNatIpInfoRouterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNatIpInfoRouterRequest build()
Returns
Type Description
GetNatIpInfoRouterRequest

buildPartial()

public GetNatIpInfoRouterRequest buildPartial()
Returns
Type Description
GetNatIpInfoRouterRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNatName()

public GetNatIpInfoRouterRequest.Builder clearNatName()

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetNatIpInfoRouterRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

clearRegion()

public GetNatIpInfoRouterRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

clearRouter()

public GetNatIpInfoRouterRequest.Builder clearRouter()

Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.

string router = 148608841 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetNatIpInfoRouterRequest getDefaultInstanceForType()
Returns
Type Description
GetNatIpInfoRouterRequest

getDescriptorForType()

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

getNatName()

public String getNatName()

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Returns
Type Description
String

The natName.

getNatNameBytes()

public ByteString getNatNameBytes()

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Returns
Type Description
ByteString

The bytes for natName.

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.

getRouter()

public String getRouter()

Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.

string router = 148608841 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The router.

getRouterBytes()

public ByteString getRouterBytes()

Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.

string router = 148608841 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for router.

hasNatName()

public boolean hasNatName()

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Returns
Type Description
boolean

Whether the natName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetNatIpInfoRouterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNatName(String value)

public GetNatIpInfoRouterRequest.Builder setNatName(String value)

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Parameter
Name Description
value String

The natName to set.

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

setNatNameBytes(ByteString value)

public GetNatIpInfoRouterRequest.Builder setNatNameBytes(ByteString value)

Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.

optional string nat_name = 425596649;

Parameter
Name Description
value ByteString

The bytes for natName to set.

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

setRegion(String value)

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

This builder for chaining.

setRegionBytes(ByteString value)

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

This builder for chaining.

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

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

setRouter(String value)

public GetNatIpInfoRouterRequest.Builder setRouter(String value)

Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.

string router = 148608841 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The router to set.

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

setRouterBytes(ByteString value)

public GetNatIpInfoRouterRequest.Builder setRouterBytes(ByteString value)

Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.

string router = 148608841 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for router to set.

Returns
Type Description
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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