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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static NetworkEndpointGroupCloudRun.Builder newBuilder()
newBuilder(NetworkEndpointGroupCloudRun prototype)
public static NetworkEndpointGroupCloudRun.Builder newBuilder(NetworkEndpointGroupCloudRun prototype)
public static NetworkEndpointGroupCloudRun parseDelimitedFrom(InputStream input)
public static NetworkEndpointGroupCloudRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static NetworkEndpointGroupCloudRun parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroupCloudRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static NetworkEndpointGroupCloudRun parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroupCloudRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroupCloudRun parseFrom(CodedInputStream input)
public static NetworkEndpointGroupCloudRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroupCloudRun parseFrom(InputStream input)
public static NetworkEndpointGroupCloudRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static NetworkEndpointGroupCloudRun parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroupCloudRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<NetworkEndpointGroupCloudRun> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public NetworkEndpointGroupCloudRun getDefaultInstanceForType()
getParserForType()
public Parser<NetworkEndpointGroupCloudRun> getParserForType()
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()
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public NetworkEndpointGroupCloudRun.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NetworkEndpointGroupCloudRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public NetworkEndpointGroupCloudRun.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides