public static final class NetworkEndpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder> implements NetworkEndpointOrBuilder
The network endpoint.Protobuf type
google.cloud.compute.v1.NetworkEndpoint| Modifier and Type | Method and Description |
|---|---|
NetworkEndpoint.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NetworkEndpoint |
build() |
NetworkEndpoint |
buildPartial() |
NetworkEndpoint.Builder |
clear() |
NetworkEndpoint.Builder |
clearAnnotations() |
NetworkEndpoint.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
NetworkEndpoint.Builder |
clearFqdn()
Optional fully qualified domain name of network endpoint.
|
NetworkEndpoint.Builder |
clearInstance()
The name for a specific VM instance that the IP address belongs to.
|
NetworkEndpoint.Builder |
clearIpAddress()
Optional IPv4 address of network endpoint.
|
NetworkEndpoint.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NetworkEndpoint.Builder |
clearPort()
Optional port number of network endpoint.
|
NetworkEndpoint.Builder |
clone() |
boolean |
containsAnnotations(String key)
Metadata defined as annotations on the network endpoint.
|
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Metadata defined as annotations on the network endpoint.
|
Map<String,String> |
getAnnotationsMap()
Metadata defined as annotations on the network endpoint.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Metadata defined as annotations on the network endpoint.
|
String |
getAnnotationsOrThrow(String key)
Metadata defined as annotations on the network endpoint.
|
NetworkEndpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFqdn()
Optional fully qualified domain name of network endpoint.
|
com.google.protobuf.ByteString |
getFqdnBytes()
Optional fully qualified domain name of network endpoint.
|
String |
getInstance()
The name for a specific VM instance that the IP address belongs to.
|
com.google.protobuf.ByteString |
getInstanceBytes()
The name for a specific VM instance that the IP address belongs to.
|
String |
getIpAddress()
Optional IPv4 address of network endpoint.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
Optional IPv4 address of network endpoint.
|
Map<String,String> |
getMutableAnnotations()
Deprecated.
|
int |
getPort()
Optional port number of network endpoint.
|
boolean |
hasFqdn()
Optional fully qualified domain name of network endpoint.
|
boolean |
hasInstance()
The name for a specific VM instance that the IP address belongs to.
|
boolean |
hasIpAddress()
Optional IPv4 address of network endpoint.
|
boolean |
hasPort()
Optional port number of network endpoint.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
NetworkEndpoint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NetworkEndpoint.Builder |
mergeFrom(com.google.protobuf.Message other) |
NetworkEndpoint.Builder |
mergeFrom(NetworkEndpoint other) |
NetworkEndpoint.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NetworkEndpoint.Builder |
putAllAnnotations(Map<String,String> values)
Metadata defined as annotations on the network endpoint.
|
NetworkEndpoint.Builder |
putAnnotations(String key,
String value)
Metadata defined as annotations on the network endpoint.
|
NetworkEndpoint.Builder |
removeAnnotations(String key)
Metadata defined as annotations on the network endpoint.
|
NetworkEndpoint.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NetworkEndpoint.Builder |
setFqdn(String value)
Optional fully qualified domain name of network endpoint.
|
NetworkEndpoint.Builder |
setFqdnBytes(com.google.protobuf.ByteString value)
Optional fully qualified domain name of network endpoint.
|
NetworkEndpoint.Builder |
setInstance(String value)
The name for a specific VM instance that the IP address belongs to.
|
NetworkEndpoint.Builder |
setInstanceBytes(com.google.protobuf.ByteString value)
The name for a specific VM instance that the IP address belongs to.
|
NetworkEndpoint.Builder |
setIpAddress(String value)
Optional IPv4 address of network endpoint.
|
NetworkEndpoint.Builder |
setIpAddressBytes(com.google.protobuf.ByteString value)
Optional IPv4 address of network endpoint.
|
NetworkEndpoint.Builder |
setPort(int value)
Optional port number of network endpoint.
|
NetworkEndpoint.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NetworkEndpoint.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NetworkEndpoint build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NetworkEndpoint buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NetworkEndpoint.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder mergeFrom(NetworkEndpoint other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public NetworkEndpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>IOExceptionpublic int getAnnotationsCount()
NetworkEndpointOrBuilderMetadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsCount in interface NetworkEndpointOrBuilderpublic boolean containsAnnotations(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;containsAnnotations in interface NetworkEndpointOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface NetworkEndpointOrBuilderpublic Map<String,String> getAnnotationsMap()
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsMap in interface NetworkEndpointOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsOrDefault in interface NetworkEndpointOrBuilderpublic String getAnnotationsOrThrow(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsOrThrow in interface NetworkEndpointOrBuilderpublic NetworkEndpoint.Builder clearAnnotations()
public NetworkEndpoint.Builder removeAnnotations(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;@Deprecated public Map<String,String> getMutableAnnotations()
public NetworkEndpoint.Builder putAnnotations(String key, String value)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;public NetworkEndpoint.Builder putAllAnnotations(Map<String,String> values)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;public boolean hasFqdn()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;hasFqdn in interface NetworkEndpointOrBuilderpublic String getFqdn()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;getFqdn in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getFqdnBytes()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;getFqdnBytes in interface NetworkEndpointOrBuilderpublic NetworkEndpoint.Builder setFqdn(String value)
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;value - The fqdn to set.public NetworkEndpoint.Builder clearFqdn()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;public NetworkEndpoint.Builder setFqdnBytes(com.google.protobuf.ByteString value)
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;value - The bytes for fqdn to set.public boolean hasInstance()
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;hasInstance in interface NetworkEndpointOrBuilderpublic String getInstance()
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;getInstance in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getInstanceBytes()
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;getInstanceBytes in interface NetworkEndpointOrBuilderpublic NetworkEndpoint.Builder setInstance(String value)
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;value - The instance to set.public NetworkEndpoint.Builder clearInstance()
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;public NetworkEndpoint.Builder setInstanceBytes(com.google.protobuf.ByteString value)
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035.
optional string instance = 18257045;value - The bytes for instance to set.public boolean hasIpAddress()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;hasIpAddress in interface NetworkEndpointOrBuilderpublic String getIpAddress()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;getIpAddress in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getIpAddressBytes()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;getIpAddressBytes in interface NetworkEndpointOrBuilderpublic NetworkEndpoint.Builder setIpAddress(String value)
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;value - The ipAddress to set.public NetworkEndpoint.Builder clearIpAddress()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;public NetworkEndpoint.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
optional string ip_address = 406272220;value - The bytes for ipAddress to set.public boolean hasPort()
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.
optional int32 port = 3446913;hasPort in interface NetworkEndpointOrBuilderpublic int getPort()
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.
optional int32 port = 3446913;getPort in interface NetworkEndpointOrBuilderpublic NetworkEndpoint.Builder setPort(int value)
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.
optional int32 port = 3446913;value - The port to set.public NetworkEndpoint.Builder clearPort()
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.
optional int32 port = 3446913;public final NetworkEndpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>public final NetworkEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>Copyright © 2023 Google LLC. All rights reserved.