Package com.google.cloud.compute.v1
Class NetworkEndpoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
- com.google.cloud.compute.v1.NetworkEndpoint.Builder
-
- All Implemented Interfaces:
NetworkEndpointOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- NetworkEndpoint
public static final class NetworkEndpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder> implements NetworkEndpointOrBuilder
The network endpoint.
Protobuf typegoogle.cloud.compute.v1.NetworkEndpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(NetworkEndpoint other)
NetworkEndpoint.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NetworkEndpoint.Builder
mergeFrom(com.google.protobuf.Message 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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clear
public NetworkEndpoint.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
getDefaultInstanceForType
public NetworkEndpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NetworkEndpoint build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NetworkEndpoint buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NetworkEndpoint.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
setField
public NetworkEndpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clearField
public NetworkEndpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clearOneof
public NetworkEndpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
setRepeatedField
public NetworkEndpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
addRepeatedField
public NetworkEndpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
mergeFrom
public NetworkEndpoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>
-
mergeFrom
public NetworkEndpoint.Builder mergeFrom(NetworkEndpoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
mergeFrom
public NetworkEndpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>
- Throws:
IOException
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:NetworkEndpointOrBuilder
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsCount
in interfaceNetworkEndpointOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
containsAnnotations
in interfaceNetworkEndpointOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceNetworkEndpointOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsMap
in interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsOrDefault
in interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsOrThrow
in interfaceNetworkEndpointOrBuilder
-
clearAnnotations
public NetworkEndpoint.Builder clearAnnotations()
-
removeAnnotations
public NetworkEndpoint.Builder removeAnnotations(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public NetworkEndpoint.Builder putAnnotations(String key, String value)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
-
putAllAnnotations
public NetworkEndpoint.Builder putAllAnnotations(Map<String,String> values)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;
-
hasFqdn
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;
- Specified by:
hasFqdn
in interfaceNetworkEndpointOrBuilder
- Returns:
- Whether the fqdn field is set.
-
getFqdn
public 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;
- Specified by:
getFqdn
in interfaceNetworkEndpointOrBuilder
- Returns:
- The fqdn.
-
getFqdnBytes
public 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;
- Specified by:
getFqdnBytes
in interfaceNetworkEndpointOrBuilder
- Returns:
- The bytes for fqdn.
-
setFqdn
public 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;
- Parameters:
value
- The fqdn to set.- Returns:
- This builder for chaining.
-
clearFqdn
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;
- Returns:
- This builder for chaining.
-
setFqdnBytes
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;
- Parameters:
value
- The bytes for fqdn to set.- Returns:
- This builder for chaining.
-
hasInstance
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;
- Specified by:
hasInstance
in interfaceNetworkEndpointOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
public 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;
- Specified by:
getInstance
in interfaceNetworkEndpointOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public 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;
- Specified by:
getInstanceBytes
in interfaceNetworkEndpointOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
public 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;
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
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;
- Returns:
- This builder for chaining.
-
setInstanceBytes
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;
- Parameters:
value
- The bytes for instance to set.- Returns:
- This builder for chaining.
-
hasIpAddress
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;
- Specified by:
hasIpAddress
in interfaceNetworkEndpointOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
public 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;
- Specified by:
getIpAddress
in interfaceNetworkEndpointOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public 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;
- Specified by:
getIpAddressBytes
in interfaceNetworkEndpointOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
public 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;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
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;
- Returns:
- This builder for chaining.
-
setIpAddressBytes
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;
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
hasPort
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;
- Specified by:
hasPort
in interfaceNetworkEndpointOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public 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;
- Specified by:
getPort
in interfaceNetworkEndpointOrBuilder
- Returns:
- The port.
-
setPort
public 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;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final NetworkEndpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
mergeUnknownFields
public final NetworkEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
-