Class NetworkEndpointGroupCloudRun (1.65.0)

public final class NetworkEndpointGroupCloudRun extends GeneratedMessageV3 implements NetworkEndpointGroupCloudRunOrBuilder

Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.

Protobuf type google.cloud.compute.v1.NetworkEndpointGroupCloudRun

Static Fields

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

TAG_FIELD_NUMBER

public static final int TAG_FIELD_NUMBER
Field Value
Type Description
int

URL_MASK_FIELD_NUMBER

public static final int URL_MASK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkEndpointGroupCloudRun getDefaultInstance()
Returns
Type Description
NetworkEndpointGroupCloudRun

getDescriptor()

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

newBuilder()

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

newBuilder(NetworkEndpointGroupCloudRun prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NetworkEndpointGroupCloudRun getDefaultInstanceForType()
Returns
Type Description
NetworkEndpointGroupCloudRun

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getService()

public String getService()

Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

optional string service = 373540533;

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

optional string service = 373540533;

Returns
Type Description
ByteString

The bytes for service.

getTag()

public String getTag()

Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

optional string tag = 114586;

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

optional string tag = 114586;

Returns
Type Description
ByteString

The bytes for tag.

getUrlMask()

public String getUrlMask()

An URL mask is one of the main components of the Cloud Function. A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask <tag>.domain.com/<service>. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } 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 <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask <tag>.domain.com/<service>. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

optional string url_mask = 103352252;

Returns
Type Description
ByteString

The bytes for urlMask.

hasService()

public boolean hasService()

Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

optional string service = 373540533;

Returns
Type Description
boolean

Whether the service field is set.

hasTag()

public boolean hasTag()

Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

optional string tag = 114586;

Returns
Type Description
boolean

Whether the tag 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 <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask <tag>.domain.com/<service>. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

optional string url_mask = 103352252;

Returns
Type Description
boolean

Whether the urlMask 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 NetworkEndpointGroupCloudRun.Builder newBuilderForType()
Returns
Type Description
NetworkEndpointGroupCloudRun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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