Class NetworkEndpointGroupAppEngine.Builder

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

public static final class NetworkEndpointGroupAppEngine.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupAppEngine.Builder> implements NetworkEndpointGroupAppEngineOrBuilder
 Configuration for an App Engine network endpoint group (NEG).
 The service is optional, may be provided explicitly or in the
 URL mask. The version is optional and can only be provided
 explicitly or in the URL mask when service is present.

 Note: App Engine service must be in the same project and located in the
 same region as the Serverless NEG.
 
Protobuf type google.cloud.compute.v1.NetworkEndpointGroupAppEngine
  • 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<NetworkEndpointGroupAppEngine.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<NetworkEndpointGroupAppEngine.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<NetworkEndpointGroupAppEngine.Builder>
    • getDefaultInstanceForType

      public NetworkEndpointGroupAppEngine 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 NetworkEndpointGroupAppEngine buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NetworkEndpointGroupAppEngine.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<NetworkEndpointGroupAppEngine.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<NetworkEndpointGroupAppEngine.Builder>
    • mergeFrom

      public NetworkEndpointGroupAppEngine.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<NetworkEndpointGroupAppEngine.Builder>
      Throws:
      IOException
    • hasService

      public boolean hasService()
       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Specified by:
      hasService in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      Whether the service field is set.
    • getService

      public String getService()
       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Specified by:
      getService in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Specified by:
      getServiceBytes in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      The bytes for service.
    • setService

      public NetworkEndpointGroupAppEngine.Builder setService(String value)
       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public NetworkEndpointGroupAppEngine.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Optional serving service.
      
       The service name is case-sensitive and must be 1-63
       characters long.
      
       Example value: default, my-service.
       
      optional string service = 373540533;
      Parameters:
      value - The bytes for service 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 service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      hasUrlMask in interface NetworkEndpointGroupAppEngineOrBuilder
      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 service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      getUrlMask in interface NetworkEndpointGroupAppEngineOrBuilder
      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 service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       respectively.
       
      optional string url_mask = 103352252;
      Specified by:
      getUrlMaskBytes in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      The bytes for urlMask.
    • setUrlMask

      public NetworkEndpointGroupAppEngine.Builder setUrlMask(String value)
       An URL
       mask is one of the main components of the Cloud Function.
      
       A template to parse service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       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 service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       respectively.
       
      optional string url_mask = 103352252;
      Returns:
      This builder for chaining.
    • setUrlMaskBytes

      public NetworkEndpointGroupAppEngine.Builder setUrlMaskBytes(com.google.protobuf.ByteString value)
       An URL
       mask is one of the main components of the Cloud Function.
      
       A template to parse service and version fields
       from a request URL. URL mask allows for routing to multiple App Engine
       services without having to create multiple Network Endpoint Groups and
       backend services.
      
       For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same
       Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>.
       The URL mask will parse them to { service = "foo1", version = "v1"
       } and { service = "foo1", version = "v2" }
       respectively.
       
      optional string url_mask = 103352252;
      Parameters:
      value - The bytes for urlMask to set.
      Returns:
      This builder for chaining.
    • hasVersion

      public boolean hasVersion()
       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Specified by:
      hasVersion in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public String getVersion()
       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Specified by:
      getVersion in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Specified by:
      getVersionBytes in interface NetworkEndpointGroupAppEngineOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public NetworkEndpointGroupAppEngine.Builder setVersion(String value)
       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public NetworkEndpointGroupAppEngine.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Optional serving version.
      
       The version name is case-sensitive and must be 1-100
       characters long.
      
       Example value: v1, v2.
       
      optional string version = 351608024;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.