public static final class ExtensionChain.Builder extends GeneratedMessage.Builder<ExtensionChain.Builder> implements ExtensionChainOrBuilderA single extension chain wrapper that contains the match conditions and extensions to execute.
Protobuf type google.cloud.networkservices.v1.ExtensionChain
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExtensionChain.BuilderImplements
ExtensionChainOrBuilderStatic 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 |
|
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 |
|
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 and LbEdgeExtension 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 |
|
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. |
getDefaultInstanceForType()
public ExtensionChain getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExtensionChain |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExtensionChain.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExtensionChain.Builder |
|
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 |
|
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 and LbEdgeExtension 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 and LbEdgeExtension 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 and LbEdgeExtension 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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionChain.Builder |
This builder for chaining. |