Class GetTcpRouteRequest.Builder (0.1.0)

public static final class GetTcpRouteRequest.Builder extends GeneratedMessageV3.Builder<GetTcpRouteRequest.Builder> implements GetTcpRouteRequestOrBuilder

Request used by the GetTcpRoute method.

Protobuf type google.cloud.networkservices.v1.GetTcpRouteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetTcpRouteRequest build()
Returns
Type Description
GetTcpRouteRequest

buildPartial()

public GetTcpRouteRequest buildPartial()
Returns
Type Description
GetTcpRouteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetTcpRouteRequest.Builder clearName()

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetTcpRouteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetTcpRouteRequest getDefaultInstanceForType()
Returns
Type Description
GetTcpRouteRequest

getDescriptorForType()

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

getName()

public String getName()

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetTcpRouteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetTcpRouteRequest.Builder setName(String value)

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetTcpRouteRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetTcpRouteRequest.Builder setNameBytes(ByteString value)

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetTcpRouteRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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