Class Egress.EgressPolicySpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.network.v1beta.Egress.EgressPolicySpec
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Egress.EgressPolicySpecOrBuilder
Enclosing class:
Egress

public static final class Egress.EgressPolicySpec extends com.google.protobuf.GeneratedMessage implements Egress.EgressPolicySpecOrBuilder
Protobuf type namespace.cloud.network.v1beta.EgressPolicySpec
See Also:
  • Field Details

    • MODE_FIELD_NUMBER

      public static final int MODE_FIELD_NUMBER
      See Also:
    • DEEP_PACKET_INSPECTION_FIELD_NUMBER

      public static final int DEEP_PACKET_INSPECTION_FIELD_NUMBER
      See Also:
    • RULES_FIELD_NUMBER

      public static final int RULES_FIELD_NUMBER
      See Also:
    • ADDITIONAL_RULESETS_FIELD_NUMBER

      public static final int ADDITIONAL_RULESETS_FIELD_NUMBER
      See Also:
    • ALLOWED_EGRESS_DOMAINS_FIELD_NUMBER

      public static final int ALLOWED_EGRESS_DOMAINS_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
    • getModeValue

      public int getModeValue()
      .namespace.cloud.network.v1beta.EgressPolicySpec.Mode mode = 2;
      Specified by:
      getModeValue in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • getMode

      public Egress.EgressPolicySpec.Mode getMode()
      .namespace.cloud.network.v1beta.EgressPolicySpec.Mode mode = 2;
      Specified by:
      getMode in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      The mode.
    • getDeepPacketInspection

      public boolean getDeepPacketInspection()
       Enables HTTP and HTTPS interception for PROXY and INJECT rules.
       
      bool deep_packet_inspection = 3;
      Specified by:
      getDeepPacketInspection in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      The deepPacketInspection.
    • getRulesList

      public List<Egress.EgressPolicySpec.Rule> getRulesList()
       Rules applied in order to outbound connections.
       
      repeated .namespace.cloud.network.v1beta.EgressPolicySpec.Rule rules = 4;
      Specified by:
      getRulesList in interface Egress.EgressPolicySpecOrBuilder
    • getRulesOrBuilderList

      public List<? extends Egress.EgressPolicySpec.RuleOrBuilder> getRulesOrBuilderList()
       Rules applied in order to outbound connections.
       
      repeated .namespace.cloud.network.v1beta.EgressPolicySpec.Rule rules = 4;
      Specified by:
      getRulesOrBuilderList in interface Egress.EgressPolicySpecOrBuilder
    • getRulesCount

      public int getRulesCount()
       Rules applied in order to outbound connections.
       
      repeated .namespace.cloud.network.v1beta.EgressPolicySpec.Rule rules = 4;
      Specified by:
      getRulesCount in interface Egress.EgressPolicySpecOrBuilder
    • getRules

      public Egress.EgressPolicySpec.Rule getRules(int index)
       Rules applied in order to outbound connections.
       
      repeated .namespace.cloud.network.v1beta.EgressPolicySpec.Rule rules = 4;
      Specified by:
      getRules in interface Egress.EgressPolicySpecOrBuilder
    • getRulesOrBuilder

      public Egress.EgressPolicySpec.RuleOrBuilder getRulesOrBuilder(int index)
       Rules applied in order to outbound connections.
       
      repeated .namespace.cloud.network.v1beta.EgressPolicySpec.Rule rules = 4;
      Specified by:
      getRulesOrBuilder in interface Egress.EgressPolicySpecOrBuilder
    • getAdditionalRulesetsList

      public com.google.protobuf.ProtocolStringList getAdditionalRulesetsList()
       Tags of Namespace-managed egress rulesets appended to rules.
       
      repeated string additional_rulesets = 5;
      Specified by:
      getAdditionalRulesetsList in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      A list containing the additionalRulesets.
    • getAdditionalRulesetsCount

      public int getAdditionalRulesetsCount()
       Tags of Namespace-managed egress rulesets appended to rules.
       
      repeated string additional_rulesets = 5;
      Specified by:
      getAdditionalRulesetsCount in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      The count of additionalRulesets.
    • getAdditionalRulesets

      public String getAdditionalRulesets(int index)
       Tags of Namespace-managed egress rulesets appended to rules.
       
      repeated string additional_rulesets = 5;
      Specified by:
      getAdditionalRulesets in interface Egress.EgressPolicySpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The additionalRulesets at the given index.
    • getAdditionalRulesetsBytes

      public com.google.protobuf.ByteString getAdditionalRulesetsBytes(int index)
       Tags of Namespace-managed egress rulesets appended to rules.
       
      repeated string additional_rulesets = 5;
      Specified by:
      getAdditionalRulesetsBytes in interface Egress.EgressPolicySpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the additionalRulesets at the given index.
    • getAllowedEgressDomainsList

      @Deprecated public com.google.protobuf.ProtocolStringList getAllowedEgressDomainsList()
      Deprecated.
      namespace.cloud.network.v1beta.EgressPolicySpec.allowed_egress_domains is deprecated. See proto/namespace/cloud/network/v1beta/egress.proto;l=104
       Deprecated. Only supported in inline egress policies during instance
       creation. Use `ALLOW` rules instead.
       
      repeated string allowed_egress_domains = 1 [deprecated = true];
      Specified by:
      getAllowedEgressDomainsList in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      A list containing the allowedEgressDomains.
    • getAllowedEgressDomainsCount

      @Deprecated public int getAllowedEgressDomainsCount()
      Deprecated.
      namespace.cloud.network.v1beta.EgressPolicySpec.allowed_egress_domains is deprecated. See proto/namespace/cloud/network/v1beta/egress.proto;l=104
       Deprecated. Only supported in inline egress policies during instance
       creation. Use `ALLOW` rules instead.
       
      repeated string allowed_egress_domains = 1 [deprecated = true];
      Specified by:
      getAllowedEgressDomainsCount in interface Egress.EgressPolicySpecOrBuilder
      Returns:
      The count of allowedEgressDomains.
    • getAllowedEgressDomains

      @Deprecated public String getAllowedEgressDomains(int index)
      Deprecated.
      namespace.cloud.network.v1beta.EgressPolicySpec.allowed_egress_domains is deprecated. See proto/namespace/cloud/network/v1beta/egress.proto;l=104
       Deprecated. Only supported in inline egress policies during instance
       creation. Use `ALLOW` rules instead.
       
      repeated string allowed_egress_domains = 1 [deprecated = true];
      Specified by:
      getAllowedEgressDomains in interface Egress.EgressPolicySpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedEgressDomains at the given index.
    • getAllowedEgressDomainsBytes

      @Deprecated public com.google.protobuf.ByteString getAllowedEgressDomainsBytes(int index)
      Deprecated.
      namespace.cloud.network.v1beta.EgressPolicySpec.allowed_egress_domains is deprecated. See proto/namespace/cloud/network/v1beta/egress.proto;l=104
       Deprecated. Only supported in inline egress policies during instance
       creation. Use `ALLOW` rules instead.
       
      repeated string allowed_egress_domains = 1 [deprecated = true];
      Specified by:
      getAllowedEgressDomainsBytes in interface Egress.EgressPolicySpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedEgressDomains at the given index.
    • 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 Egress.EgressPolicySpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Egress.EgressPolicySpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Egress.EgressPolicySpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Egress.EgressPolicySpec.Builder newBuilder()
    • newBuilder

      public static Egress.EgressPolicySpec.Builder newBuilder(Egress.EgressPolicySpec prototype)
    • toBuilder

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

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

      public static Egress.EgressPolicySpec getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Egress.EgressPolicySpec> 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 Egress.EgressPolicySpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder