Class ExtensionChain (0.2.0)

public final class ExtensionChain extends GeneratedMessageV3 implements ExtensionChainOrBuilder

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

Protobuf type google.cloud.networkservices.v1.ExtensionChain

Static Fields

EXTENSIONS_FIELD_NUMBER

public static final int EXTENSIONS_FIELD_NUMBER
Field Value
Type Description
int

MATCH_CONDITION_FIELD_NUMBER

public static final int MATCH_CONDITION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExtensionChain getDefaultInstance()
Returns
Type Description
ExtensionChain

getDescriptor()

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

newBuilder()

public static ExtensionChain.Builder newBuilder()
Returns
Type Description
ExtensionChain.Builder

newBuilder(ExtensionChain prototype)

public static ExtensionChain.Builder newBuilder(ExtensionChain prototype)
Parameter
Name Description
prototype ExtensionChain
Returns
Type Description
ExtensionChain.Builder

parseDelimitedFrom(InputStream input)

public static ExtensionChain parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExtensionChain parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExtensionChain parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExtensionChain parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExtensionChain parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExtensionChain parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExtensionChain parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionChain
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExtensionChain> parser()
Returns
Type Description
Parser<ExtensionChain>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ExtensionChain getDefaultInstanceForType()
Returns
Type Description
ExtensionChain

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

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.

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.

getParserForType()

public Parser<ExtensionChain> getParserForType()
Returns
Type Description
Parser<ExtensionChain>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ExtensionChain.Builder newBuilderForType()
Returns
Type Description
ExtensionChain.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExtensionChain.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExtensionChain.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ExtensionChain.Builder toBuilder()
Returns
Type Description
ExtensionChain.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException