Class NetworkEndpointGroupCloudFunction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction.Builder
All Implemented Interfaces:
NetworkEndpointGroupCloudFunctionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NetworkEndpointGroupCloudFunction

public static final class NetworkEndpointGroupCloudFunction.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder> 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
  • 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.Builder<NetworkEndpointGroupCloudFunction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
    • getDefaultInstanceForType

      public NetworkEndpointGroupCloudFunction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public NetworkEndpointGroupCloudFunction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
    • mergeFrom

      public NetworkEndpointGroupCloudFunction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
      Throws:
      IOException
    • 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.
    • setFunction

       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;
      Parameters:
      value - The function to set.
      Returns:
      This builder for chaining.
    • clearFunction

       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;
      Returns:
      This builder for chaining.
    • setFunctionBytes

      public NetworkEndpointGroupCloudFunction.Builder setFunctionBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for function to set.
      Returns:
      This builder for chaining.
    • 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.
    • setUrlMask

       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;
      Parameters:
      value - The urlMask to set.
      Returns:
      This builder for chaining.
    • clearUrlMask

       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;
      Returns:
      This builder for chaining.
    • setUrlMaskBytes

      public NetworkEndpointGroupCloudFunction.Builder setUrlMaskBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for urlMask to set.
      Returns:
      This builder for chaining.