Class NetworkEndpointGroup.Builder (1.40.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, see Setting up external HTTP(S) Load Balancing with internet NEGs, Setting up zonal NEGs, or Setting up external HTTP(S) Load Balancing with serverless NEGs.

Protobuf type google.cloud.compute.v1.NetworkEndpointGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkEndpointGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides

build()

public NetworkEndpointGroup build()
Returns
TypeDescription
NetworkEndpointGroup

buildPartial()

public NetworkEndpointGroup buildPartial()
Returns
TypeDescription
NetworkEndpointGroup

clear()

public NetworkEndpointGroup.Builder clear()
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides

clearAnnotations()

public NetworkEndpointGroup.Builder clearAnnotations()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkEndpointGroup.Builder

clearCreationTimestamp()

public NetworkEndpointGroup.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
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 int32 default_port = 423377855;

Returns
TypeDescription
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
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkEndpointGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Returns
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkEndpointGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides

clearPscData()

public NetworkEndpointGroup.Builder clearPscData()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

public NetworkEndpointGroup.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

clone()

public NetworkEndpointGroup.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkEndpointGroupCloudRunOrBuilder

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public NetworkEndpointGroup getDefaultInstanceForType()
Returns
TypeDescription
NetworkEndpointGroup

getDefaultPort()

public int getDefaultPort()

The default port used if the port number is not specified in the network endpoint.

optional int32 default_port = 423377855;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for kind.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Returns
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Returns
TypeDescription
ByteString

The bytes for networkEndpointType.

getPscData()

public NetworkEndpointGroupPscData getPscData()

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

Returns
TypeDescription
NetworkEndpointGroupPscData

The pscData.

getPscDataBuilder()

public NetworkEndpointGroupPscData.Builder getPscDataBuilder()

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

Returns
TypeDescription
NetworkEndpointGroupPscData.Builder

getPscDataOrBuilder()

public NetworkEndpointGroupPscDataOrBuilder getPscDataOrBuilder()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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 int32 default_port = 423377855;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Returns
TypeDescription
boolean

Whether the networkEndpointType field is set.

hasPscData()

public boolean hasPscData()

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

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

Whether the region field is set.

public boolean hasSelfLink()

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

optional string self_link = 456214797;

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

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupAppEngine
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupCloudFunction
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupCloudRun
Returns
TypeDescription
NetworkEndpointGroup.Builder

mergeFrom(NetworkEndpointGroup other)

public NetworkEndpointGroup.Builder mergeFrom(NetworkEndpointGroup other)
Parameter
NameDescription
otherNetworkEndpointGroup
Returns
TypeDescription
NetworkEndpointGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkEndpointGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkEndpointGroup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides

mergePscData(NetworkEndpointGroupPscData value)

public NetworkEndpointGroup.Builder mergePscData(NetworkEndpointGroupPscData value)

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

Parameter
NameDescription
valueNetworkEndpointGroupPscData
Returns
TypeDescription
NetworkEndpointGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkEndpointGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupAppEngine
Returns
TypeDescription
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
NameDescription
builderForValueNetworkEndpointGroupAppEngine.Builder
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupCloudFunction
Returns
TypeDescription
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
NameDescription
builderForValueNetworkEndpointGroupCloudFunction.Builder
Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupCloudRun
Returns
TypeDescription
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
NameDescription
builderForValueNetworkEndpointGroupCloudRun.Builder
Returns
TypeDescription
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
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
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 int32 default_port = 423377855;

Parameter
NameDescription
valueint

The defaultPort to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkEndpointGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Parameter
NameDescription
valueString

The networkEndpointType to set.

Returns
TypeDescription
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. Check the NetworkEndpointType enum for the list of possible values.

optional string network_endpoint_type = 118301523;

Parameter
NameDescription
valueByteString

The bytes for networkEndpointType to set.

Returns
TypeDescription
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
NameDescription
valueNetworkEndpointGroupPscData
Returns
TypeDescription
NetworkEndpointGroup.Builder

setPscData(NetworkEndpointGroupPscData.Builder builderForValue)

public NetworkEndpointGroup.Builder setPscData(NetworkEndpointGroupPscData.Builder builderForValue)

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

Parameter
NameDescription
builderForValueNetworkEndpointGroupPscData.Builder
Returns
TypeDescription
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
NameDescription
valueString

The pscTargetService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pscTargetService to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkEndpointGroup.Builder
Overrides
public NetworkEndpointGroup.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
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
NameDescription
valueint

The size to set.

Returns
TypeDescription
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
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkEndpointGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The zone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
NetworkEndpointGroup.Builder

This builder for chaining.