Class NetworkEndpointGroupAppEngine (1.52.0)

public final class NetworkEndpointGroupAppEngine extends GeneratedMessageV3 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

Static Fields

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

URL_MASK_FIELD_NUMBER

public static final int URL_MASK_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkEndpointGroupAppEngine getDefaultInstance()
Returns
Type Description
NetworkEndpointGroupAppEngine

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NetworkEndpointGroupAppEngine.Builder newBuilder()
Returns
Type Description
NetworkEndpointGroupAppEngine.Builder

newBuilder(NetworkEndpointGroupAppEngine prototype)

public static NetworkEndpointGroupAppEngine.Builder newBuilder(NetworkEndpointGroupAppEngine prototype)
Parameter
Name Description
prototype NetworkEndpointGroupAppEngine
Returns
Type Description
NetworkEndpointGroupAppEngine.Builder

parseDelimitedFrom(InputStream input)

public static NetworkEndpointGroupAppEngine parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworkEndpointGroupAppEngine parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkEndpointGroupAppEngine parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkEndpointGroupAppEngine parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworkEndpointGroupAppEngine parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworkEndpointGroupAppEngine parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkEndpointGroupAppEngine
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworkEndpointGroupAppEngine> parser()
Returns
Type Description
Parser<NetworkEndpointGroupAppEngine>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NetworkEndpointGroupAppEngine getDefaultInstanceForType()
Returns
Type Description
NetworkEndpointGroupAppEngine

getParserForType()

public Parser<NetworkEndpointGroupAppEngine> getParserForType()
Returns
Type Description
Parser<NetworkEndpointGroupAppEngine>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
String

The service.

getServiceBytes()

public 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;

Returns
Type Description
ByteString

The bytes for service.

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 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
Type Description
String

The urlMask.

getUrlMaskBytes()

public 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 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
Type Description
ByteString

The bytes for urlMask.

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;

Returns
Type Description
String

The version.

getVersionBytes()

public 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;

Returns
Type Description
ByteString

The bytes for version.

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;

Returns
Type Description
boolean

Whether the service field is set.

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 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
Type Description
boolean

Whether the urlMask field is set.

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;

Returns
Type Description
boolean

Whether the version field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworkEndpointGroupAppEngine.Builder newBuilderForType()
Returns
Type Description
NetworkEndpointGroupAppEngine.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkEndpointGroupAppEngine.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworkEndpointGroupAppEngine.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworkEndpointGroupAppEngine.Builder toBuilder()
Returns
Type Description
NetworkEndpointGroupAppEngine.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException