Class ExtensionChain

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.ExtensionChain
All Implemented Interfaces:
ExtensionChainOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ExtensionChain extends com.google.protobuf.GeneratedMessage implements ExtensionChainOrBuilder
 A single extension chain wrapper that contains the match conditions and
 extensions to execute.
 
Protobuf type google.cloud.networkservices.v1.ExtensionChain
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • MATCH_CONDITION_FIELD_NUMBER

      public static final int MATCH_CONDITION_FIELD_NUMBER
      See Also:
    • EXTENSIONS_FIELD_NUMBER

      public static final int EXTENSIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      getName in interface ExtensionChainOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ExtensionChainOrBuilder
      Returns:
      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];
      Specified by:
      hasMatchCondition in interface ExtensionChainOrBuilder
      Returns:
      Whether the matchCondition field is set.
    • 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];
      Specified by:
      getMatchCondition in interface ExtensionChainOrBuilder
      Returns:
      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];
      Specified by:
      getMatchConditionOrBuilder in interface ExtensionChainOrBuilder
    • 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];
      Specified by:
      getExtensionsList in interface ExtensionChainOrBuilder
    • 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];
      Specified by:
      getExtensionsOrBuilderList in interface ExtensionChainOrBuilder
    • 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];
      Specified by:
      getExtensionsCount in interface ExtensionChainOrBuilder
    • getExtensions

      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];
      Specified by:
      getExtensions in interface ExtensionChainOrBuilder
    • getExtensionsOrBuilder

      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];
      Specified by:
      getExtensionsOrBuilder in interface ExtensionChainOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ExtensionChain parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExtensionChain parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExtensionChain parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExtensionChain parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExtensionChain parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExtensionChain parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExtensionChain parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ExtensionChain.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExtensionChain.Builder newBuilder()
    • newBuilder

      public static ExtensionChain.Builder newBuilder(ExtensionChain prototype)
    • toBuilder

      public ExtensionChain.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExtensionChain.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExtensionChain getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExtensionChain> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExtensionChain> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ExtensionChain getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder