Class CreateTcpRouteRequest.Builder (0.11.0)

public static final class CreateTcpRouteRequest.Builder extends GeneratedMessageV3.Builder<CreateTcpRouteRequest.Builder> implements CreateTcpRouteRequestOrBuilder

Request used by the TcpRoute method.

Protobuf type google.cloud.networkservices.v1.CreateTcpRouteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTcpRouteRequest build()
Returns
Type Description
CreateTcpRouteRequest

buildPartial()

public CreateTcpRouteRequest buildPartial()
Returns
Type Description
CreateTcpRouteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTcpRouteRequest.Builder clearParent()

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

clearTcpRoute()

public CreateTcpRouteRequest.Builder clearTcpRoute()

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTcpRouteRequest.Builder

clearTcpRouteId()

public CreateTcpRouteRequest.Builder clearTcpRouteId()

Required. Short name of the TcpRoute resource to be created.

string tcp_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTcpRouteRequest getDefaultInstanceForType()
Returns
Type Description
CreateTcpRouteRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
ByteString

The bytes for parent.

getTcpRoute()

public TcpRoute getTcpRoute()

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute

The tcpRoute.

getTcpRouteBuilder()

public TcpRoute.Builder getTcpRouteBuilder()

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.Builder

getTcpRouteId()

public String getTcpRouteId()

Required. Short name of the TcpRoute resource to be created.

string tcp_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tcpRouteId.

getTcpRouteIdBytes()

public ByteString getTcpRouteIdBytes()

Required. Short name of the TcpRoute resource to be created.

string tcp_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tcpRouteId.

getTcpRouteOrBuilder()

public TcpRouteOrBuilder getTcpRouteOrBuilder()

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRouteOrBuilder

hasTcpRoute()

public boolean hasTcpRoute()

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tcpRoute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTcpRouteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTcpRoute(TcpRoute value)

public CreateTcpRouteRequest.Builder mergeTcpRoute(TcpRoute value)

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TcpRoute
Returns
Type Description
CreateTcpRouteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTcpRouteRequest.Builder setParent(String value)

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTcpRouteRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

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

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

setTcpRoute(TcpRoute value)

public CreateTcpRouteRequest.Builder setTcpRoute(TcpRoute value)

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TcpRoute
Returns
Type Description
CreateTcpRouteRequest.Builder

setTcpRoute(TcpRoute.Builder builderForValue)

public CreateTcpRouteRequest.Builder setTcpRoute(TcpRoute.Builder builderForValue)

Required. TcpRoute resource to be created.

.google.cloud.networkservices.v1.TcpRoute tcp_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TcpRoute.Builder
Returns
Type Description
CreateTcpRouteRequest.Builder

setTcpRouteId(String value)

public CreateTcpRouteRequest.Builder setTcpRouteId(String value)

Required. Short name of the TcpRoute resource to be created.

string tcp_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The tcpRouteId to set.

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

setTcpRouteIdBytes(ByteString value)

public CreateTcpRouteRequest.Builder setTcpRouteIdBytes(ByteString value)

Required. Short name of the TcpRoute resource to be created.

string tcp_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for tcpRouteId to set.

Returns
Type Description
CreateTcpRouteRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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