Class GetNatIpInfoRouterRequest.Builder (1.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNatIpInfoRouterRequest build()
Returns
TypeDescription
GetNatIpInfoRouterRequest

buildPartial()

public GetNatIpInfoRouterRequest buildPartial()
Returns
TypeDescription
GetNatIpInfoRouterRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetNatIpInfoRouterRequest.Builder clearProject()

Project ID for this request.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetNatIpInfoRouterRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNatIpInfoRouterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for natName.

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.

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the natName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetNatIpInfoRouterRequest other)

public GetNatIpInfoRouterRequest.Builder mergeFrom(GetNatIpInfoRouterRequest other)
Parameter
NameDescription
otherGetNatIpInfoRouterRequest
Returns
TypeDescription
GetNatIpInfoRouterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The natName to set.

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

The bytes for natName to set.

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

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

The router to set.

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

The bytes for router to set.

Returns
TypeDescription
GetNatIpInfoRouterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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