Class NetworkEndpointGroup.Builder (1.58.0)

public static final class NetworkEndpointGroup.Builder extends GeneratedMessageV3.Builder<NetworkEndpointGroup.Builder> implements NetworkEndpointGroupOrBuilder

Represents 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, see Network endpoint groups overview.

Protobuf type google.cloud.compute.v1.NetworkEndpointGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkEndpointGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

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
Overrides

clearAnnotations()

public NetworkEndpointGroup.Builder clearAnnotations()
Returns
Type Description
NetworkEndpointGroup.Builder

clearAppEngine()

public NetworkEndpointGroup.Builder clearAppEngine()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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] Creation timestamp in RFC3339 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. 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.

clearField(Descriptors.FieldDescriptor field)

public NetworkEndpointGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

clearId()

public NetworkEndpointGroup.Builder clearId()

[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] Type of the resource. Always compute#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 with RFC1035. 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 of GCE_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.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkEndpointGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

clearPscData()

public NetworkEndpointGroup.Builder clearPscData()

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 string psc_target_service = 269132134;

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

clearRegion()

public NetworkEndpointGroup.Builder clearRegion()

[Output Only] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

public NetworkEndpointGroup.Builder clearSelfLink()

[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] 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] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

clone()

public NetworkEndpointGroup.Builder clone()
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

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()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

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)

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)

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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 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. 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
Overrides

getId()

public long getId()

[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] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#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 with RFC1035. 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 with RFC1035. 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 of GCE_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 of GCE_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 .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;

Returns
Type Description
NetworkEndpointGroupPscData

The pscData.

getPscDataBuilder()

public NetworkEndpointGroupPscData.Builder getPscDataBuilder()

optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;

Returns
Type Description
NetworkEndpointGroupPscData.Builder

getPscDataOrBuilder()

public NetworkEndpointGroupPscDataOrBuilder getPscDataOrBuilder()

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 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 string psc_target_service = 269132134;

Returns
Type Description
ByteString

The bytes for pscTargetService.

getRegion()

public String getRegion()

[Output Only] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Returns
Type Description
ByteString

The bytes for region.

public String getSelfLink()

[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] 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] 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] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasAppEngine()

public boolean hasAppEngine()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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()

Only valid when networkEndpointType is SERVERLESS. 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] Creation timestamp in RFC3339 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. 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] 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] Type of the resource. Always compute#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 with RFC1035. 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 of GCE_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 .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 string psc_target_service = 269132134;

Returns
Type Description
boolean

Whether the pscTargetService field is set.

hasRegion()

public boolean hasRegion()

[Output Only] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Returns
Type Description
boolean

Whether the region field is set.

public boolean hasSelfLink()

[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] 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] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAppEngine(NetworkEndpointGroupAppEngine value)

public NetworkEndpointGroup.Builder mergeAppEngine(NetworkEndpointGroupAppEngine value)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkEndpointGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

mergePscData(NetworkEndpointGroupPscData value)

public NetworkEndpointGroup.Builder mergePscData(NetworkEndpointGroupPscData value)

optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;

Parameter
Name Description
value NetworkEndpointGroupPscData
Returns
Type Description
NetworkEndpointGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkEndpointGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

putAllAnnotations(Map<String,String> values)

public NetworkEndpointGroup.Builder putAllAnnotations(Map<String,String> values)

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)

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)

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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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)

Only valid when networkEndpointType is SERVERLESS. 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] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public NetworkEndpointGroup.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The 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. 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 int

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

The 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 ByteString

The bytes for description to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkEndpointGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

setId(long value)

public NetworkEndpointGroup.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setKind(String value)

public NetworkEndpointGroup.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setKindBytes(ByteString value)

public NetworkEndpointGroup.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The 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 with RFC1035. 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 String

The 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 with RFC1035. 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 ByteString

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

The 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 ByteString

The 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 of GCE_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 String

The 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 of GCE_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 ByteString

The bytes for networkEndpointType to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setPscData(NetworkEndpointGroupPscData value)

public NetworkEndpointGroup.Builder setPscData(NetworkEndpointGroupPscData value)

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 .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 string psc_target_service = 269132134;

Parameter
Name Description
value String

The 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 string psc_target_service = 269132134;

Parameter
Name Description
value ByteString

The 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] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public NetworkEndpointGroup.Builder setRegionBytes(ByteString value)

[Output Only] The URL of the region where the network endpoint group is located.

optional string region = 138946292;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkEndpointGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides
public NetworkEndpointGroup.Builder setSelfLink(String value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public NetworkEndpointGroup.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The 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] Number of network endpoints in the network endpoint group.

optional int32 size = 3530753;

Parameter
Name Description
value int

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

The 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 ByteString

The bytes for subnetwork to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkEndpointGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkEndpointGroup.Builder
Overrides

setZone(String value)

public NetworkEndpointGroup.Builder setZone(String value)

[Output Only] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public NetworkEndpointGroup.Builder setZoneBytes(ByteString value)

[Output Only] The URL of the zone where the network endpoint group is located.

optional string zone = 3744684;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
NetworkEndpointGroup.Builder

This builder for chaining.