Class NetworkEndpointGroupAppEngine (1.44.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
TypeDescription
int

URL_MASK_FIELD_NUMBER

public static final int URL_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkEndpointGroupAppEngine getDefaultInstance()
Returns
TypeDescription
NetworkEndpointGroupAppEngine

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NetworkEndpointGroupAppEngine.Builder newBuilder()
Returns
TypeDescription
NetworkEndpointGroupAppEngine.Builder

newBuilder(NetworkEndpointGroupAppEngine prototype)

public static NetworkEndpointGroupAppEngine.Builder newBuilder(NetworkEndpointGroupAppEngine prototype)
Parameter
NameDescription
prototypeNetworkEndpointGroupAppEngine
Returns
TypeDescription
NetworkEndpointGroupAppEngine.Builder

parseDelimitedFrom(InputStream input)

public static NetworkEndpointGroupAppEngine parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkEndpointGroupAppEngine parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkEndpointGroupAppEngine parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkEndpointGroupAppEngine parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkEndpointGroupAppEngine parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkEndpointGroupAppEngine parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpointGroupAppEngine parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroupAppEngine
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkEndpointGroupAppEngine> parser()
Returns
TypeDescription
Parser<NetworkEndpointGroupAppEngine>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NetworkEndpointGroupAppEngine getDefaultInstanceForType()
Returns
TypeDescription
NetworkEndpointGroupAppEngine

getParserForType()

public Parser<NetworkEndpointGroupAppEngine> getParserForType()
Returns
TypeDescription
Parser<NetworkEndpointGroupAppEngine>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for service.

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;

Returns
TypeDescription
String

The urlMask.

getUrlMaskBytes()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the service field is set.

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;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the version field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkEndpointGroupAppEngine.Builder newBuilderForType()
Returns
TypeDescription
NetworkEndpointGroupAppEngine.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkEndpointGroupAppEngine.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkEndpointGroupAppEngine.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkEndpointGroupAppEngine.Builder toBuilder()
Returns
TypeDescription
NetworkEndpointGroupAppEngine.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException