Package com.google.cloud.compute.v1
Class NetworkEndpointGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
com.google.cloud.compute.v1.NetworkEndpointGroup.Builder
- All Implemented Interfaces:
NetworkEndpointGroupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkEndpointGroup
public static final class NetworkEndpointGroup.Builder
extends com.google.protobuf.GeneratedMessage.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, 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 APIProtobuf type
google.cloud.compute.v1.NetworkEndpointGroup-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Output only.The default port used if the port number is not specified in the network endpoint.An optional description of this resource.clearId()Output only.Output only.Name of the resource; provided by the client when the resource is created.The URL of the network to which all network endpoints in the NEG belong.Type of network endpoints in this network endpoint group.Optional.The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.Output only.Output only.Output only.Optional URL of the subnetwork to which all network endpoints in the NEG belong.Output only.booleanOptional.Deprecated.intOptional.Optional.getAnnotationsOrDefault(String key, String defaultValue) Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Output only.com.google.protobuf.ByteStringOutput only.intThe default port used if the port number is not specified in the network endpoint.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.getName()Name of the resource; provided by the client when the resource is created.com.google.protobuf.ByteStringName of the resource; provided by the client when the resource is created.The URL of the network to which all network endpoints in the NEG belong.com.google.protobuf.ByteStringThe URL of the network to which all network endpoints in the NEG belong.Type of network endpoints in this network endpoint group.com.google.protobuf.ByteStringType of network endpoints in this network endpoint group.Optional.Optional.Optional.The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.com.google.protobuf.ByteStringThe target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.intgetSize()Output only.Optional URL of the subnetwork to which all network endpoints in the NEG belong.com.google.protobuf.ByteStringOptional URL of the subnetwork to which all network endpoints in the NEG belong.getZone()Output only.com.google.protobuf.ByteStringOutput only.booleanOptional.booleanOptional.booleanOptional.booleanOutput only.booleanThe default port used if the port number is not specified in the network endpoint.booleanAn optional description of this resource.booleanhasId()Output only.booleanhasKind()Output only.booleanhasName()Name of the resource; provided by the client when the resource is created.booleanThe URL of the network to which all network endpoints in the NEG belong.booleanType of network endpoints in this network endpoint group.booleanOptional.booleanThe target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.booleanOutput only.booleanOutput only.booleanhasSize()Output only.booleanOptional URL of the subnetwork to which all network endpoints in the NEG belong.booleanhasZone()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanOptional.Optional.Optional.mergeFrom(NetworkEndpointGroup other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.putAllAnnotations(Map<String, String> values) Optional.putAnnotations(String key, String value) Optional.removeAnnotations(String key) Optional.Optional.setAppEngine(NetworkEndpointGroupAppEngine.Builder builderForValue) Optional.Optional.setCloudFunction(NetworkEndpointGroupCloudFunction.Builder builderForValue) Optional.Optional.setCloudRun(NetworkEndpointGroupCloudRun.Builder builderForValue) Optional.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDefaultPort(int value) The default port used if the port number is not specified in the network endpoint.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.Name of the resource; provided by the client when the resource is created.setNameBytes(com.google.protobuf.ByteString value) Name of the resource; provided by the client when the resource is created.setNetwork(String value) The URL of the network to which all network endpoints in the NEG belong.setNetworkBytes(com.google.protobuf.ByteString value) The URL of the network to which all network endpoints in the NEG belong.setNetworkEndpointType(String value) Type of network endpoints in this network endpoint group.setNetworkEndpointTypeBytes(com.google.protobuf.ByteString value) Type of network endpoints in this network endpoint group.Optional.setPscData(NetworkEndpointGroupPscData.Builder builderForValue) Optional.setPscTargetService(String value) The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.setPscTargetServiceBytes(com.google.protobuf.ByteString value) The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.Output only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setSize(int value) Output only.setSubnetwork(String value) Optional URL of the subnetwork to which all network endpoints in the NEG belong.setSubnetworkBytes(com.google.protobuf.ByteString value) Optional URL of the subnetwork to which all network endpoints in the NEG belong.Output only.setZoneBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpointGroup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroup.Builder>
-
mergeFrom
public NetworkEndpointGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpointGroup.Builder>- Throws:
IOException
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:NetworkEndpointGroupOrBuilderOptional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsCountin interfaceNetworkEndpointGroupOrBuilder
-
containsAnnotations
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;- Specified by:
containsAnnotationsin interfaceNetworkEndpointGroupOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceNetworkEndpointGroupOrBuilder
-
getAnnotationsMap
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsMapin interfaceNetworkEndpointGroupOrBuilder
-
getAnnotationsOrDefault
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrDefaultin interfaceNetworkEndpointGroupOrBuilder
-
getAnnotationsOrThrow
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrThrowin interfaceNetworkEndpointGroupOrBuilder
-
clearAnnotations
-
removeAnnotations
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548; -
putAllAnnotations
Optional. Metadata defined as annotations on the network endpoint group.
map<string, string> annotations = 112032548; -
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;- Specified by:
hasAppEnginein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the appEngine field is set.
-
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;- Specified by:
getAppEnginein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The appEngine.
-
setAppEngine
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; -
setAppEngine
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; -
mergeAppEngine
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; -
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; -
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; -
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;- Specified by:
getAppEngineOrBuilderin interfaceNetworkEndpointGroupOrBuilder
-
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;- Specified by:
hasCloudFunctionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the cloudFunction field is set.
-
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;- Specified by:
getCloudFunctionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The cloudFunction.
-
setCloudFunction
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; -
setCloudFunction
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; -
mergeCloudFunction
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; -
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; -
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; -
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;- Specified by:
getCloudFunctionOrBuilderin interfaceNetworkEndpointGroupOrBuilder
-
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;- Specified by:
hasCloudRunin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the cloudRun field is set.
-
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;- Specified by:
getCloudRunin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The cloudRun.
-
setCloudRun
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; -
setCloudRun
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; -
mergeCloudRun
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; -
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; -
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; -
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;- Specified by:
getCloudRunOrBuilderin interfaceNetworkEndpointGroupOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDefaultPortin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the defaultPort field is set.
-
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;- Specified by:
getDefaultPortin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The defaultPort.
-
setDefaultPort
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;- Parameters:
value- The defaultPort to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasIdin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the id field is set.
-
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;- Specified by:
getIdin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Specified by:
hasKindin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Specified by:
getKindin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
hasNamein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the name field is set.
-
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]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
getNamein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
getNameBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for name.
-
setName
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]([-a-z0-9]*[a-z0-9])?` 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setNameBytes
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]([-a-z0-9]*[a-z0-9])?` 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNetworkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the network field is set.
-
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;- Specified by:
getNetworkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.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;- Specified by:
getNetworkBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for network.
-
setNetwork
The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
optional string network = 232872494;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNetworkBytes
The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified.
optional string network = 232872494;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNetworkEndpointTypein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the networkEndpointType field is set.
-
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;- Specified by:
getNetworkEndpointTypein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The networkEndpointType.
-
getNetworkEndpointTypeBytes
public com.google.protobuf.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;- Specified by:
getNetworkEndpointTypeBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for networkEndpointType.
-
setNetworkEndpointType
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;- Parameters:
value- The networkEndpointType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNetworkEndpointTypeBytes
public NetworkEndpointGroup.Builder setNetworkEndpointTypeBytes(com.google.protobuf.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;- Parameters:
value- The bytes for networkEndpointType to set.- Returns:
- This builder for chaining.
-
hasPscData
public boolean hasPscData()Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;- Specified by:
hasPscDatain interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the pscData field is set.
-
getPscData
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;- Specified by:
getPscDatain interfaceNetworkEndpointGroupOrBuilder- Returns:
- The pscData.
-
setPscData
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; -
setPscData
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; -
mergePscData
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; -
clearPscData
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; -
getPscDataBuilder
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; -
getPscDataOrBuilder
Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT.
optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481;- Specified by:
getPscDataOrBuilderin interfaceNetworkEndpointGroupOrBuilder
-
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;- Specified by:
hasPscTargetServicein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the pscTargetService field is set.
-
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;- Specified by:
getPscTargetServicein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The pscTargetService.
-
getPscTargetServiceBytes
public com.google.protobuf.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;- Specified by:
getPscTargetServiceBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for pscTargetService.
-
setPscTargetService
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;- Parameters:
value- The pscTargetService to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPscTargetServiceBytes
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;- Parameters:
value- The bytes for pscTargetService to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Specified by:
hasRegionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Specified by:
getRegionin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for region.
-
setRegion
Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] The URL of theregion where the network endpoint group is located.
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSize
public boolean hasSize()Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;- Specified by:
hasSizein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the size field is set.
-
getSize
public int getSize()Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;- Specified by:
getSizein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The size.
-
setSize
Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Output only. [Output only] Number of network endpoints in the network endpoint group.
optional int32 size = 3530753;- Returns:
- This builder for chaining.
-
hasSubnetwork
public boolean hasSubnetwork()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Specified by:
hasSubnetworkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Specified by:
getSubnetworkin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Specified by:
getSubnetworkBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Returns:
- This builder for chaining.
-
setSubnetworkBytes
Optional URL of the subnetwork to which all network endpoints in the NEG belong.
optional string subnetwork = 307827694;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
hasZone
public boolean hasZone()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Specified by:
hasZonein interfaceNetworkEndpointGroupOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Specified by:
getZonein interfaceNetworkEndpointGroupOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Specified by:
getZoneBytesin interfaceNetworkEndpointGroupOrBuilder- Returns:
- The bytes for zone.
-
setZone
Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
Output only. [Output Only] The URL of thezone where the network endpoint group is located.
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-