Class 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 type google.cloud.compute.v1.NetworkEndpoint
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • clear

        public NetworkEndpoint.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • getDefaultInstanceForType

        public NetworkEndpoint getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public NetworkEndpoint build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public NetworkEndpoint buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public NetworkEndpoint.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • setField

        public NetworkEndpoint.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • clearField

        public NetworkEndpoint.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • clearOneof

        public NetworkEndpoint.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • addRepeatedField

        public NetworkEndpoint.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • mergeFrom

        public NetworkEndpoint.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkEndpoint.Builder>
        Throws:
        IOException
      • containsAnnotations

        public boolean containsAnnotations​(String key)
         Metadata defined as annotations on the network endpoint.
         
        map<string, string> annotations = 112032548;
        Specified by:
        containsAnnotations in interface NetworkEndpointOrBuilder
      • 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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface NetworkEndpointOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>
      • mergeUnknownFields

        public final NetworkEndpoint.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpoint.Builder>