Class GetRouterRequest.Builder (1.7.2)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRouterRequest build()
Returns
TypeDescription
GetRouterRequest

buildPartial()

public GetRouterRequest buildPartial()
Returns
TypeDescription
GetRouterRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRouterRequest.Builder clearProject()

Project ID for this request.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRouterRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRouterRequest

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.

getRouter()

public String getRouter()

Name of the Router resource to return.

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

Returns
TypeDescription
String

The router.

getRouterBytes()

public ByteString getRouterBytes()

Name of the Router resource to return.

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

Returns
TypeDescription
ByteString

The bytes for router.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetRouterRequest other)

public GetRouterRequest.Builder mergeFrom(GetRouterRequest other)
Parameter
NameDescription
otherGetRouterRequest
Returns
TypeDescription
GetRouterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

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

The router to set.

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

The bytes for router to set.

Returns
TypeDescription
GetRouterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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