Class TcpRoute.Builder (0.15.0)

public static final class TcpRoute.Builder extends GeneratedMessageV3.Builder<TcpRoute.Builder> implements TcpRouteOrBuilder

TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.

Protobuf type google.events.cloud.networkservices.v1.TcpRoute

Implements

TcpRouteOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllGateways(Iterable<String> values)

public TcpRoute.Builder addAllGateways(Iterable<String> values)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameter
Name Description
values Iterable<String>

The gateways to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addAllMeshes(Iterable<String> values)

public TcpRoute.Builder addAllMeshes(Iterable<String> values)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameter
Name Description
values Iterable<String>

The meshes to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addAllRules(Iterable<? extends TcpRoute.RouteRule> values)

public TcpRoute.Builder addAllRules(Iterable<? extends TcpRoute.RouteRule> values)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
values Iterable<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteRule>
Returns
Type Description
TcpRoute.Builder

addGateways(String value)

public TcpRoute.Builder addGateways(String value)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameter
Name Description
value String

The gateways to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addGatewaysBytes(ByteString value)

public TcpRoute.Builder addGatewaysBytes(ByteString value)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameter
Name Description
value ByteString

The bytes of the gateways to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addMeshes(String value)

public TcpRoute.Builder addMeshes(String value)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameter
Name Description
value String

The meshes to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addMeshesBytes(ByteString value)

public TcpRoute.Builder addMeshesBytes(ByteString value)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameter
Name Description
value ByteString

The bytes of the meshes to add.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRules(TcpRoute.RouteRule value)

public TcpRoute.Builder addRules(TcpRoute.RouteRule value)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
value TcpRoute.RouteRule
Returns
Type Description
TcpRoute.Builder

addRules(TcpRoute.RouteRule.Builder builderForValue)

public TcpRoute.Builder addRules(TcpRoute.RouteRule.Builder builderForValue)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

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

addRules(int index, TcpRoute.RouteRule value)

public TcpRoute.Builder addRules(int index, TcpRoute.RouteRule value)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameters
Name Description
index int
value TcpRoute.RouteRule
Returns
Type Description
TcpRoute.Builder

addRules(int index, TcpRoute.RouteRule.Builder builderForValue)

public TcpRoute.Builder addRules(int index, TcpRoute.RouteRule.Builder builderForValue)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameters
Name Description
index int
builderForValue TcpRoute.RouteRule.Builder
Returns
Type Description
TcpRoute.Builder

addRulesBuilder()

public TcpRoute.RouteRule.Builder addRulesBuilder()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
TcpRoute.RouteRule.Builder

addRulesBuilder(int index)

public TcpRoute.RouteRule.Builder addRulesBuilder(int index)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteRule.Builder

build()

public TcpRoute build()
Returns
Type Description
TcpRoute

buildPartial()

public TcpRoute buildPartial()
Returns
Type Description
TcpRoute

clear()

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

clearCreateTime()

public TcpRoute.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TcpRoute.Builder

clearDescription()

public TcpRoute.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 4;

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGateways()

public TcpRoute.Builder clearGateways()

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

clearLabels()

public TcpRoute.Builder clearLabels()
Returns
Type Description
TcpRoute.Builder

clearMeshes()

public TcpRoute.Builder clearMeshes()

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

clearName()

public TcpRoute.Builder clearName()

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

string name = 1;

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRules()

public TcpRoute.Builder clearRules()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
TcpRoute.Builder
public TcpRoute.Builder clearSelfLink()

Output only. Server-defined URL of this resource

string self_link = 11;

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

clearUpdateTime()

public TcpRoute.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TcpRoute.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public TcpRoute getDefaultInstanceForType()
Returns
Type Description
TcpRoute

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getGateways(int index)

public String getGateways(int index)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The gateways at the given index.

getGatewaysBytes(int index)

public ByteString getGatewaysBytes(int index)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the gateways at the given index.

getGatewaysCount()

public int getGatewaysCount()

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Returns
Type Description
int

The count of gateways.

getGatewaysList()

public ProtocolStringList getGatewaysList()

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Returns
Type Description
ProtocolStringList

A list containing the gateways.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
String

getMeshes(int index)

public String getMeshes(int index)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The meshes at the given index.

getMeshesBytes(int index)

public ByteString getMeshesBytes(int index)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the meshes at the given index.

getMeshesCount()

public int getMeshesCount()

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Returns
Type Description
int

The count of meshes.

getMeshesList()

public ProtocolStringList getMeshesList()

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Returns
Type Description
ProtocolStringList

A list containing the meshes.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRules(int index)

public TcpRoute.RouteRule getRules(int index)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteRule

getRulesBuilder(int index)

public TcpRoute.RouteRule.Builder getRulesBuilder(int index)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteRule.Builder

getRulesBuilderList()

public List<TcpRoute.RouteRule.Builder> getRulesBuilderList()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
int

getRulesList()

public List<TcpRoute.RouteRule> getRulesList()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
List<RouteRule>

getRulesOrBuilder(int index)

public TcpRoute.RouteRuleOrBuilder getRulesOrBuilder(int index)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteRuleOrBuilder

getRulesOrBuilderList()

public List<? extends TcpRoute.RouteRuleOrBuilder> getRulesOrBuilderList()

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Returns
Type Description
List<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteRuleOrBuilder>
public String getSelfLink()

Output only. Server-defined URL of this resource

string self_link = 11;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. Server-defined URL of this resource

string self_link = 11;

Returns
Type Description
ByteString

The bytes for selfLink.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public TcpRoute.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TcpRoute.Builder

mergeFrom(TcpRoute other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public TcpRoute.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
TcpRoute.Builder

putAllLabels(Map<String,String> values)

public TcpRoute.Builder putAllLabels(Map<String,String> values)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
TcpRoute.Builder

putLabels(String key, String value)

public TcpRoute.Builder putLabels(String key, String value)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameters
Name Description
key String
value String
Returns
Type Description
TcpRoute.Builder

removeLabels(String key)

public TcpRoute.Builder removeLabels(String key)

Optional. Set of label tags associated with the TcpRoute resource.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
TcpRoute.Builder

removeRules(int index)

public TcpRoute.Builder removeRules(int index)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.Builder

setCreateTime(Timestamp value)

public TcpRoute.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TcpRoute.Builder

setCreateTime(Timestamp.Builder builderForValue)

public TcpRoute.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TcpRoute.Builder

setDescription(String value)

public TcpRoute.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 4;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public TcpRoute.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 4;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGateways(int index, String value)

public TcpRoute.Builder setGateways(int index, String value)

Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/<gateway_name>

repeated string gateways = 9;

Parameters
Name Description
index int

The index to set the value at.

value String

The gateways to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setMeshes(int index, String value)

public TcpRoute.Builder setMeshes(int index, String value)

Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/<mesh_name> The attached Mesh should be of a type SIDECAR

repeated string meshes = 8;

Parameters
Name Description
index int

The index to set the value at.

value String

The meshes to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setName(String value)

public TcpRoute.Builder setName(String value)

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TcpRoute.Builder setNameBytes(ByteString value)

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

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

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

setRules(int index, TcpRoute.RouteRule value)

public TcpRoute.Builder setRules(int index, TcpRoute.RouteRule value)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameters
Name Description
index int
value TcpRoute.RouteRule
Returns
Type Description
TcpRoute.Builder

setRules(int index, TcpRoute.RouteRule.Builder builderForValue)

public TcpRoute.Builder setRules(int index, TcpRoute.RouteRule.Builder builderForValue)

Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5;

Parameters
Name Description
index int
builderForValue TcpRoute.RouteRule.Builder
Returns
Type Description
TcpRoute.Builder
public TcpRoute.Builder setSelfLink(String value)

Output only. Server-defined URL of this resource

string self_link = 11;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public TcpRoute.Builder setSelfLinkBytes(ByteString value)

Output only. Server-defined URL of this resource

string self_link = 11;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
TcpRoute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public TcpRoute.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
TcpRoute.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TcpRoute.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TcpRoute.Builder