public final class NetworkEndpointGroup extends GeneratedMessage implements NetworkEndpointGroupOrBuilderRepresents a collection of network endpoints.
A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs for different use cases, seeNetwork endpoint groups overview.
Note: Use the following APIs to manage network endpoint groups:
- To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API
Protobuf type google.cloud.compute.v1.NetworkEndpointGroup
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > NetworkEndpointGroupImplements
NetworkEndpointGroupOrBuilderStatic Fields
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
APP_ENGINE_FIELD_NUMBER
public static final int APP_ENGINE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CLOUD_FUNCTION_FIELD_NUMBER
public static final int CLOUD_FUNCTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CLOUD_RUN_FIELD_NUMBER
public static final int CLOUD_RUN_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DEFAULT_PORT_FIELD_NUMBER
public static final int DEFAULT_PORT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NETWORK_ENDPOINT_TYPE_FIELD_NUMBER
public static final int NETWORK_ENDPOINT_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PSC_DATA_FIELD_NUMBER
public static final int PSC_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PSC_TARGET_SERVICE_FIELD_NUMBER
public static final int PSC_TARGET_SERVICE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SUBNETWORK_FIELD_NUMBER
public static final int SUBNETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static NetworkEndpointGroup getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static NetworkEndpointGroup.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
newBuilder(NetworkEndpointGroup prototype)
public static NetworkEndpointGroup.Builder newBuilder(NetworkEndpointGroup prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
NetworkEndpointGroup |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
parseDelimitedFrom(InputStream input)
public static NetworkEndpointGroup parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static NetworkEndpointGroup parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static NetworkEndpointGroup parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static NetworkEndpointGroup parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static NetworkEndpointGroup parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static NetworkEndpointGroup parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NetworkEndpointGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<NetworkEndpointGroup> parser()| Returns | |
|---|---|
| Type | Description |
Parser<NetworkEndpointGroup> |
|
Methods
containsAnnotations(String key)
public boolean containsAnnotations(String key)Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()Use #getAnnotationsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getAnnotationsCount()
public int getAnnotationsCount()Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getAppEngine()
public NetworkEndpointGroupAppEngine getAppEngine()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupAppEngine |
The appEngine. |
getAppEngineOrBuilder()
public NetworkEndpointGroupAppEngineOrBuilder getAppEngineOrBuilder()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupAppEngineOrBuilder |
|
getCloudFunction()
public NetworkEndpointGroupCloudFunction getCloudFunction()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudFunction cloud_function = 519893666;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupCloudFunction |
The cloudFunction. |
getCloudFunctionOrBuilder()
public NetworkEndpointGroupCloudFunctionOrBuilder getCloudFunctionOrBuilder()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudFunction cloud_function = 519893666;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupCloudFunctionOrBuilder |
|
getCloudRun()
public NetworkEndpointGroupCloudRun getCloudRun()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupCloudRun |
The cloudRun. |
getCloudRunOrBuilder()
public NetworkEndpointGroupCloudRunOrBuilder getCloudRunOrBuilder()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupCloudRunOrBuilder |
|
getCreationTimestamp()
public String getCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
String |
The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for creationTimestamp. |
getDefaultInstanceForType()
public NetworkEndpointGroup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
getDefaultPort()
public int getDefaultPort()The default port used if the port number is not specified in the network endpoint.
Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
optional int32 default_port = 423377855;
| Returns | |
|---|---|
| Type | Description |
int |
The defaultPort. |
getDescription()
public String getDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getId()
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
long |
The id. |
getKind()
public String getKind()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
public String getName() Name of the resource; provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression a-z? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Name of the resource; provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression a-z? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNetwork()
public String getNetwork()The URL of the network to which all network endpoints in the NEG belong. For networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field is not specified, a default network will be used. This field cannot be set for NEGs with networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all other network endpoint types, this field is required.
optional string network = 232872494;
| Returns | |
|---|---|
| Type | Description |
String |
The network. |
getNetworkBytes()
public ByteString getNetworkBytes()The URL of the network to which all network endpoints in the NEG belong. For networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field is not specified, a default network will be used. This field cannot be set for NEGs with networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all other network endpoint types, this field is required.
optional string network = 232872494;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for network. |
getNetworkEndpointType()
public String getNetworkEndpointType()Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for the list of possible values.
optional string network_endpoint_type = 118301523;
| Returns | |
|---|---|
| Type | Description |
String |
The networkEndpointType. |
getNetworkEndpointTypeBytes()
public ByteString getNetworkEndpointTypeBytes()Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for the list of possible values.
optional string network_endpoint_type = 118301523;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for networkEndpointType. |
getParserForType()
public Parser<NetworkEndpointGroup> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<NetworkEndpointGroup> |
|
getPscData()
public NetworkEndpointGroupPscData getPscData()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupPscData |
The pscData. |
getPscDataOrBuilder()
public NetworkEndpointGroupPscDataOrBuilder getPscDataOrBuilder()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupPscDataOrBuilder |
|
getPscTargetService()
public String getPscTargetService()The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional string psc_target_service = 269132134;
| Returns | |
|---|---|
| Type | Description |
String |
The pscTargetService. |
getPscTargetServiceBytes()
public ByteString getPscTargetServiceBytes()The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional string psc_target_service = 269132134;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pscTargetService. |
getRegion()
public String getRegion()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Returns | |
|---|---|
| Type | Description |
String |
The region. |
getRegionBytes()
public ByteString getRegionBytes()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for region. |
getSelfLink()
public String getSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSize()
public int getSize()Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;
| Returns | |
|---|---|
| Type | Description |
int |
The size. |
getSubnetwork()
public String getSubnetwork()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Returns | |
|---|---|
| Type | Description |
String |
The subnetwork. |
getSubnetworkBytes()
public ByteString getSubnetworkBytes()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for subnetwork. |
getZone()
public String getZone()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
hasAppEngine()
public boolean hasAppEngine()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the appEngine field is set. |
hasCloudFunction()
public boolean hasCloudFunction()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudFunction cloud_function = 519893666;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cloudFunction field is set. |
hasCloudRun()
public boolean hasCloudRun()Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set.
optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cloudRun field is set. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the creationTimestamp field is set. |
hasDefaultPort()
public boolean hasDefaultPort()The default port used if the port number is not specified in the network endpoint.
Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
optional int32 default_port = 423377855;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the defaultPort field is set. |
hasDescription()
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasId()
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the id field is set. |
hasKind()
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kind field is set. |
hasName()
public boolean hasName() Name of the resource; provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression a-z? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
optional string name = 3373707;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the name field is set. |
hasNetwork()
public boolean hasNetwork()The URL of the network to which all network endpoints in the NEG belong. For networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field is not specified, a default network will be used. This field cannot be set for NEGs with networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all other network endpoint types, this field is required.
optional string network = 232872494;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the network field is set. |
hasNetworkEndpointType()
public boolean hasNetworkEndpointType()Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for the list of possible values.
optional string network_endpoint_type = 118301523;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the networkEndpointType field is set. |
hasPscData()
public boolean hasPscData()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscData field is set. |
hasPscTargetService()
public boolean hasPscTargetService()The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com.
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional string psc_target_service = 269132134;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscTargetService field is set. |
hasRegion()
public boolean hasRegion()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the region field is set. |
hasSelfLink()
public boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the selfLink field is set. |
hasSize()
public boolean hasSize()Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the size field is set. |
hasSubnetwork()
public boolean hasSubnetwork()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the subnetwork field is set. |
hasZone()
public boolean hasZone()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the zone field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public NetworkEndpointGroup.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected NetworkEndpointGroup.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
toBuilder()
public NetworkEndpointGroup.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|