/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/bigquery/connection/v1/connection.proto

package com.google.cloud.bigquery.connection.v1;

/**
 *
 *
 * <pre>
 * Container for connection properties specific to Azure.
 * </pre>
 *
 * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties}
 */
public final class AzureProperties extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AzureProperties)
    AzurePropertiesOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AzureProperties.newBuilder() to construct.
  private AzureProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AzureProperties() {
    application_ = "";
    clientId_ = "";
    objectId_ = "";
    customerTenantId_ = "";
    redirectUri_ = "";
    federatedApplicationClientId_ = "";
    identity_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new AzureProperties();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
        .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
        .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.bigquery.connection.v1.AzureProperties.class,
            com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class);
  }

  public static final int APPLICATION_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object application_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The name of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The application.
   */
  @java.lang.Override
  public java.lang.String getApplication() {
    java.lang.Object ref = application_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      application_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The name of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for application.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getApplicationBytes() {
    java.lang.Object ref = application_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      application_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLIENT_ID_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object clientId_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The client id of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The clientId.
   */
  @java.lang.Override
  public java.lang.String getClientId() {
    java.lang.Object ref = clientId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      clientId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The client id of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for clientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getClientIdBytes() {
    java.lang.Object ref = clientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      clientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OBJECT_ID_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object objectId_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The object id of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The objectId.
   */
  @java.lang.Override
  public java.lang.String getObjectId() {
    java.lang.Object ref = objectId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      objectId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The object id of the Azure Active Directory Application.
   * </pre>
   *
   * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for objectId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getObjectIdBytes() {
    java.lang.Object ref = objectId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      objectId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CUSTOMER_TENANT_ID_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object customerTenantId_ = "";
  /**
   *
   *
   * <pre>
   * The id of customer's directory that host the data.
   * </pre>
   *
   * <code>string customer_tenant_id = 4;</code>
   *
   * @return The customerTenantId.
   */
  @java.lang.Override
  public java.lang.String getCustomerTenantId() {
    java.lang.Object ref = customerTenantId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      customerTenantId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The id of customer's directory that host the data.
   * </pre>
   *
   * <code>string customer_tenant_id = 4;</code>
   *
   * @return The bytes for customerTenantId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCustomerTenantIdBytes() {
    java.lang.Object ref = customerTenantId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      customerTenantId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REDIRECT_URI_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object redirectUri_ = "";
  /**
   *
   *
   * <pre>
   * The URL user will be redirected to after granting consent during connection
   * setup.
   * </pre>
   *
   * <code>string redirect_uri = 5;</code>
   *
   * @return The redirectUri.
   */
  @java.lang.Override
  public java.lang.String getRedirectUri() {
    java.lang.Object ref = redirectUri_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      redirectUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The URL user will be redirected to after granting consent during connection
   * setup.
   * </pre>
   *
   * <code>string redirect_uri = 5;</code>
   *
   * @return The bytes for redirectUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getRedirectUriBytes() {
    java.lang.Object ref = redirectUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      redirectUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object federatedApplicationClientId_ = "";
  /**
   *
   *
   * <pre>
   * The client ID of the user's Azure Active Directory Application used for a
   * federated connection.
   * </pre>
   *
   * <code>string federated_application_client_id = 6;</code>
   *
   * @return The federatedApplicationClientId.
   */
  @java.lang.Override
  public java.lang.String getFederatedApplicationClientId() {
    java.lang.Object ref = federatedApplicationClientId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      federatedApplicationClientId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The client ID of the user's Azure Active Directory Application used for a
   * federated connection.
   * </pre>
   *
   * <code>string federated_application_client_id = 6;</code>
   *
   * @return The bytes for federatedApplicationClientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() {
    java.lang.Object ref = federatedApplicationClientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      federatedApplicationClientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDENTITY_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object identity_ = "";
  /**
   *
   *
   * <pre>
   * Output only. A unique Google-owned and Google-generated identity for the
   * Connection. This identity will be used to access the user's Azure Active
   * Directory Application.
   * </pre>
   *
   * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The identity.
   */
  @java.lang.Override
  public java.lang.String getIdentity() {
    java.lang.Object ref = identity_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      identity_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. A unique Google-owned and Google-generated identity for the
   * Connection. This identity will be used to access the user's Azure Active
   * Directory Application.
   * </pre>
   *
   * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for identity.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getIdentityBytes() {
    java.lang.Object ref = identity_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      identity_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(application_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, application_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, objectId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerTenantId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customerTenantId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, redirectUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, federatedApplicationClientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, identity_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(application_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, application_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, objectId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerTenantId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customerTenantId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, redirectUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) {
      size +=
          com.google.protobuf.GeneratedMessageV3.computeStringSize(
              6, federatedApplicationClientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identity_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.bigquery.connection.v1.AzureProperties)) {
      return super.equals(obj);
    }
    com.google.cloud.bigquery.connection.v1.AzureProperties other =
        (com.google.cloud.bigquery.connection.v1.AzureProperties) obj;

    if (!getApplication().equals(other.getApplication())) return false;
    if (!getClientId().equals(other.getClientId())) return false;
    if (!getObjectId().equals(other.getObjectId())) return false;
    if (!getCustomerTenantId().equals(other.getCustomerTenantId())) return false;
    if (!getRedirectUri().equals(other.getRedirectUri())) return false;
    if (!getFederatedApplicationClientId().equals(other.getFederatedApplicationClientId()))
      return false;
    if (!getIdentity().equals(other.getIdentity())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + APPLICATION_FIELD_NUMBER;
    hash = (53 * hash) + getApplication().hashCode();
    hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getClientId().hashCode();
    hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getObjectId().hashCode();
    hash = (37 * hash) + CUSTOMER_TENANT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getCustomerTenantId().hashCode();
    hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER;
    hash = (53 * hash) + getRedirectUri().hashCode();
    hash = (37 * hash) + FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getFederatedApplicationClientId().hashCode();
    hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
    hash = (53 * hash) + getIdentity().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(
      com.google.cloud.bigquery.connection.v1.AzureProperties prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Container for connection properties specific to Azure.
   * </pre>
   *
   * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.AzureProperties)
      com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
          .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
          .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.bigquery.connection.v1.AzureProperties.class,
              com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class);
    }

    // Construct using com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      application_ = "";
      clientId_ = "";
      objectId_ = "";
      customerTenantId_ = "";
      redirectUri_ = "";
      federatedApplicationClientId_ = "";
      identity_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
          .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() {
      return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.bigquery.connection.v1.AzureProperties build() {
      com.google.cloud.bigquery.connection.v1.AzureProperties result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.bigquery.connection.v1.AzureProperties buildPartial() {
      com.google.cloud.bigquery.connection.v1.AzureProperties result =
          new com.google.cloud.bigquery.connection.v1.AzureProperties(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.bigquery.connection.v1.AzureProperties result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.application_ = application_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.clientId_ = clientId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.objectId_ = objectId_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.customerTenantId_ = customerTenantId_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.redirectUri_ = redirectUri_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.federatedApplicationClientId_ = federatedApplicationClientId_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.identity_ = identity_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.bigquery.connection.v1.AzureProperties) {
        return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AzureProperties other) {
      if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance())
        return this;
      if (!other.getApplication().isEmpty()) {
        application_ = other.application_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getClientId().isEmpty()) {
        clientId_ = other.clientId_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getObjectId().isEmpty()) {
        objectId_ = other.objectId_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getCustomerTenantId().isEmpty()) {
        customerTenantId_ = other.customerTenantId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getRedirectUri().isEmpty()) {
        redirectUri_ = other.redirectUri_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getFederatedApplicationClientId().isEmpty()) {
        federatedApplicationClientId_ = other.federatedApplicationClientId_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (!other.getIdentity().isEmpty()) {
        identity_ = other.identity_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                application_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                clientId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                objectId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                customerTenantId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                redirectUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                federatedApplicationClientId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                identity_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object application_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The name of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The application.
     */
    public java.lang.String getApplication() {
      java.lang.Object ref = application_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        application_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for application.
     */
    public com.google.protobuf.ByteString getApplicationBytes() {
      java.lang.Object ref = application_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        application_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The application to set.
     * @return This builder for chaining.
     */
    public Builder setApplication(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      application_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearApplication() {
      application_ = getDefaultInstance().getApplication();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for application to set.
     * @return This builder for chaining.
     */
    public Builder setApplicationBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      application_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object clientId_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The client id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The clientId.
     */
    public java.lang.String getClientId() {
      java.lang.Object ref = clientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The client id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for clientId.
     */
    public com.google.protobuf.ByteString getClientIdBytes() {
      java.lang.Object ref = clientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        clientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The client id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The clientId to set.
     * @return This builder for chaining.
     */
    public Builder setClientId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      clientId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The client id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearClientId() {
      clientId_ = getDefaultInstance().getClientId();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The client id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for clientId to set.
     * @return This builder for chaining.
     */
    public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      clientId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object objectId_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The object id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The objectId.
     */
    public java.lang.String getObjectId() {
      java.lang.Object ref = objectId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        objectId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The object id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for objectId.
     */
    public com.google.protobuf.ByteString getObjectIdBytes() {
      java.lang.Object ref = objectId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        objectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The object id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The objectId to set.
     * @return This builder for chaining.
     */
    public Builder setObjectId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      objectId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The object id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearObjectId() {
      objectId_ = getDefaultInstance().getObjectId();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The object id of the Azure Active Directory Application.
     * </pre>
     *
     * <code>string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for objectId to set.
     * @return This builder for chaining.
     */
    public Builder setObjectIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      objectId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object customerTenantId_ = "";
    /**
     *
     *
     * <pre>
     * The id of customer's directory that host the data.
     * </pre>
     *
     * <code>string customer_tenant_id = 4;</code>
     *
     * @return The customerTenantId.
     */
    public java.lang.String getCustomerTenantId() {
      java.lang.Object ref = customerTenantId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        customerTenantId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of customer's directory that host the data.
     * </pre>
     *
     * <code>string customer_tenant_id = 4;</code>
     *
     * @return The bytes for customerTenantId.
     */
    public com.google.protobuf.ByteString getCustomerTenantIdBytes() {
      java.lang.Object ref = customerTenantId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        customerTenantId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of customer's directory that host the data.
     * </pre>
     *
     * <code>string customer_tenant_id = 4;</code>
     *
     * @param value The customerTenantId to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerTenantId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      customerTenantId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of customer's directory that host the data.
     * </pre>
     *
     * <code>string customer_tenant_id = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCustomerTenantId() {
      customerTenantId_ = getDefaultInstance().getCustomerTenantId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of customer's directory that host the data.
     * </pre>
     *
     * <code>string customer_tenant_id = 4;</code>
     *
     * @param value The bytes for customerTenantId to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerTenantIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      customerTenantId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object redirectUri_ = "";
    /**
     *
     *
     * <pre>
     * The URL user will be redirected to after granting consent during connection
     * setup.
     * </pre>
     *
     * <code>string redirect_uri = 5;</code>
     *
     * @return The redirectUri.
     */
    public java.lang.String getRedirectUri() {
      java.lang.Object ref = redirectUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        redirectUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The URL user will be redirected to after granting consent during connection
     * setup.
     * </pre>
     *
     * <code>string redirect_uri = 5;</code>
     *
     * @return The bytes for redirectUri.
     */
    public com.google.protobuf.ByteString getRedirectUriBytes() {
      java.lang.Object ref = redirectUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        redirectUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The URL user will be redirected to after granting consent during connection
     * setup.
     * </pre>
     *
     * <code>string redirect_uri = 5;</code>
     *
     * @param value The redirectUri to set.
     * @return This builder for chaining.
     */
    public Builder setRedirectUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      redirectUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The URL user will be redirected to after granting consent during connection
     * setup.
     * </pre>
     *
     * <code>string redirect_uri = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRedirectUri() {
      redirectUri_ = getDefaultInstance().getRedirectUri();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The URL user will be redirected to after granting consent during connection
     * setup.
     * </pre>
     *
     * <code>string redirect_uri = 5;</code>
     *
     * @param value The bytes for redirectUri to set.
     * @return This builder for chaining.
     */
    public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      redirectUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object federatedApplicationClientId_ = "";
    /**
     *
     *
     * <pre>
     * The client ID of the user's Azure Active Directory Application used for a
     * federated connection.
     * </pre>
     *
     * <code>string federated_application_client_id = 6;</code>
     *
     * @return The federatedApplicationClientId.
     */
    public java.lang.String getFederatedApplicationClientId() {
      java.lang.Object ref = federatedApplicationClientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        federatedApplicationClientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The client ID of the user's Azure Active Directory Application used for a
     * federated connection.
     * </pre>
     *
     * <code>string federated_application_client_id = 6;</code>
     *
     * @return The bytes for federatedApplicationClientId.
     */
    public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() {
      java.lang.Object ref = federatedApplicationClientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        federatedApplicationClientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The client ID of the user's Azure Active Directory Application used for a
     * federated connection.
     * </pre>
     *
     * <code>string federated_application_client_id = 6;</code>
     *
     * @param value The federatedApplicationClientId to set.
     * @return This builder for chaining.
     */
    public Builder setFederatedApplicationClientId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      federatedApplicationClientId_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The client ID of the user's Azure Active Directory Application used for a
     * federated connection.
     * </pre>
     *
     * <code>string federated_application_client_id = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFederatedApplicationClientId() {
      federatedApplicationClientId_ = getDefaultInstance().getFederatedApplicationClientId();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The client ID of the user's Azure Active Directory Application used for a
     * federated connection.
     * </pre>
     *
     * <code>string federated_application_client_id = 6;</code>
     *
     * @param value The bytes for federatedApplicationClientId to set.
     * @return This builder for chaining.
     */
    public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      federatedApplicationClientId_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private java.lang.Object identity_ = "";
    /**
     *
     *
     * <pre>
     * Output only. A unique Google-owned and Google-generated identity for the
     * Connection. This identity will be used to access the user's Azure Active
     * Directory Application.
     * </pre>
     *
     * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The identity.
     */
    public java.lang.String getIdentity() {
      java.lang.Object ref = identity_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        identity_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. A unique Google-owned and Google-generated identity for the
     * Connection. This identity will be used to access the user's Azure Active
     * Directory Application.
     * </pre>
     *
     * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for identity.
     */
    public com.google.protobuf.ByteString getIdentityBytes() {
      java.lang.Object ref = identity_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        identity_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. A unique Google-owned and Google-generated identity for the
     * Connection. This identity will be used to access the user's Azure Active
     * Directory Application.
     * </pre>
     *
     * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The identity to set.
     * @return This builder for chaining.
     */
    public Builder setIdentity(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      identity_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. A unique Google-owned and Google-generated identity for the
     * Connection. This identity will be used to access the user's Azure Active
     * Directory Application.
     * </pre>
     *
     * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIdentity() {
      identity_ = getDefaultInstance().getIdentity();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. A unique Google-owned and Google-generated identity for the
     * Connection. This identity will be used to access the user's Azure Active
     * Directory Application.
     * </pre>
     *
     * <code>string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for identity to set.
     * @return This builder for chaining.
     */
    public Builder setIdentityBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      identity_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AzureProperties)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AzureProperties)
  private static final com.google.cloud.bigquery.connection.v1.AzureProperties DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AzureProperties();
  }

  public static com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AzureProperties> PARSER =
      new com.google.protobuf.AbstractParser<AzureProperties>() {
        @java.lang.Override
        public AzureProperties parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<AzureProperties> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AzureProperties> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
