Class NetworkEndpointGroupCloudFunction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction
All Implemented Interfaces:
NetworkEndpointGroupCloudFunctionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NetworkEndpointGroupCloudFunction extends com.google.protobuf.GeneratedMessage implements NetworkEndpointGroupCloudFunctionOrBuilder
 Configuration for a Cloud Function network endpoint group (NEG).
 The function must be provided explicitly or in the URL mask.

 Note: Cloud Function must be in the same project and located in the same
 region as the Serverless NEG.
 
Protobuf type google.cloud.compute.v1.NetworkEndpointGroupCloudFunction
See Also:
  • Field Details

  • 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
    • hasFunction

      public boolean hasFunction()
       A user-defined name of the Cloud Function.
      
       The function name is case-sensitive and must be 1-63
       characters long.
      
       Example value: func1.
       
      optional string function = 307196888;
      Specified by:
      hasFunction in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      Whether the function field is set.
    • getFunction

      public String getFunction()
       A user-defined name of the Cloud Function.
      
       The function name is case-sensitive and must be 1-63
       characters long.
      
       Example value: func1.
       
      optional string function = 307196888;
      Specified by:
      getFunction in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      The function.
    • getFunctionBytes

      public com.google.protobuf.ByteString getFunctionBytes()
       A user-defined name of the Cloud Function.
      
       The function name is case-sensitive and must be 1-63
       characters long.
      
       Example value: func1.
       
      optional string function = 307196888;
      Specified by:
      getFunctionBytes in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      The bytes for function.
    • hasUrlMask

      public boolean hasUrlMask()
       An URL
       mask is one of the main components of the Cloud Function.
      
       A template to parse function field from a request URL. URL
       mask allows for routing to multiple Cloud Functions without having to
       create multiple Network Endpoint Groups and backend services.
      
       For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the same
       Serverless NEG with URL mask /<function>. The URL
       mask will parse them to { function = "function1" } and{ function = "function2" } respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      hasUrlMask in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      Whether the urlMask field is set.
    • getUrlMask

      public String getUrlMask()
       An URL
       mask is one of the main components of the Cloud Function.
      
       A template to parse function field from a request URL. URL
       mask allows for routing to multiple Cloud Functions without having to
       create multiple Network Endpoint Groups and backend services.
      
       For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the same
       Serverless NEG with URL mask /<function>. The URL
       mask will parse them to { function = "function1" } and{ function = "function2" } respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      getUrlMask in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      The urlMask.
    • getUrlMaskBytes

      public com.google.protobuf.ByteString getUrlMaskBytes()
       An URL
       mask is one of the main components of the Cloud Function.
      
       A template to parse function field from a request URL. URL
       mask allows for routing to multiple Cloud Functions without having to
       create multiple Network Endpoint Groups and backend services.
      
       For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the same
       Serverless NEG with URL mask /<function>. The URL
       mask will parse them to { function = "function1" } and{ function = "function2" } respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      getUrlMaskBytes in interface NetworkEndpointGroupCloudFunctionOrBuilder
      Returns:
      The bytes for urlMask.
    • 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 NetworkEndpointGroupCloudFunction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static NetworkEndpointGroupCloudFunction.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static NetworkEndpointGroupCloudFunction getDefaultInstance()
    • parser

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

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