Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public NetworkEndpointGroupAppEngine 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public NetworkEndpointGroupAppEngine.Builder 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()
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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()
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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()
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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)
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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

        public NetworkEndpointGroupAppEngine.Builder clearUrlMask()
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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)
         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 URLs "foo1-dot-appname.appspot.com/v1" and "foo1-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

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