Class TlsRoute.Builder (0.15.0)

public static final class TlsRoute.Builder extends GeneratedMessageV3.Builder<TlsRoute.Builder> implements TlsRouteOrBuilder

TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.

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

Implements

TlsRouteOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllGateways(Iterable<String> values)

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

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameter
NameDescription
valuesIterable<String>

The gateways to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

addAllMeshes(Iterable<String> values)

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

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameter
NameDescription
valuesIterable<String>

The meshes to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

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

public TlsRoute.Builder addAllRules(Iterable<? extends TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.events.cloud.networkservices.v1.TlsRoute.RouteRule>
Returns
TypeDescription
TlsRoute.Builder

addGateways(String value)

public TlsRoute.Builder addGateways(String value)

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameter
NameDescription
valueString

The gateways to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

addGatewaysBytes(ByteString value)

public TlsRoute.Builder addGatewaysBytes(ByteString value)

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameter
NameDescription
valueByteString

The bytes of the gateways to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

addMeshes(String value)

public TlsRoute.Builder addMeshes(String value)

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameter
NameDescription
valueString

The meshes to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

addMeshesBytes(ByteString value)

public TlsRoute.Builder addMeshesBytes(ByteString value)

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameter
NameDescription
valueByteString

The bytes of the meshes to add.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRules(TlsRoute.RouteRule value)

public TlsRoute.Builder addRules(TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
valueTlsRoute.RouteRule
Returns
TypeDescription
TlsRoute.Builder

addRules(TlsRoute.RouteRule.Builder builderForValue)

public TlsRoute.Builder addRules(TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
builderForValueTlsRoute.RouteRule.Builder
Returns
TypeDescription
TlsRoute.Builder

addRules(int index, TlsRoute.RouteRule value)

public TlsRoute.Builder addRules(int index, TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameters
NameDescription
indexint
valueTlsRoute.RouteRule
Returns
TypeDescription
TlsRoute.Builder

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

public TlsRoute.Builder addRules(int index, TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameters
NameDescription
indexint
builderForValueTlsRoute.RouteRule.Builder
Returns
TypeDescription
TlsRoute.Builder

addRulesBuilder()

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
TlsRoute.RouteRule.Builder

addRulesBuilder(int index)

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TlsRoute.RouteRule.Builder

build()

public TlsRoute build()
Returns
TypeDescription
TlsRoute

buildPartial()

public TlsRoute buildPartial()
Returns
TypeDescription
TlsRoute

clear()

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

clearCreateTime()

public TlsRoute.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TlsRoute.Builder

clearDescription()

public TlsRoute.Builder clearDescription()

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

string description = 4;

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGateways()

public TlsRoute.Builder clearGateways()

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

clearMeshes()

public TlsRoute.Builder clearMeshes()

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

clearName()

public TlsRoute.Builder clearName()

Required. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.

string name = 1;

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRules()

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
TlsRoute.Builder
public TlsRoute.Builder clearSelfLink()

Output only. Server-defined URL of this resource

string self_link = 8;

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

clearUpdateTime()

public TlsRoute.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TlsRoute.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public TlsRoute getDefaultInstanceForType()
Returns
TypeDescription
TlsRoute

getDescription()

public String getDescription()

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

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGateways(int index)

public String getGateways(int index)

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The gateways at the given index.

getGatewaysBytes(int index)

public ByteString getGatewaysBytes(int index)

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the gateways at the given index.

getGatewaysCount()

public int getGatewaysCount()

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Returns
TypeDescription
int

The count of gateways.

getGatewaysList()

public ProtocolStringList getGatewaysList()

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the gateways.

getMeshes(int index)

public String getMeshes(int index)

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The meshes at the given index.

getMeshesBytes(int index)

public ByteString getMeshesBytes(int index)

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the meshes at the given index.

getMeshesCount()

public int getMeshesCount()

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Returns
TypeDescription
int

The count of meshes.

getMeshesList()

public ProtocolStringList getMeshesList()

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the meshes.

getName()

public String getName()

Required. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getRules(int index)

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TlsRoute.RouteRule

getRulesBuilder(int index)

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TlsRoute.RouteRule.Builder

getRulesBuilderList()

public List<TlsRoute.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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
int

getRulesList()

public List<TlsRoute.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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
List<RouteRule>

getRulesOrBuilder(int index)

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TlsRoute.RouteRuleOrBuilder

getRulesOrBuilderList()

public List<? extends TlsRoute.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.TlsRoute.RouteRule rules = 5;

Returns
TypeDescription
List<? extends com.google.events.cloud.networkservices.v1.TlsRoute.RouteRuleOrBuilder>
public String getSelfLink()

Output only. Server-defined URL of this resource

string self_link = 8;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. Server-defined URL of this resource

string self_link = 8;

Returns
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public TlsRoute.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TlsRoute.Builder

mergeFrom(TlsRoute other)

public TlsRoute.Builder mergeFrom(TlsRoute other)
Parameter
NameDescription
otherTlsRoute
Returns
TypeDescription
TlsRoute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public TlsRoute.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TlsRoute.Builder

removeRules(int index)

public TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TlsRoute.Builder

setCreateTime(Timestamp value)

public TlsRoute.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TlsRoute.Builder

setCreateTime(Timestamp.Builder builderForValue)

public TlsRoute.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TlsRoute.Builder

setDescription(String value)

public TlsRoute.Builder setDescription(String value)

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

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public TlsRoute.Builder setDescriptionBytes(ByteString value)

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

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGateways(int index, String value)

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

Optional. Gateways defines a list of gateways this TlsRoute 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 = 7;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The gateways to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setMeshes(int index, String value)

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

Optional. Meshes defines a list of meshes this TlsRoute 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 = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The meshes to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setName(String value)

public TlsRoute.Builder setName(String value)

Required. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TlsRoute.Builder setNameBytes(ByteString value)

Required. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

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

public TlsRoute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TlsRoute.Builder
Overrides

setRules(int index, TlsRoute.RouteRule value)

public TlsRoute.Builder setRules(int index, TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameters
NameDescription
indexint
valueTlsRoute.RouteRule
Returns
TypeDescription
TlsRoute.Builder

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

public TlsRoute.Builder setRules(int index, TlsRoute.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.TlsRoute.RouteRule rules = 5;

Parameters
NameDescription
indexint
builderForValueTlsRoute.RouteRule.Builder
Returns
TypeDescription
TlsRoute.Builder
public TlsRoute.Builder setSelfLink(String value)

Output only. Server-defined URL of this resource

string self_link = 8;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public TlsRoute.Builder setSelfLinkBytes(ByteString value)

Output only. Server-defined URL of this resource

string self_link = 8;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
TlsRoute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public TlsRoute.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TlsRoute.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TlsRoute.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TlsRoute.Builder