Class ExtensionChain.Builder (0.1.0)

public static final class ExtensionChain.Builder extends GeneratedMessageV3.Builder<ExtensionChain.Builder> implements ExtensionChainOrBuilder

A single extension chain wrapper that contains the match conditions and extensions to execute.

Protobuf type google.cloud.networkservices.v1.ExtensionChain

Static Methods

getDescriptor()

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

Methods

addAllExtensions(Iterable<? extends ExtensionChain.Extension> values)

public ExtensionChain.Builder addAllExtensions(Iterable<? extends ExtensionChain.Extension> values)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.ExtensionChain.Extension>
Returns
Type Description
ExtensionChain.Builder

addExtensions(ExtensionChain.Extension value)

public ExtensionChain.Builder addExtensions(ExtensionChain.Extension value)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExtensionChain.Extension
Returns
Type Description
ExtensionChain.Builder

addExtensions(ExtensionChain.Extension.Builder builderForValue)

public ExtensionChain.Builder addExtensions(ExtensionChain.Extension.Builder builderForValue)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ExtensionChain.Extension.Builder
Returns
Type Description
ExtensionChain.Builder

addExtensions(int index, ExtensionChain.Extension value)

public ExtensionChain.Builder addExtensions(int index, ExtensionChain.Extension value)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ExtensionChain.Extension
Returns
Type Description
ExtensionChain.Builder

addExtensions(int index, ExtensionChain.Extension.Builder builderForValue)

public ExtensionChain.Builder addExtensions(int index, ExtensionChain.Extension.Builder builderForValue)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ExtensionChain.Extension.Builder
Returns
Type Description
ExtensionChain.Builder

addExtensionsBuilder()

public ExtensionChain.Extension.Builder addExtensionsBuilder()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.Extension.Builder

addExtensionsBuilder(int index)

public ExtensionChain.Extension.Builder addExtensionsBuilder(int index)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExtensionChain.Extension.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExtensionChain build()
Returns
Type Description
ExtensionChain

buildPartial()

public ExtensionChain buildPartial()
Returns
Type Description
ExtensionChain

clear()

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

clearExtensions()

public ExtensionChain.Builder clearExtensions()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMatchCondition()

public ExtensionChain.Builder clearMatchCondition()

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.Builder

clearName()

public ExtensionChain.Builder clearName()

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ExtensionChain getDefaultInstanceForType()
Returns
Type Description
ExtensionChain

getDescriptorForType()

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

getExtensions(int index)

public ExtensionChain.Extension getExtensions(int index)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExtensionChain.Extension

getExtensionsBuilder(int index)

public ExtensionChain.Extension.Builder getExtensionsBuilder(int index)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExtensionChain.Extension.Builder

getExtensionsBuilderList()

public List<ExtensionChain.Extension.Builder> getExtensionsBuilderList()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getExtensionsCount()

public int getExtensionsCount()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getExtensionsList()

public List<ExtensionChain.Extension> getExtensionsList()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Extension>

getExtensionsOrBuilder(int index)

public ExtensionChain.ExtensionOrBuilder getExtensionsOrBuilder(int index)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExtensionChain.ExtensionOrBuilder

getExtensionsOrBuilderList()

public List<? extends ExtensionChain.ExtensionOrBuilder> getExtensionsOrBuilderList()

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.ExtensionChain.ExtensionOrBuilder>

getMatchCondition()

public ExtensionChain.MatchCondition getMatchCondition()

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.MatchCondition

The matchCondition.

getMatchConditionBuilder()

public ExtensionChain.MatchCondition.Builder getMatchConditionBuilder()

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.MatchCondition.Builder

getMatchConditionOrBuilder()

public ExtensionChain.MatchConditionOrBuilder getMatchConditionOrBuilder()

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExtensionChain.MatchConditionOrBuilder

getName()

public String getName()

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

hasMatchCondition()

public boolean hasMatchCondition()

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the matchCondition field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExtensionChain other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMatchCondition(ExtensionChain.MatchCondition value)

public ExtensionChain.Builder mergeMatchCondition(ExtensionChain.MatchCondition value)

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExtensionChain.MatchCondition
Returns
Type Description
ExtensionChain.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExtensions(int index)

public ExtensionChain.Builder removeExtensions(int index)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExtensionChain.Builder

setExtensions(int index, ExtensionChain.Extension value)

public ExtensionChain.Builder setExtensions(int index, ExtensionChain.Extension value)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ExtensionChain.Extension
Returns
Type Description
ExtensionChain.Builder

setExtensions(int index, ExtensionChain.Extension.Builder builderForValue)

public ExtensionChain.Builder setExtensions(int index, ExtensionChain.Extension.Builder builderForValue)

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ExtensionChain.Extension.Builder
Returns
Type Description
ExtensionChain.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMatchCondition(ExtensionChain.MatchCondition value)

public ExtensionChain.Builder setMatchCondition(ExtensionChain.MatchCondition value)

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExtensionChain.MatchCondition
Returns
Type Description
ExtensionChain.Builder

setMatchCondition(ExtensionChain.MatchCondition.Builder builderForValue)

public ExtensionChain.Builder setMatchCondition(ExtensionChain.MatchCondition.Builder builderForValue)

Required. Conditions under which this chain is invoked for a request.

.google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ExtensionChain.MatchCondition.Builder
Returns
Type Description
ExtensionChain.Builder

setName(String value)

public ExtensionChain.Builder setName(String value)

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExtensionChain.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExtensionChain.Builder setNameBytes(ByteString value)

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExtensionChain.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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