Class NetworkEndpointGroupCloudRun (1.33.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
TypeDescription
int

TAG_FIELD_NUMBER

public static final int TAG_FIELD_NUMBER
Field Value
TypeDescription
int

URL_MASK_FIELD_NUMBER

public static final int URL_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkEndpointGroupCloudRun getDefaultInstance()
Returns
TypeDescription
NetworkEndpointGroupCloudRun

getDescriptor()

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

newBuilder()

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

newBuilder(NetworkEndpointGroupCloudRun prototype)

public static NetworkEndpointGroupCloudRun.Builder newBuilder(NetworkEndpointGroupCloudRun prototype)
Parameter
NameDescription
prototypeNetworkEndpointGroupCloudRun
Returns
TypeDescription
NetworkEndpointGroupCloudRun.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NetworkEndpointGroupCloudRun getDefaultInstanceForType()
Returns
TypeDescription
NetworkEndpointGroupCloudRun

getParserForType()

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

getSerializedSize()

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

The bytes for tag.

getUrlMask()

public String getUrlMask()

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
TypeDescription
String

The urlMask.

getUrlMaskBytes()

public ByteString getUrlMaskBytes()

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

Whether the tag field is set.

hasUrlMask()

public boolean hasUrlMask()

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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