Class NetworkAttachmentConnectedEndpoint.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachmentConnectedEndpoint.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<NetworkAttachmentConnectedEndpoint.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachmentConnectedEndpoint.Builder>
      • hasIpAddress

        public boolean hasIpAddress()
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Specified by:
        hasIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        Whether the ipAddress field is set.
      • getIpAddress

        public String getIpAddress()
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Specified by:
        getIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The ipAddress.
      • getIpAddressBytes

        public com.google.protobuf.ByteString getIpAddressBytes()
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Specified by:
        getIpAddressBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The bytes for ipAddress.
      • setIpAddress

        public NetworkAttachmentConnectedEndpoint.Builder setIpAddress​(String value)
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Parameters:
        value - The ipAddress to set.
        Returns:
        This builder for chaining.
      • clearIpAddress

        public NetworkAttachmentConnectedEndpoint.Builder clearIpAddress()
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Returns:
        This builder for chaining.
      • setIpAddressBytes

        public NetworkAttachmentConnectedEndpoint.Builder setIpAddressBytes​(com.google.protobuf.ByteString value)
         The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
         
        optional string ip_address = 406272220;
        Parameters:
        value - The bytes for ipAddress to set.
        Returns:
        This builder for chaining.
      • hasProjectIdOrNum

        public boolean hasProjectIdOrNum()
         The project id or number of the interface to which the IP was assigned.
         
        optional string project_id_or_num = 349783336;
        Specified by:
        hasProjectIdOrNum in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        Whether the projectIdOrNum field is set.
      • getProjectIdOrNumBytes

        public com.google.protobuf.ByteString getProjectIdOrNumBytes()
         The project id or number of the interface to which the IP was assigned.
         
        optional string project_id_or_num = 349783336;
        Specified by:
        getProjectIdOrNumBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The bytes for projectIdOrNum.
      • setProjectIdOrNum

        public NetworkAttachmentConnectedEndpoint.Builder setProjectIdOrNum​(String value)
         The project id or number of the interface to which the IP was assigned.
         
        optional string project_id_or_num = 349783336;
        Parameters:
        value - The projectIdOrNum to set.
        Returns:
        This builder for chaining.
      • clearProjectIdOrNum

        public NetworkAttachmentConnectedEndpoint.Builder clearProjectIdOrNum()
         The project id or number of the interface to which the IP was assigned.
         
        optional string project_id_or_num = 349783336;
        Returns:
        This builder for chaining.
      • setProjectIdOrNumBytes

        public NetworkAttachmentConnectedEndpoint.Builder setProjectIdOrNumBytes​(com.google.protobuf.ByteString value)
         The project id or number of the interface to which the IP was assigned.
         
        optional string project_id_or_num = 349783336;
        Parameters:
        value - The bytes for projectIdOrNum to set.
        Returns:
        This builder for chaining.
      • getSecondaryIpCidrRangesList

        public com.google.protobuf.ProtocolStringList getSecondaryIpCidrRangesList()
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Specified by:
        getSecondaryIpCidrRangesList in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        A list containing the secondaryIpCidrRanges.
      • getSecondaryIpCidrRanges

        public String getSecondaryIpCidrRanges​(int index)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Specified by:
        getSecondaryIpCidrRanges in interface NetworkAttachmentConnectedEndpointOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The secondaryIpCidrRanges at the given index.
      • getSecondaryIpCidrRangesBytes

        public com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes​(int index)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Specified by:
        getSecondaryIpCidrRangesBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the secondaryIpCidrRanges at the given index.
      • setSecondaryIpCidrRanges

        public NetworkAttachmentConnectedEndpoint.Builder setSecondaryIpCidrRanges​(int index,
                                                                                   String value)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Parameters:
        index - The index to set the value at.
        value - The secondaryIpCidrRanges to set.
        Returns:
        This builder for chaining.
      • addSecondaryIpCidrRanges

        public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRanges​(String value)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Parameters:
        value - The secondaryIpCidrRanges to add.
        Returns:
        This builder for chaining.
      • addAllSecondaryIpCidrRanges

        public NetworkAttachmentConnectedEndpoint.Builder addAllSecondaryIpCidrRanges​(Iterable<String> values)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Parameters:
        values - The secondaryIpCidrRanges to add.
        Returns:
        This builder for chaining.
      • clearSecondaryIpCidrRanges

        public NetworkAttachmentConnectedEndpoint.Builder clearSecondaryIpCidrRanges()
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Returns:
        This builder for chaining.
      • addSecondaryIpCidrRangesBytes

        public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRangesBytes​(com.google.protobuf.ByteString value)
         Alias IP ranges from the same subnetwork.
         
        repeated string secondary_ip_cidr_ranges = 117184788;
        Parameters:
        value - The bytes of the secondaryIpCidrRanges to add.
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        hasStatus in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public String getStatus()
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        getStatus in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The status.
      • getStatusBytes

        public com.google.protobuf.ByteString getStatusBytes()
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        getStatusBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The bytes for status.
      • setStatus

        public NetworkAttachmentConnectedEndpoint.Builder setStatus​(String value)
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public NetworkAttachmentConnectedEndpoint.Builder clearStatus()
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Returns:
        This builder for chaining.
      • setStatusBytes

        public NetworkAttachmentConnectedEndpoint.Builder setStatusBytes​(com.google.protobuf.ByteString value)
         The status of a connected endpoint to this network attachment.
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Parameters:
        value - The bytes for status to set.
        Returns:
        This builder for chaining.
      • hasSubnetwork

        public boolean hasSubnetwork()
         The subnetwork used to assign the IP to the producer instance network interface.
         
        optional string subnetwork = 307827694;
        Specified by:
        hasSubnetwork in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        Whether the subnetwork field is set.
      • getSubnetworkBytes

        public com.google.protobuf.ByteString getSubnetworkBytes()
         The subnetwork used to assign the IP to the producer instance network interface.
         
        optional string subnetwork = 307827694;
        Specified by:
        getSubnetworkBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
        Returns:
        The bytes for subnetwork.
      • setSubnetwork

        public NetworkAttachmentConnectedEndpoint.Builder setSubnetwork​(String value)
         The subnetwork used to assign the IP to the producer instance network interface.
         
        optional string subnetwork = 307827694;
        Parameters:
        value - The subnetwork to set.
        Returns:
        This builder for chaining.
      • clearSubnetwork

        public NetworkAttachmentConnectedEndpoint.Builder clearSubnetwork()
         The subnetwork used to assign the IP to the producer instance network interface.
         
        optional string subnetwork = 307827694;
        Returns:
        This builder for chaining.
      • setSubnetworkBytes

        public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkBytes​(com.google.protobuf.ByteString value)
         The subnetwork used to assign the IP to the producer instance network interface.
         
        optional string subnetwork = 307827694;
        Parameters:
        value - The bytes for subnetwork to set.
        Returns:
        This builder for chaining.