Class ConnectivityTest.Builder

  • All Implemented Interfaces:
    ConnectivityTestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ConnectivityTest

    public static final class ConnectivityTest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectivityTest.Builder>
    implements ConnectivityTestOrBuilder
     A Connectivity Test for a network reachability analysis.
     
    Protobuf type google.cloud.networkmanagement.v1beta1.ConnectivityTest
    • 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<ConnectivityTest.Builder>
      • internalGetMutableMapField

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

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

        public ConnectivityTest.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<ConnectivityTest.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<ConnectivityTest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • setField

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • clearField

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • clearOneof

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • setRepeatedField

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • addRepeatedField

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • mergeFrom

        public ConnectivityTest.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<ConnectivityTest.Builder>
      • isInitialized

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

        public ConnectivityTest.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<ConnectivityTest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. Unique name of the resource using the form:
             `projects/{project_id}/locations/global/connectivityTests/{test}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface ConnectivityTestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Unique name of the resource using the form:
             `projects/{project_id}/locations/global/connectivityTests/{test}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface ConnectivityTestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ConnectivityTest.Builder setName​(String value)
         Required. Unique name of the resource using the form:
             `projects/{project_id}/locations/global/connectivityTests/{test}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConnectivityTest.Builder clearName()
         Required. Unique name of the resource using the form:
             `projects/{project_id}/locations/global/connectivityTests/{test}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConnectivityTest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Unique name of the resource using the form:
             `projects/{project_id}/locations/global/connectivityTests/{test}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         The user-supplied description of the Connectivity Test.
         Maximum of 512 characters.
         
        string description = 2;
        Specified by:
        getDescription in interface ConnectivityTestOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The user-supplied description of the Connectivity Test.
         Maximum of 512 characters.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface ConnectivityTestOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public ConnectivityTest.Builder setDescription​(String value)
         The user-supplied description of the Connectivity Test.
         Maximum of 512 characters.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public ConnectivityTest.Builder clearDescription()
         The user-supplied description of the Connectivity Test.
         Maximum of 512 characters.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ConnectivityTest.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The user-supplied description of the Connectivity Test.
         Maximum of 512 characters.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasSource

        public boolean hasSource()
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasSource in interface ConnectivityTestOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public Endpoint getSource()
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSource in interface ConnectivityTestOrBuilder
        Returns:
        The source.
      • setSource

        public ConnectivityTest.Builder setSource​(Endpoint value)
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
      • setSource

        public ConnectivityTest.Builder setSource​(Endpoint.Builder builderForValue)
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeSource

        public ConnectivityTest.Builder mergeSource​(Endpoint value)
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearSource

        public ConnectivityTest.Builder clearSource()
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
      • getSourceBuilder

        public Endpoint.Builder getSourceBuilder()
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
      • getSourceOrBuilder

        public EndpointOrBuilder getSourceOrBuilder()
         Required. Source specification of the Connectivity Test.
        
         You can use a combination of source IP address, virtual machine
         (VM) instance, or Compute Engine network to uniquely identify
         the source location.
        
         Examples:
         If the source IP address is an internal IP address within a Google Cloud
         Virtual Private Cloud (VPC) network, then you must also specify the VPC
         network. Otherwise, specify the VM instance, which already contains its
         internal IP address and VPC network information.
        
         If the source of the test is within an on-premises network, then you must
         provide the destination VPC network.
        
         If the source endpoint is a Compute Engine VM instance with multiple
         network interfaces, the instance itself is not sufficient to identify the
         endpoint. So, you must also specify the source IP address or VPC network.
        
         A reachability analysis proceeds even if the source location is
         ambiguous. However, the test result may include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSourceOrBuilder in interface ConnectivityTestOrBuilder
      • hasDestination

        public boolean hasDestination()
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDestination in interface ConnectivityTestOrBuilder
        Returns:
        Whether the destination field is set.
      • getDestination

        public Endpoint getDestination()
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestination in interface ConnectivityTestOrBuilder
        Returns:
        The destination.
      • setDestination

        public ConnectivityTest.Builder setDestination​(Endpoint value)
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
      • setDestination

        public ConnectivityTest.Builder setDestination​(Endpoint.Builder builderForValue)
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
      • mergeDestination

        public ConnectivityTest.Builder mergeDestination​(Endpoint value)
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
      • clearDestination

        public ConnectivityTest.Builder clearDestination()
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
      • getDestinationBuilder

        public Endpoint.Builder getDestinationBuilder()
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
      • getDestinationOrBuilder

        public EndpointOrBuilder getDestinationOrBuilder()
         Required. Destination specification of the Connectivity Test.
        
         You can use a combination of destination IP address, Compute Engine
         VM instance, or VPC network to uniquely identify the destination
         location.
        
         Even if the destination IP address is not unique, the source IP
         location is unique. Usually, the analysis can infer the destination
         endpoint from route information.
        
         If the destination you specify is a VM instance and the instance has
         multiple network interfaces, then you must also specify either
         a destination IP address  or VPC network to identify the destination
         interface.
        
         A reachability analysis proceeds even if the destination location is
         ambiguous. However, the result can include endpoints that you don't
         intend to test.
         
        .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestinationOrBuilder in interface ConnectivityTestOrBuilder
      • getProtocol

        public String getProtocol()
         IP Protocol of the test. When not provided, "TCP" is assumed.
         
        string protocol = 5;
        Specified by:
        getProtocol in interface ConnectivityTestOrBuilder
        Returns:
        The protocol.
      • getProtocolBytes

        public com.google.protobuf.ByteString getProtocolBytes()
         IP Protocol of the test. When not provided, "TCP" is assumed.
         
        string protocol = 5;
        Specified by:
        getProtocolBytes in interface ConnectivityTestOrBuilder
        Returns:
        The bytes for protocol.
      • setProtocol

        public ConnectivityTest.Builder setProtocol​(String value)
         IP Protocol of the test. When not provided, "TCP" is assumed.
         
        string protocol = 5;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public ConnectivityTest.Builder clearProtocol()
         IP Protocol of the test. When not provided, "TCP" is assumed.
         
        string protocol = 5;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public ConnectivityTest.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
         IP Protocol of the test. When not provided, "TCP" is assumed.
         
        string protocol = 5;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • getRelatedProjectsList

        public com.google.protobuf.ProtocolStringList getRelatedProjectsList()
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Specified by:
        getRelatedProjectsList in interface ConnectivityTestOrBuilder
        Returns:
        A list containing the relatedProjects.
      • getRelatedProjectsCount

        public int getRelatedProjectsCount()
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Specified by:
        getRelatedProjectsCount in interface ConnectivityTestOrBuilder
        Returns:
        The count of relatedProjects.
      • getRelatedProjects

        public String getRelatedProjects​(int index)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Specified by:
        getRelatedProjects in interface ConnectivityTestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The relatedProjects at the given index.
      • getRelatedProjectsBytes

        public com.google.protobuf.ByteString getRelatedProjectsBytes​(int index)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Specified by:
        getRelatedProjectsBytes in interface ConnectivityTestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the relatedProjects at the given index.
      • setRelatedProjects

        public ConnectivityTest.Builder setRelatedProjects​(int index,
                                                           String value)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Parameters:
        index - The index to set the value at.
        value - The relatedProjects to set.
        Returns:
        This builder for chaining.
      • addRelatedProjects

        public ConnectivityTest.Builder addRelatedProjects​(String value)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Parameters:
        value - The relatedProjects to add.
        Returns:
        This builder for chaining.
      • addAllRelatedProjects

        public ConnectivityTest.Builder addAllRelatedProjects​(Iterable<String> values)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Parameters:
        values - The relatedProjects to add.
        Returns:
        This builder for chaining.
      • clearRelatedProjects

        public ConnectivityTest.Builder clearRelatedProjects()
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Returns:
        This builder for chaining.
      • addRelatedProjectsBytes

        public ConnectivityTest.Builder addRelatedProjectsBytes​(com.google.protobuf.ByteString value)
         Other projects that may be relevant for reachability analysis.
         This is applicable to scenarios where a test can cross project boundaries.
         
        repeated string related_projects = 6;
        Parameters:
        value - The bytes of the relatedProjects to add.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         Output only. The display name of a Connectivity Test.
         
        string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayName in interface ConnectivityTestOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Output only. The display name of a Connectivity Test.
         
        string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayNameBytes in interface ConnectivityTestOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public ConnectivityTest.Builder setDisplayName​(String value)
         Output only. The display name of a Connectivity Test.
         
        string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public ConnectivityTest.Builder clearDisplayName()
         Output only. The display name of a Connectivity Test.
         
        string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public ConnectivityTest.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Output only. The display name of a Connectivity Test.
         
        string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • removeLabels

        public ConnectivityTest.Builder removeLabels​(String key)
         Resource labels to represent user-provided metadata.
         
        map<string, string> labels = 8;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ConnectivityTestOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ConnectivityTestOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public ConnectivityTest.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public ConnectivityTest.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public ConnectivityTest.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public ConnectivityTest.Builder clearCreateTime()
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time the test was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ConnectivityTestOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ConnectivityTestOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ConnectivityTestOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public ConnectivityTest.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public ConnectivityTest.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public ConnectivityTest.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public ConnectivityTest.Builder clearUpdateTime()
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time the test's configuration was updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ConnectivityTestOrBuilder
      • hasReachabilityDetails

        public boolean hasReachabilityDetails()
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasReachabilityDetails in interface ConnectivityTestOrBuilder
        Returns:
        Whether the reachabilityDetails field is set.
      • getReachabilityDetails

        public ReachabilityDetails getReachabilityDetails()
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReachabilityDetails in interface ConnectivityTestOrBuilder
        Returns:
        The reachabilityDetails.
      • setReachabilityDetails

        public ConnectivityTest.Builder setReachabilityDetails​(ReachabilityDetails value)
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setReachabilityDetails

        public ConnectivityTest.Builder setReachabilityDetails​(ReachabilityDetails.Builder builderForValue)
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeReachabilityDetails

        public ConnectivityTest.Builder mergeReachabilityDetails​(ReachabilityDetails value)
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearReachabilityDetails

        public ConnectivityTest.Builder clearReachabilityDetails()
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getReachabilityDetailsBuilder

        public ReachabilityDetails.Builder getReachabilityDetailsBuilder()
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getReachabilityDetailsOrBuilder

        public ReachabilityDetailsOrBuilder getReachabilityDetailsOrBuilder()
         Output only. The reachability details of this test from the latest run.
         The details are updated when creating a new test, updating an
         existing test, or triggering a one-time rerun of an existing test.
         
        .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReachabilityDetailsOrBuilder in interface ConnectivityTestOrBuilder
      • hasProbingDetails

        public boolean hasProbingDetails()
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasProbingDetails in interface ConnectivityTestOrBuilder
        Returns:
        Whether the probingDetails field is set.
      • getProbingDetails

        public ProbingDetails getProbingDetails()
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProbingDetails in interface ConnectivityTestOrBuilder
        Returns:
        The probingDetails.
      • setProbingDetails

        public ConnectivityTest.Builder setProbingDetails​(ProbingDetails value)
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setProbingDetails

        public ConnectivityTest.Builder setProbingDetails​(ProbingDetails.Builder builderForValue)
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeProbingDetails

        public ConnectivityTest.Builder mergeProbingDetails​(ProbingDetails value)
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearProbingDetails

        public ConnectivityTest.Builder clearProbingDetails()
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getProbingDetailsBuilder

        public ProbingDetails.Builder getProbingDetailsBuilder()
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getProbingDetailsOrBuilder

        public ProbingDetailsOrBuilder getProbingDetailsOrBuilder()
         Output only. The probing details of this test from the latest run, present
         for applicable tests only. The details are updated when creating a new
         test, updating an existing test, or triggering a one-time rerun of an
         existing test.
         
        .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProbingDetailsOrBuilder in interface ConnectivityTestOrBuilder
      • setUnknownFields

        public final ConnectivityTest.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<ConnectivityTest.Builder>
      • mergeUnknownFields

        public final ConnectivityTest.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<ConnectivityTest.Builder>