Class TlsRoute.RouteAction.Builder (0.9.0)

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

The specifications for routing traffic and applying associated policies.

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

Static Methods

getDescriptor()

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

Methods

addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values)

public TlsRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.TlsRoute.RouteDestination>
Returns
Type Description
TlsRoute.RouteAction.Builder

addDestinations(TlsRoute.RouteDestination value)

public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination value)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TlsRoute.RouteDestination
Returns
Type Description
TlsRoute.RouteAction.Builder

addDestinations(TlsRoute.RouteDestination.Builder builderForValue)

public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination.Builder builderForValue)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TlsRoute.RouteDestination.Builder
Returns
Type Description
TlsRoute.RouteAction.Builder

addDestinations(int index, TlsRoute.RouteDestination value)

public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination value)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TlsRoute.RouteDestination
Returns
Type Description
TlsRoute.RouteAction.Builder

addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)

public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TlsRoute.RouteDestination.Builder
Returns
Type Description
TlsRoute.RouteAction.Builder

addDestinationsBuilder()

public TlsRoute.RouteDestination.Builder addDestinationsBuilder()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteDestination.Builder

addDestinationsBuilder(int index)

public TlsRoute.RouteDestination.Builder addDestinationsBuilder(int index)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteDestination.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TlsRoute.RouteAction build()
Returns
Type Description
TlsRoute.RouteAction

buildPartial()

public TlsRoute.RouteAction buildPartial()
Returns
Type Description
TlsRoute.RouteAction

clear()

public TlsRoute.RouteAction.Builder clear()
Returns
Type Description
TlsRoute.RouteAction.Builder
Overrides

clearDestinations()

public TlsRoute.RouteAction.Builder clearDestinations()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TlsRoute.RouteAction.Builder clone()
Returns
Type Description
TlsRoute.RouteAction.Builder
Overrides

getDefaultInstanceForType()

public TlsRoute.RouteAction getDefaultInstanceForType()
Returns
Type Description
TlsRoute.RouteAction

getDescriptorForType()

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

getDestinations(int index)

public TlsRoute.RouteDestination getDestinations(int index)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteDestination

getDestinationsBuilder(int index)

public TlsRoute.RouteDestination.Builder getDestinationsBuilder(int index)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteDestination.Builder

getDestinationsBuilderList()

public List<TlsRoute.RouteDestination.Builder> getDestinationsBuilderList()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getDestinationsCount()

public int getDestinationsCount()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getDestinationsList()

public List<TlsRoute.RouteDestination> getDestinationsList()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<RouteDestination>

getDestinationsOrBuilder(int index)

public TlsRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteDestinationOrBuilder

getDestinationsOrBuilderList()

public List<? extends TlsRoute.RouteDestinationOrBuilder> getDestinationsOrBuilderList()

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.TlsRoute.RouteDestinationOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TlsRoute.RouteAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDestinations(int index)

public TlsRoute.RouteAction.Builder removeDestinations(int index)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteAction.Builder

setDestinations(int index, TlsRoute.RouteDestination value)

public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination value)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TlsRoute.RouteDestination
Returns
Type Description
TlsRoute.RouteAction.Builder

setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)

public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TlsRoute.RouteDestination.Builder
Returns
Type Description
TlsRoute.RouteAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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