public static final class NetworkEndpointGroup.Builder extends GeneratedMessage.Builder<NetworkEndpointGroup.Builder> 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NetworkEndpointGroup.BuilderImplements
NetworkEndpointGroupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NetworkEndpointGroup build()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
buildPartial()
public NetworkEndpointGroup buildPartial()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
|
clear()
public NetworkEndpointGroup.Builder clear()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
clearAnnotations()
public NetworkEndpointGroup.Builder clearAnnotations()| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
clearAppEngine()
public NetworkEndpointGroup.Builder clearAppEngine()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 |
NetworkEndpointGroup.Builder |
|
clearCloudFunction()
public NetworkEndpointGroup.Builder clearCloudFunction()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 |
NetworkEndpointGroup.Builder |
|
clearCloudRun()
public NetworkEndpointGroup.Builder clearCloudRun()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 |
NetworkEndpointGroup.Builder |
|
clearCreationTimestamp()
public NetworkEndpointGroup.Builder clearCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearDefaultPort()
public NetworkEndpointGroup.Builder clearDefaultPort()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 |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearDescription()
public NetworkEndpointGroup.Builder clearDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearId()
public NetworkEndpointGroup.Builder clearId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearKind()
public NetworkEndpointGroup.Builder clearKind()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearName()
public NetworkEndpointGroup.Builder clearName() 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 |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearNetwork()
public NetworkEndpointGroup.Builder clearNetwork()The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
optional string network = 232872494;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearNetworkEndpointType()
public NetworkEndpointGroup.Builder clearNetworkEndpointType()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 |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearPscData()
public NetworkEndpointGroup.Builder clearPscData()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
clearPscTargetService()
public NetworkEndpointGroup.Builder clearPscTargetService()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 |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearRegion()
public NetworkEndpointGroup.Builder clearRegion()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearSelfLink()
public NetworkEndpointGroup.Builder clearSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearSize()
public NetworkEndpointGroup.Builder clearSize()Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearSubnetwork()
public NetworkEndpointGroup.Builder clearSubnetwork()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
clearZone()
public NetworkEndpointGroup.Builder clearZone()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
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 |
|
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. |
getAppEngineBuilder()
public NetworkEndpointGroupAppEngine.Builder getAppEngineBuilder()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.Builder |
|
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. |
getCloudFunctionBuilder()
public NetworkEndpointGroupCloudFunction.Builder getCloudFunctionBuilder()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.Builder |
|
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. |
getCloudRunBuilder()
public NetworkEndpointGroupCloudRun.Builder getCloudRunBuilder()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.Builder |
|
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getMutableAnnotations() (deprecated)
public Map<String,String> getMutableAnnotations()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
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. Uses default project network if unspecified.
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. Uses default project network if unspecified.
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. |
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. |
getPscDataBuilder()
public NetworkEndpointGroupPscData.Builder getPscDataBuilder()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroupPscData.Builder |
|
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. |
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. Uses default project network if unspecified.
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. |
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 |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAppEngine(NetworkEndpointGroupAppEngine value)
public NetworkEndpointGroup.Builder mergeAppEngine(NetworkEndpointGroupAppEngine value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupAppEngine |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
mergeCloudFunction(NetworkEndpointGroupCloudFunction value)
public NetworkEndpointGroup.Builder mergeCloudFunction(NetworkEndpointGroupCloudFunction value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupCloudFunction |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
mergeCloudRun(NetworkEndpointGroupCloudRun value)
public NetworkEndpointGroup.Builder mergeCloudRun(NetworkEndpointGroupCloudRun value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupCloudRun |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
mergeFrom(NetworkEndpointGroup other)
public NetworkEndpointGroup.Builder mergeFrom(NetworkEndpointGroup other)| Parameter | |
|---|---|
| Name | Description |
other |
NetworkEndpointGroup |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NetworkEndpointGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NetworkEndpointGroup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
mergePscData(NetworkEndpointGroupPscData value)
public NetworkEndpointGroup.Builder mergePscData(NetworkEndpointGroupPscData value)Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupPscData |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
putAllAnnotations(Map<String,String> values)
public NetworkEndpointGroup.Builder putAllAnnotations(Map<String,String> values)Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
putAnnotations(String key, String value)
public NetworkEndpointGroup.Builder putAnnotations(String key, String value)Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
removeAnnotations(String key)
public NetworkEndpointGroup.Builder removeAnnotations(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 |
NetworkEndpointGroup.Builder |
|
setAppEngine(NetworkEndpointGroupAppEngine value)
public NetworkEndpointGroup.Builder setAppEngine(NetworkEndpointGroupAppEngine value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupAppEngine |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setAppEngine(NetworkEndpointGroupAppEngine.Builder builderForValue)
public NetworkEndpointGroup.Builder setAppEngine(NetworkEndpointGroupAppEngine.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NetworkEndpointGroupAppEngine.Builder |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setCloudFunction(NetworkEndpointGroupCloudFunction value)
public NetworkEndpointGroup.Builder setCloudFunction(NetworkEndpointGroupCloudFunction value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupCloudFunction |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setCloudFunction(NetworkEndpointGroupCloudFunction.Builder builderForValue)
public NetworkEndpointGroup.Builder setCloudFunction(NetworkEndpointGroupCloudFunction.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NetworkEndpointGroupCloudFunction.Builder |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setCloudRun(NetworkEndpointGroupCloudRun value)
public NetworkEndpointGroup.Builder setCloudRun(NetworkEndpointGroupCloudRun value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupCloudRun |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setCloudRun(NetworkEndpointGroupCloudRun.Builder builderForValue)
public NetworkEndpointGroup.Builder setCloudRun(NetworkEndpointGroupCloudRun.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NetworkEndpointGroupCloudRun.Builder |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setCreationTimestamp(String value)
public NetworkEndpointGroup.Builder setCreationTimestamp(String value)Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public NetworkEndpointGroup.Builder setCreationTimestampBytes(ByteString value)Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setDefaultPort(int value)
public NetworkEndpointGroup.Builder setDefaultPort(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe defaultPort to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setDescription(String value)
public NetworkEndpointGroup.Builder setDescription(String value)An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public NetworkEndpointGroup.Builder setDescriptionBytes(ByteString value)An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setId(long value)
public NetworkEndpointGroup.Builder setId(long value)Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe id to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setKind(String value)
public NetworkEndpointGroup.Builder setKind(String value)Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public NetworkEndpointGroup.Builder setKindBytes(ByteString value)Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setName(String value)
public NetworkEndpointGroup.Builder setName(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public NetworkEndpointGroup.Builder setNameBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setNetwork(String value)
public NetworkEndpointGroup.Builder setNetwork(String value)The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
optional string network = 232872494;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe network to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setNetworkBytes(ByteString value)
public NetworkEndpointGroup.Builder setNetworkBytes(ByteString value)The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
optional string network = 232872494;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for network to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setNetworkEndpointType(String value)
public NetworkEndpointGroup.Builder setNetworkEndpointType(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe networkEndpointType to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setNetworkEndpointTypeBytes(ByteString value)
public NetworkEndpointGroup.Builder setNetworkEndpointTypeBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for networkEndpointType to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setPscData(NetworkEndpointGroupPscData value)
public NetworkEndpointGroup.Builder setPscData(NetworkEndpointGroupPscData value)Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Parameter | |
|---|---|
| Name | Description |
value |
NetworkEndpointGroupPscData |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setPscData(NetworkEndpointGroupPscData.Builder builderForValue)
public NetworkEndpointGroup.Builder setPscData(NetworkEndpointGroupPscData.Builder builderForValue)Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NetworkEndpointGroupPscData.Builder |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
|
setPscTargetService(String value)
public NetworkEndpointGroup.Builder setPscTargetService(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pscTargetService to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setPscTargetServiceBytes(ByteString value)
public NetworkEndpointGroup.Builder setPscTargetServiceBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for pscTargetService to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setRegion(String value)
public NetworkEndpointGroup.Builder setRegion(String value)Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
public NetworkEndpointGroup.Builder setRegionBytes(ByteString value)Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setSelfLink(String value)
public NetworkEndpointGroup.Builder setSelfLink(String value)Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public NetworkEndpointGroup.Builder setSelfLinkBytes(ByteString value)Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setSize(int value)
public NetworkEndpointGroup.Builder setSize(int value)Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe size to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setSubnetwork(String value)
public NetworkEndpointGroup.Builder setSubnetwork(String value)Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subnetwork to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setSubnetworkBytes(ByteString value)
public NetworkEndpointGroup.Builder setSubnetworkBytes(ByteString value)Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subnetwork to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setZone(String value)
public NetworkEndpointGroup.Builder setZone(String value)Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public NetworkEndpointGroup.Builder setZoneBytes(ByteString value)Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup.Builder |
This builder for chaining. |