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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NetworkEndpointbuild()NetworkEndpointbuildPartial()NetworkEndpoint.Builderclear()NetworkEndpoint.BuilderclearAnnotations()NetworkEndpoint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NetworkEndpoint.BuilderclearFqdn()Optional fully qualified domain name of network endpoint.NetworkEndpoint.BuilderclearInstance()The name for a specific VM instance that the IP address belongs to.NetworkEndpoint.BuilderclearIpAddress()Optional IPv4 address of network endpoint.NetworkEndpoint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NetworkEndpoint.BuilderclearPort()Optional port number of network endpoint.NetworkEndpoint.Builderclone()booleancontainsAnnotations(String key)Metadata defined as annotations on the network endpoint.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Metadata defined as annotations on the network endpoint.Map<String,String>getAnnotationsMap()Metadata defined as annotations on the network endpoint.StringgetAnnotationsOrDefault(String key, String defaultValue)Metadata defined as annotations on the network endpoint.StringgetAnnotationsOrThrow(String key)Metadata defined as annotations on the network endpoint.NetworkEndpointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFqdn()Optional fully qualified domain name of network endpoint.com.google.protobuf.ByteStringgetFqdnBytes()Optional fully qualified domain name of network endpoint.StringgetInstance()The name for a specific VM instance that the IP address belongs to.com.google.protobuf.ByteStringgetInstanceBytes()The name for a specific VM instance that the IP address belongs to.StringgetIpAddress()Optional IPv4 address of network endpoint.com.google.protobuf.ByteStringgetIpAddressBytes()Optional IPv4 address of network endpoint.Map<String,String>getMutableAnnotations()Deprecated.intgetPort()Optional port number of network endpoint.booleanhasFqdn()Optional fully qualified domain name of network endpoint.booleanhasInstance()The name for a specific VM instance that the IP address belongs to.booleanhasIpAddress()Optional IPv4 address of network endpoint.booleanhasPort()Optional port number of network endpoint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()NetworkEndpoint.BuildermergeFrom(NetworkEndpoint other)NetworkEndpoint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NetworkEndpoint.BuildermergeFrom(com.google.protobuf.Message other)NetworkEndpoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NetworkEndpoint.BuilderputAllAnnotations(Map<String,String> values)Metadata defined as annotations on the network endpoint.NetworkEndpoint.BuilderputAnnotations(String key, String value)Metadata defined as annotations on the network endpoint.NetworkEndpoint.BuilderremoveAnnotations(String key)Metadata defined as annotations on the network endpoint.NetworkEndpoint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NetworkEndpoint.BuildersetFqdn(String value)Optional fully qualified domain name of network endpoint.NetworkEndpoint.BuildersetFqdnBytes(com.google.protobuf.ByteString value)Optional fully qualified domain name of network endpoint.NetworkEndpoint.BuildersetInstance(String value)The name for a specific VM instance that the IP address belongs to.NetworkEndpoint.BuildersetInstanceBytes(com.google.protobuf.ByteString value)The name for a specific VM instance that the IP address belongs to.NetworkEndpoint.BuildersetIpAddress(String value)Optional IPv4 address of network endpoint.NetworkEndpoint.BuildersetIpAddressBytes(com.google.protobuf.ByteString value)Optional IPv4 address of network endpoint.NetworkEndpoint.BuildersetPort(int value)Optional port number of network endpoint.NetworkEndpoint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NetworkEndpoint.BuildersetUnknownFields(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clear
public NetworkEndpoint.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.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.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
getDefaultInstanceForType
public NetworkEndpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NetworkEndpoint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NetworkEndpoint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NetworkEndpoint.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
setField
public NetworkEndpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clearField
public NetworkEndpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
clearOneof
public NetworkEndpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
setRepeatedField
public NetworkEndpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
addRepeatedField
public NetworkEndpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
mergeFrom
public NetworkEndpoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>
-
mergeFrom
public NetworkEndpoint.Builder mergeFrom(NetworkEndpoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>- Throws:
IOException
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:NetworkEndpointOrBuilderMetadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsCountin interfaceNetworkEndpointOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
containsAnnotationsin interfaceNetworkEndpointOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceNetworkEndpointOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsMapin interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrDefaultin interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrThrowin 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:
hasFqdnin 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:
getFqdnin 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:
getFqdnBytesin 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:
hasInstancein 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:
getInstancein 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:
getInstanceBytesin 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:
hasIpAddressin 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:
getIpAddressin 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:
getIpAddressBytesin 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:
hasPortin 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:
getPortin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
mergeUnknownFields
public final NetworkEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
-
-