Class CreateConnectivityTestRequest.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<CreateConnectivityTestRequest.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<CreateConnectivityTestRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateConnectivityTestRequest.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<CreateConnectivityTestRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent resource of the Connectivity Test to create:
             `projects/{project_id}/locations/global`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getParent in interface CreateConnectivityTestRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent resource of the Connectivity Test to create:
             `projects/{project_id}/locations/global`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getParentBytes in interface CreateConnectivityTestRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateConnectivityTestRequest.Builder setParent​(String value)
         Required. The parent resource of the Connectivity Test to create:
             `projects/{project_id}/locations/global`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateConnectivityTestRequest.Builder clearParent()
         Required. The parent resource of the Connectivity Test to create:
             `projects/{project_id}/locations/global`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateConnectivityTestRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent resource of the Connectivity Test to create:
             `projects/{project_id}/locations/global`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getTestId

        public String getTestId()
         Required. The logical name of the Connectivity Test in your project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-40 characters.
         * Must end with a number or a letter.
         * Must be unique within the customer project
         
        string test_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTestId in interface CreateConnectivityTestRequestOrBuilder
        Returns:
        The testId.
      • getTestIdBytes

        public com.google.protobuf.ByteString getTestIdBytes()
         Required. The logical name of the Connectivity Test in your project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-40 characters.
         * Must end with a number or a letter.
         * Must be unique within the customer project
         
        string test_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTestIdBytes in interface CreateConnectivityTestRequestOrBuilder
        Returns:
        The bytes for testId.
      • setTestId

        public CreateConnectivityTestRequest.Builder setTestId​(String value)
         Required. The logical name of the Connectivity Test in your project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-40 characters.
         * Must end with a number or a letter.
         * Must be unique within the customer project
         
        string test_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The testId to set.
        Returns:
        This builder for chaining.
      • clearTestId

        public CreateConnectivityTestRequest.Builder clearTestId()
         Required. The logical name of the Connectivity Test in your project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-40 characters.
         * Must end with a number or a letter.
         * Must be unique within the customer project
         
        string test_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setTestIdBytes

        public CreateConnectivityTestRequest.Builder setTestIdBytes​(com.google.protobuf.ByteString value)
         Required. The logical name of the Connectivity Test in your project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-40 characters.
         * Must end with a number or a letter.
         * Must be unique within the customer project
         
        string test_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for testId to set.
        Returns:
        This builder for chaining.
      • hasResource

        public boolean hasResource()
         Required. A `ConnectivityTest` resource
         
        .google.cloud.networkmanagement.v1beta1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasResource in interface CreateConnectivityTestRequestOrBuilder
        Returns:
        Whether the resource field is set.
      • clearResource

        public CreateConnectivityTestRequest.Builder clearResource()
         Required. A `ConnectivityTest` resource
         
        .google.cloud.networkmanagement.v1beta1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];
      • getResourceBuilder

        public ConnectivityTest.Builder getResourceBuilder()
         Required. A `ConnectivityTest` resource
         
        .google.cloud.networkmanagement.v1beta1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];