<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/index_endpoint.proto

namespace Google\Cloud\AIPlatform\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * IndexPrivateEndpoints proto is used to provide paths for users to send
 * requests via private endpoints (e.g. private service access, private service
 * connect).
 * To send request via private service access, use match_grpc_address.
 * To send request via private service connect, use service_attachment.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.IndexPrivateEndpoints</code>
 */
class IndexPrivateEndpoints extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The ip address used to send match gRPC requests.
     *
     * Generated from protobuf field <code>string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $match_grpc_address = '';
    /**
     * Output only. The name of the service attachment resource. Populated if
     * private service connect is enabled.
     *
     * Generated from protobuf field <code>string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $service_attachment = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $match_grpc_address
     *           Output only. The ip address used to send match gRPC requests.
     *     @type string $service_attachment
     *           Output only. The name of the service attachment resource. Populated if
     *           private service connect is enabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The ip address used to send match gRPC requests.
     *
     * Generated from protobuf field <code>string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getMatchGrpcAddress()
    {
        return $this->match_grpc_address;
    }

    /**
     * Output only. The ip address used to send match gRPC requests.
     *
     * Generated from protobuf field <code>string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setMatchGrpcAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->match_grpc_address = $var;

        return $this;
    }

    /**
     * Output only. The name of the service attachment resource. Populated if
     * private service connect is enabled.
     *
     * Generated from protobuf field <code>string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getServiceAttachment()
    {
        return $this->service_attachment;
    }

    /**
     * Output only. The name of the service attachment resource. Populated if
     * private service connect is enabled.
     *
     * Generated from protobuf field <code>string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setServiceAttachment($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_attachment = $var;

        return $this;
    }

}

