Class GetRouterRequest.Builder (1.64.0)

public static final class GetRouterRequest.Builder extends GeneratedMessageV3.Builder<GetRouterRequest.Builder> implements GetRouterRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRouterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRouterRequest build()
Returns
Type Description
GetRouterRequest

buildPartial()

public GetRouterRequest buildPartial()
Returns
Type Description
GetRouterRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRouterRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetRouterRequest.Builder

This builder for chaining.

clearRegion()

public GetRouterRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
Type Description
GetRouterRequest.Builder

This builder for chaining.

clearRouter()

public GetRouterRequest.Builder clearRouter()

Name of the Router resource to return.

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

Returns
Type Description
GetRouterRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRouterRequest getDefaultInstanceForType()
Returns
Type Description
GetRouterRequest

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.

getRouter()

public String getRouter()

Name of the Router resource to return.

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

Returns
Type Description
String

The router.

getRouterBytes()

public ByteString getRouterBytes()

Name of the Router resource to return.

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

Returns
Type Description
ByteString

The bytes for router.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRouterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

setRegion(String value)

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

This builder for chaining.

setRegionBytes(ByteString value)

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

This builder for chaining.

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

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

setRouter(String value)

public GetRouterRequest.Builder setRouter(String value)

Name of the Router resource to return.

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

Parameter
Name Description
value String

The router to set.

Returns
Type Description
GetRouterRequest.Builder

This builder for chaining.

setRouterBytes(ByteString value)

public GetRouterRequest.Builder setRouterBytes(ByteString value)

Name of the Router resource to return.

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

Parameter
Name Description
value ByteString

The bytes for router to set.

Returns
Type Description
GetRouterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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