All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.netapp.v1.ActiveDirectory Maven / Gradle / Ivy

/*
 * Copyright 2024 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/netapp/v1/active_directory.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.netapp.v1;

/**
 *
 *
 * 
 * ActiveDirectory is the public representation of the active directory config.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.ActiveDirectory} */ public final class ActiveDirectory extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ActiveDirectory) ActiveDirectoryOrBuilder { private static final long serialVersionUID = 0L; // Use ActiveDirectory.newBuilder() to construct. private ActiveDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActiveDirectory() { name_ = ""; state_ = 0; domain_ = ""; site_ = ""; dns_ = ""; netBiosPrefix_ = ""; organizationalUnit_ = ""; username_ = ""; password_ = ""; backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); kdcHostname_ = ""; kdcIp_ = ""; description_ = ""; stateDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ActiveDirectory(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 20: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.ActiveDirectory.class, com.google.cloud.netapp.v1.ActiveDirectory.Builder.class); } /** * * *
   * The Active Directory States
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.ActiveDirectory.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified Active Directory State
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Active Directory State is Creating
     * 
* * CREATING = 1; */ CREATING(1), /** * * *
     * Active Directory State is Ready
     * 
* * READY = 2; */ READY(2), /** * * *
     * Active Directory State is Updating
     * 
* * UPDATING = 3; */ UPDATING(3), /** * * *
     * Active Directory State is In use
     * 
* * IN_USE = 4; */ IN_USE(4), /** * * *
     * Active Directory State is Deleting
     * 
* * DELETING = 5; */ DELETING(5), /** * * *
     * Active Directory State is Error
     * 
* * ERROR = 6; */ ERROR(6), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified Active Directory State
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Active Directory State is Creating
     * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** * * *
     * Active Directory State is Ready
     * 
* * READY = 2; */ public static final int READY_VALUE = 2; /** * * *
     * Active Directory State is Updating
     * 
* * UPDATING = 3; */ public static final int UPDATING_VALUE = 3; /** * * *
     * Active Directory State is In use
     * 
* * IN_USE = 4; */ public static final int IN_USE_VALUE = 4; /** * * *
     * Active Directory State is Deleting
     * 
* * DELETING = 5; */ public static final int DELETING_VALUE = 5; /** * * *
     * Active Directory State is Error
     * 
* * ERROR = 6; */ public static final int ERROR_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return CREATING; case 2: return READY; case 3: return UPDATING; case 4: return IN_USE; case 5: return DELETING; case 6: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.ActiveDirectory.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.ActiveDirectory.State) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. The resource name of the active directory.
   * Format:
   * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * Identifier. The resource name of the active directory.
   * Format:
   * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. Create time of the active directory.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Create time of the active directory.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. Create time of the active directory.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** * * *
   * Output only. The state of the AD.
   * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. The state of the AD.
   * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory.State getState() { com.google.cloud.netapp.v1.ActiveDirectory.State result = com.google.cloud.netapp.v1.ActiveDirectory.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.ActiveDirectory.State.UNRECOGNIZED : result; } public static final int DOMAIN_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object domain_ = ""; /** * * *
   * Required. Name of the Active Directory domain
   * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The domain. */ @java.lang.Override public java.lang.String getDomain() { java.lang.Object ref = domain_; 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(); domain_ = s; return s; } } /** * * *
   * Required. Name of the Active Directory domain
   * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for domain. */ @java.lang.Override public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SITE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object site_ = ""; /** * * *
   * The Active Directory site the service will limit Domain Controller
   * discovery too.
   * 
* * string site = 5; * * @return The site. */ @java.lang.Override public java.lang.String getSite() { java.lang.Object ref = site_; 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(); site_ = s; return s; } } /** * * *
   * The Active Directory site the service will limit Domain Controller
   * discovery too.
   * 
* * string site = 5; * * @return The bytes for site. */ @java.lang.Override public com.google.protobuf.ByteString getSiteBytes() { java.lang.Object ref = site_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); site_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object dns_ = ""; /** * * *
   * Required. Comma separated list of DNS server IP addresses for the Active
   * Directory domain.
   * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The dns. */ @java.lang.Override public java.lang.String getDns() { java.lang.Object ref = dns_; 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(); dns_ = s; return s; } } /** * * *
   * Required. Comma separated list of DNS server IP addresses for the Active
   * Directory domain.
   * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for dns. */ @java.lang.Override public com.google.protobuf.ByteString getDnsBytes() { java.lang.Object ref = dns_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dns_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NET_BIOS_PREFIX_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object netBiosPrefix_ = ""; /** * * *
   * Required. NetBIOSPrefix is used as a prefix for SMB server name.
   * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The netBiosPrefix. */ @java.lang.Override public java.lang.String getNetBiosPrefix() { java.lang.Object ref = netBiosPrefix_; 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(); netBiosPrefix_ = s; return s; } } /** * * *
   * Required. NetBIOSPrefix is used as a prefix for SMB server name.
   * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for netBiosPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getNetBiosPrefixBytes() { java.lang.Object ref = netBiosPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); netBiosPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object organizationalUnit_ = ""; /** * * *
   * The Organizational Unit (OU) within the Windows Active Directory the user
   * belongs to.
   * 
* * string organizational_unit = 8; * * @return The organizationalUnit. */ @java.lang.Override public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; 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(); organizationalUnit_ = s; return s; } } /** * * *
   * The Organizational Unit (OU) within the Windows Active Directory the user
   * belongs to.
   * 
* * string organizational_unit = 8; * * @return The bytes for organizationalUnit. */ @java.lang.Override public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AES_ENCRYPTION_FIELD_NUMBER = 9; private boolean aesEncryption_ = false; /** * * *
   * If enabled, AES encryption will be enabled for SMB communication.
   * 
* * bool aes_encryption = 9; * * @return The aesEncryption. */ @java.lang.Override public boolean getAesEncryption() { return aesEncryption_; } public static final int USERNAME_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** * * *
   * Required. Username of the Active Directory domain administrator.
   * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; } } /** * * *
   * Required. Username of the Active Directory domain administrator.
   * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** * * *
   * Required. Password of the Active Directory domain administrator.
   * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** * * *
   * Required. Password of the Active Directory domain administrator.
   * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKUP_OPERATORS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Optional. Users to be added to the Built-in Backup Operator active
   * directory group.
   * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the backupOperators. */ public com.google.protobuf.ProtocolStringList getBackupOperatorsList() { return backupOperators_; } /** * * *
   * Optional. Users to be added to the Built-in Backup Operator active
   * directory group.
   * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of backupOperators. */ public int getBackupOperatorsCount() { return backupOperators_.size(); } /** * * *
   * Optional. Users to be added to the Built-in Backup Operator active
   * directory group.
   * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The backupOperators at the given index. */ public java.lang.String getBackupOperators(int index) { return backupOperators_.get(index); } /** * * *
   * Optional. Users to be added to the Built-in Backup Operator active
   * directory group.
   * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the backupOperators at the given index. */ public com.google.protobuf.ByteString getBackupOperatorsBytes(int index) { return backupOperators_.getByteString(index); } public static final int ADMINISTRATORS_FIELD_NUMBER = 22; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Optional. Users to be added to the Built-in Admininstrators group.
   * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the administrators. */ public com.google.protobuf.ProtocolStringList getAdministratorsList() { return administrators_; } /** * * *
   * Optional. Users to be added to the Built-in Admininstrators group.
   * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of administrators. */ public int getAdministratorsCount() { return administrators_.size(); } /** * * *
   * Optional. Users to be added to the Built-in Admininstrators group.
   * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The administrators at the given index. */ public java.lang.String getAdministrators(int index) { return administrators_.get(index); } /** * * *
   * Optional. Users to be added to the Built-in Admininstrators group.
   * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the administrators at the given index. */ public com.google.protobuf.ByteString getAdministratorsBytes(int index) { return administrators_.getByteString(index); } public static final int SECURITY_OPERATORS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Optional. Domain users to be given the SeSecurityPrivilege.
   * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the securityOperators. */ public com.google.protobuf.ProtocolStringList getSecurityOperatorsList() { return securityOperators_; } /** * * *
   * Optional. Domain users to be given the SeSecurityPrivilege.
   * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of securityOperators. */ public int getSecurityOperatorsCount() { return securityOperators_.size(); } /** * * *
   * Optional. Domain users to be given the SeSecurityPrivilege.
   * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The securityOperators at the given index. */ public java.lang.String getSecurityOperators(int index) { return securityOperators_.get(index); } /** * * *
   * Optional. Domain users to be given the SeSecurityPrivilege.
   * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the securityOperators at the given index. */ public com.google.protobuf.ByteString getSecurityOperatorsBytes(int index) { return securityOperators_.getByteString(index); } public static final int KDC_HOSTNAME_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object kdcHostname_ = ""; /** * * *
   * Name of the active directory machine. This optional parameter is used only
   * while creating kerberos volume
   * 
* * string kdc_hostname = 14; * * @return The kdcHostname. */ @java.lang.Override public java.lang.String getKdcHostname() { java.lang.Object ref = kdcHostname_; 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(); kdcHostname_ = s; return s; } } /** * * *
   * Name of the active directory machine. This optional parameter is used only
   * while creating kerberos volume
   * 
* * string kdc_hostname = 14; * * @return The bytes for kdcHostname. */ @java.lang.Override public com.google.protobuf.ByteString getKdcHostnameBytes() { java.lang.Object ref = kdcHostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcHostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KDC_IP_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object kdcIp_ = ""; /** * * *
   * KDC server IP address for the active directory machine.
   * 
* * string kdc_ip = 15; * * @return The kdcIp. */ @java.lang.Override public java.lang.String getKdcIp() { java.lang.Object ref = kdcIp_; 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(); kdcIp_ = s; return s; } } /** * * *
   * KDC server IP address for the active directory machine.
   * 
* * string kdc_ip = 15; * * @return The bytes for kdcIp. */ @java.lang.Override public com.google.protobuf.ByteString getKdcIpBytes() { java.lang.Object ref = kdcIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NFS_USERS_WITH_LDAP_FIELD_NUMBER = 16; private boolean nfsUsersWithLdap_ = false; /** * * *
   * If enabled, will allow access to local users and LDAP users. If access is
   * needed for only LDAP users, it has to be disabled.
   * 
* * bool nfs_users_with_ldap = 16; * * @return The nfsUsersWithLdap. */ @java.lang.Override public boolean getNfsUsersWithLdap() { return nfsUsersWithLdap_; } public static final int DESCRIPTION_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Description of the active directory.
   * 
* * string description = 17; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * Description of the active directory.
   * 
* * string description = 17; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LDAP_SIGNING_FIELD_NUMBER = 18; private boolean ldapSigning_ = false; /** * * *
   * Specifies whether or not the LDAP traffic needs to be signed.
   * 
* * bool ldap_signing = 18; * * @return The ldapSigning. */ @java.lang.Override public boolean getLdapSigning() { return ldapSigning_; } public static final int ENCRYPT_DC_CONNECTIONS_FIELD_NUMBER = 19; private boolean encryptDcConnections_ = false; /** * * *
   * If enabled, traffic between the SMB server to Domain Controller (DC) will
   * be encrypted.
   * 
* * bool encrypt_dc_connections = 19; * * @return The encryptDcConnections. */ @java.lang.Override public boolean getEncryptDcConnections() { return encryptDcConnections_; } public static final int LABELS_FIELD_NUMBER = 20; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Labels for the active directory.
   * 
* * map<string, string> labels = 20; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Labels for the active directory.
   * 
* * map<string, string> labels = 20; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Labels for the active directory.
   * 
* * map<string, string> labels = 20; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Labels for the active directory.
   * 
* * map<string, string> labels = 20; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATE_DETAILS_FIELD_NUMBER = 21; @SuppressWarnings("serial") private volatile java.lang.Object stateDetails_ = ""; /** * * *
   * Output only. The state details of the Active Directory.
   * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ @java.lang.Override public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; 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(); stateDetails_ = s; return s; } } /** * * *
   * Output only. The state details of the Active Directory.
   * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ @java.lang.Override public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCreateTime()); } if (state_ != com.google.cloud.netapp.v1.ActiveDirectory.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, domain_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, site_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dns_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dns_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(netBiosPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, netBiosPrefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationalUnit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, organizationalUnit_); } if (aesEncryption_ != false) { output.writeBool(9, aesEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, username_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, password_); } for (int i = 0; i < backupOperators_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, backupOperators_.getRaw(i)); } for (int i = 0; i < securityOperators_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, securityOperators_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcHostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, kdcHostname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, kdcIp_); } if (nfsUsersWithLdap_ != false) { output.writeBool(16, nfsUsersWithLdap_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, description_); } if (ldapSigning_ != false) { output.writeBool(18, ldapSigning_); } if (encryptDcConnections_ != false) { output.writeBool(19, encryptDcConnections_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 20); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, stateDetails_); } for (int i = 0; i < administrators_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, administrators_.getRaw(i)); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (state_ != com.google.cloud.netapp.v1.ActiveDirectory.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, domain_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, site_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dns_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dns_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(netBiosPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, netBiosPrefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationalUnit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, organizationalUnit_); } if (aesEncryption_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, aesEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, username_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, password_); } { int dataSize = 0; for (int i = 0; i < backupOperators_.size(); i++) { dataSize += computeStringSizeNoTag(backupOperators_.getRaw(i)); } size += dataSize; size += 1 * getBackupOperatorsList().size(); } { int dataSize = 0; for (int i = 0; i < securityOperators_.size(); i++) { dataSize += computeStringSizeNoTag(securityOperators_.getRaw(i)); } size += dataSize; size += 1 * getSecurityOperatorsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kdcHostname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, kdcIp_); } if (nfsUsersWithLdap_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, nfsUsersWithLdap_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, description_); } if (ldapSigning_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, ldapSigning_); } if (encryptDcConnections_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, encryptDcConnections_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, stateDetails_); } { int dataSize = 0; for (int i = 0; i < administrators_.size(); i++) { dataSize += computeStringSizeNoTag(administrators_.getRaw(i)); } size += dataSize; size += 2 * getAdministratorsList().size(); } 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.netapp.v1.ActiveDirectory)) { return super.equals(obj); } com.google.cloud.netapp.v1.ActiveDirectory other = (com.google.cloud.netapp.v1.ActiveDirectory) obj; if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (state_ != other.state_) return false; if (!getDomain().equals(other.getDomain())) return false; if (!getSite().equals(other.getSite())) return false; if (!getDns().equals(other.getDns())) return false; if (!getNetBiosPrefix().equals(other.getNetBiosPrefix())) return false; if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false; if (getAesEncryption() != other.getAesEncryption()) return false; if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getBackupOperatorsList().equals(other.getBackupOperatorsList())) return false; if (!getAdministratorsList().equals(other.getAdministratorsList())) return false; if (!getSecurityOperatorsList().equals(other.getSecurityOperatorsList())) return false; if (!getKdcHostname().equals(other.getKdcHostname())) return false; if (!getKdcIp().equals(other.getKdcIp())) return false; if (getNfsUsersWithLdap() != other.getNfsUsersWithLdap()) return false; if (!getDescription().equals(other.getDescription())) return false; if (getLdapSigning() != other.getLdapSigning()) return false; if (getEncryptDcConnections() != other.getEncryptDcConnections()) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getStateDetails().equals(other.getStateDetails())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); hash = (37 * hash) + SITE_FIELD_NUMBER; hash = (53 * hash) + getSite().hashCode(); hash = (37 * hash) + DNS_FIELD_NUMBER; hash = (53 * hash) + getDns().hashCode(); hash = (37 * hash) + NET_BIOS_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getNetBiosPrefix().hashCode(); hash = (37 * hash) + ORGANIZATIONAL_UNIT_FIELD_NUMBER; hash = (53 * hash) + getOrganizationalUnit().hashCode(); hash = (37 * hash) + AES_ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAesEncryption()); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); if (getBackupOperatorsCount() > 0) { hash = (37 * hash) + BACKUP_OPERATORS_FIELD_NUMBER; hash = (53 * hash) + getBackupOperatorsList().hashCode(); } if (getAdministratorsCount() > 0) { hash = (37 * hash) + ADMINISTRATORS_FIELD_NUMBER; hash = (53 * hash) + getAdministratorsList().hashCode(); } if (getSecurityOperatorsCount() > 0) { hash = (37 * hash) + SECURITY_OPERATORS_FIELD_NUMBER; hash = (53 * hash) + getSecurityOperatorsList().hashCode(); } hash = (37 * hash) + KDC_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getKdcHostname().hashCode(); hash = (37 * hash) + KDC_IP_FIELD_NUMBER; hash = (53 * hash) + getKdcIp().hashCode(); hash = (37 * hash) + NFS_USERS_WITH_LDAP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNfsUsersWithLdap()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + LDAP_SIGNING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLdapSigning()); hash = (37 * hash) + ENCRYPT_DC_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEncryptDcConnections()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getStateDetails().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.ActiveDirectory parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.ActiveDirectory 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.netapp.v1.ActiveDirectory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.ActiveDirectory 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.netapp.v1.ActiveDirectory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.ActiveDirectory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.ActiveDirectory parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.ActiveDirectory 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.netapp.v1.ActiveDirectory parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.ActiveDirectory 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.netapp.v1.ActiveDirectory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.ActiveDirectory 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.netapp.v1.ActiveDirectory 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; } /** * * *
   * ActiveDirectory is the public representation of the active directory config.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.ActiveDirectory} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ActiveDirectory) com.google.cloud.netapp.v1.ActiveDirectoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 20: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 20: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.ActiveDirectory.class, com.google.cloud.netapp.v1.ActiveDirectory.Builder.class); } // Construct using com.google.cloud.netapp.v1.ActiveDirectory.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } state_ = 0; domain_ = ""; site_ = ""; dns_ = ""; netBiosPrefix_ = ""; organizationalUnit_ = ""; aesEncryption_ = false; username_ = ""; password_ = ""; backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); kdcHostname_ = ""; kdcIp_ = ""; nfsUsersWithLdap_ = false; description_ = ""; ldapSigning_ = false; encryptDcConnections_ = false; internalGetMutableLabels().clear(); stateDetails_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.netapp.v1.ActiveDirectoryProto .internal_static_google_cloud_netapp_v1_ActiveDirectory_descriptor; } @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory getDefaultInstanceForType() { return com.google.cloud.netapp.v1.ActiveDirectory.getDefaultInstance(); } @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory build() { com.google.cloud.netapp.v1.ActiveDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory buildPartial() { com.google.cloud.netapp.v1.ActiveDirectory result = new com.google.cloud.netapp.v1.ActiveDirectory(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.netapp.v1.ActiveDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.site_ = site_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.dns_ = dns_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.netBiosPrefix_ = netBiosPrefix_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.organizationalUnit_ = organizationalUnit_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.aesEncryption_ = aesEncryption_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.username_ = username_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.password_ = password_; } if (((from_bitField0_ & 0x00000800) != 0)) { backupOperators_.makeImmutable(); result.backupOperators_ = backupOperators_; } if (((from_bitField0_ & 0x00001000) != 0)) { administrators_.makeImmutable(); result.administrators_ = administrators_; } if (((from_bitField0_ & 0x00002000) != 0)) { securityOperators_.makeImmutable(); result.securityOperators_ = securityOperators_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.kdcHostname_ = kdcHostname_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.kdcIp_ = kdcIp_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.nfsUsersWithLdap_ = nfsUsersWithLdap_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.ldapSigning_ = ldapSigning_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.encryptDcConnections_ = encryptDcConnections_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00200000) != 0)) { result.stateDetails_ = stateDetails_; } result.bitField0_ |= to_bitField0_; } @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.netapp.v1.ActiveDirectory) { return mergeFrom((com.google.cloud.netapp.v1.ActiveDirectory) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.netapp.v1.ActiveDirectory other) { if (other == com.google.cloud.netapp.v1.ActiveDirectory.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getDomain().isEmpty()) { domain_ = other.domain_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getSite().isEmpty()) { site_ = other.site_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getDns().isEmpty()) { dns_ = other.dns_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getNetBiosPrefix().isEmpty()) { netBiosPrefix_ = other.netBiosPrefix_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getOrganizationalUnit().isEmpty()) { organizationalUnit_ = other.organizationalUnit_; bitField0_ |= 0x00000080; onChanged(); } if (other.getAesEncryption() != false) { setAesEncryption(other.getAesEncryption()); } if (!other.getUsername().isEmpty()) { username_ = other.username_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; bitField0_ |= 0x00000400; onChanged(); } if (!other.backupOperators_.isEmpty()) { if (backupOperators_.isEmpty()) { backupOperators_ = other.backupOperators_; bitField0_ |= 0x00000800; } else { ensureBackupOperatorsIsMutable(); backupOperators_.addAll(other.backupOperators_); } onChanged(); } if (!other.administrators_.isEmpty()) { if (administrators_.isEmpty()) { administrators_ = other.administrators_; bitField0_ |= 0x00001000; } else { ensureAdministratorsIsMutable(); administrators_.addAll(other.administrators_); } onChanged(); } if (!other.securityOperators_.isEmpty()) { if (securityOperators_.isEmpty()) { securityOperators_ = other.securityOperators_; bitField0_ |= 0x00002000; } else { ensureSecurityOperatorsIsMutable(); securityOperators_.addAll(other.securityOperators_); } onChanged(); } if (!other.getKdcHostname().isEmpty()) { kdcHostname_ = other.kdcHostname_; bitField0_ |= 0x00004000; onChanged(); } if (!other.getKdcIp().isEmpty()) { kdcIp_ = other.kdcIp_; bitField0_ |= 0x00008000; onChanged(); } if (other.getNfsUsersWithLdap() != false) { setNfsUsersWithLdap(other.getNfsUsersWithLdap()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00020000; onChanged(); } if (other.getLdapSigning() != false) { setLdapSigning(other.getLdapSigning()); } if (other.getEncryptDcConnections() != false) { setEncryptDcConnections(other.getEncryptDcConnections()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00100000; if (!other.getStateDetails().isEmpty()) { stateDetails_ = other.stateDetails_; bitField0_ |= 0x00200000; 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { state_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { domain_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { site_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { dns_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { netBiosPrefix_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { organizationalUnit_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { aesEncryption_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { username_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 case 90: { password_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureBackupOperatorsIsMutable(); backupOperators_.add(s); break; } // case 98 case 106: { java.lang.String s = input.readStringRequireUtf8(); ensureSecurityOperatorsIsMutable(); securityOperators_.add(s); break; } // case 106 case 114: { kdcHostname_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 114 case 122: { kdcIp_ = input.readStringRequireUtf8(); bitField0_ |= 0x00008000; break; } // case 122 case 128: { nfsUsersWithLdap_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 128 case 138: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00020000; break; } // case 138 case 144: { ldapSigning_ = input.readBool(); bitField0_ |= 0x00040000; break; } // case 144 case 152: { encryptDcConnections_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 152 case 162: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00100000; break; } // case 162 case 170: { stateDetails_ = input.readStringRequireUtf8(); bitField0_ |= 0x00200000; break; } // case 170 case 178: { java.lang.String s = input.readStringRequireUtf8(); ensureAdministratorsIsMutable(); administrators_.add(s); break; } // case 178 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 name_ = ""; /** * * *
     * Identifier. The resource name of the active directory.
     * Format:
     * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier. The resource name of the active directory.
     * Format:
     * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier. The resource name of the active directory.
     * Format:
     * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Identifier. The resource name of the active directory.
     * Format:
     * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier. The resource name of the active directory.
     * Format:
     * `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. Create time of the active directory.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private int state_ = 0; /** * * *
     * Output only. The state of the AD.
     * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. The state of the AD.
     * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The state of the AD.
     * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory.State getState() { com.google.cloud.netapp.v1.ActiveDirectory.State result = com.google.cloud.netapp.v1.ActiveDirectory.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.ActiveDirectory.State.UNRECOGNIZED : result; } /** * * *
     * Output only. The state of the AD.
     * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.netapp.v1.ActiveDirectory.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The state of the AD.
     * 
* * * .google.cloud.netapp.v1.ActiveDirectory.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; } private java.lang.Object domain_ = ""; /** * * *
     * Required. Name of the Active Directory domain
     * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Name of the Active Directory domain
     * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for domain. */ public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Name of the Active Directory domain
     * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The domain to set. * @return This builder for chaining. */ public Builder setDomain(java.lang.String value) { if (value == null) { throw new NullPointerException(); } domain_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Required. Name of the Active Directory domain
     * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDomain() { domain_ = getDefaultInstance().getDomain(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Required. Name of the Active Directory domain
     * 
* * string domain = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for domain to set. * @return This builder for chaining. */ public Builder setDomainBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object site_ = ""; /** * * *
     * The Active Directory site the service will limit Domain Controller
     * discovery too.
     * 
* * string site = 5; * * @return The site. */ public java.lang.String getSite() { java.lang.Object ref = site_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); site_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The Active Directory site the service will limit Domain Controller
     * discovery too.
     * 
* * string site = 5; * * @return The bytes for site. */ public com.google.protobuf.ByteString getSiteBytes() { java.lang.Object ref = site_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); site_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The Active Directory site the service will limit Domain Controller
     * discovery too.
     * 
* * string site = 5; * * @param value The site to set. * @return This builder for chaining. */ public Builder setSite(java.lang.String value) { if (value == null) { throw new NullPointerException(); } site_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The Active Directory site the service will limit Domain Controller
     * discovery too.
     * 
* * string site = 5; * * @return This builder for chaining. */ public Builder clearSite() { site_ = getDefaultInstance().getSite(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * The Active Directory site the service will limit Domain Controller
     * discovery too.
     * 
* * string site = 5; * * @param value The bytes for site to set. * @return This builder for chaining. */ public Builder setSiteBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); site_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object dns_ = ""; /** * * *
     * Required. Comma separated list of DNS server IP addresses for the Active
     * Directory domain.
     * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The dns. */ public java.lang.String getDns() { java.lang.Object ref = dns_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dns_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Comma separated list of DNS server IP addresses for the Active
     * Directory domain.
     * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for dns. */ public com.google.protobuf.ByteString getDnsBytes() { java.lang.Object ref = dns_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dns_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Comma separated list of DNS server IP addresses for the Active
     * Directory domain.
     * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @param value The dns to set. * @return This builder for chaining. */ public Builder setDns(java.lang.String value) { if (value == null) { throw new NullPointerException(); } dns_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Required. Comma separated list of DNS server IP addresses for the Active
     * Directory domain.
     * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDns() { dns_ = getDefaultInstance().getDns(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Required. Comma separated list of DNS server IP addresses for the Active
     * Directory domain.
     * 
* * string dns = 6 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for dns to set. * @return This builder for chaining. */ public Builder setDnsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dns_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object netBiosPrefix_ = ""; /** * * *
     * Required. NetBIOSPrefix is used as a prefix for SMB server name.
     * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The netBiosPrefix. */ public java.lang.String getNetBiosPrefix() { java.lang.Object ref = netBiosPrefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); netBiosPrefix_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. NetBIOSPrefix is used as a prefix for SMB server name.
     * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for netBiosPrefix. */ public com.google.protobuf.ByteString getNetBiosPrefixBytes() { java.lang.Object ref = netBiosPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); netBiosPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. NetBIOSPrefix is used as a prefix for SMB server name.
     * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The netBiosPrefix to set. * @return This builder for chaining. */ public Builder setNetBiosPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } netBiosPrefix_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Required. NetBIOSPrefix is used as a prefix for SMB server name.
     * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearNetBiosPrefix() { netBiosPrefix_ = getDefaultInstance().getNetBiosPrefix(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Required. NetBIOSPrefix is used as a prefix for SMB server name.
     * 
* * string net_bios_prefix = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for netBiosPrefix to set. * @return This builder for chaining. */ public Builder setNetBiosPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); netBiosPrefix_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object organizationalUnit_ = ""; /** * * *
     * The Organizational Unit (OU) within the Windows Active Directory the user
     * belongs to.
     * 
* * string organizational_unit = 8; * * @return The organizationalUnit. */ public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The Organizational Unit (OU) within the Windows Active Directory the user
     * belongs to.
     * 
* * string organizational_unit = 8; * * @return The bytes for organizationalUnit. */ public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The Organizational Unit (OU) within the Windows Active Directory the user
     * belongs to.
     * 
* * string organizational_unit = 8; * * @param value The organizationalUnit to set. * @return This builder for chaining. */ public Builder setOrganizationalUnit(java.lang.String value) { if (value == null) { throw new NullPointerException(); } organizationalUnit_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The Organizational Unit (OU) within the Windows Active Directory the user
     * belongs to.
     * 
* * string organizational_unit = 8; * * @return This builder for chaining. */ public Builder clearOrganizationalUnit() { organizationalUnit_ = getDefaultInstance().getOrganizationalUnit(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * The Organizational Unit (OU) within the Windows Active Directory the user
     * belongs to.
     * 
* * string organizational_unit = 8; * * @param value The bytes for organizationalUnit to set. * @return This builder for chaining. */ public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organizationalUnit_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private boolean aesEncryption_; /** * * *
     * If enabled, AES encryption will be enabled for SMB communication.
     * 
* * bool aes_encryption = 9; * * @return The aesEncryption. */ @java.lang.Override public boolean getAesEncryption() { return aesEncryption_; } /** * * *
     * If enabled, AES encryption will be enabled for SMB communication.
     * 
* * bool aes_encryption = 9; * * @param value The aesEncryption to set. * @return This builder for chaining. */ public Builder setAesEncryption(boolean value) { aesEncryption_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * If enabled, AES encryption will be enabled for SMB communication.
     * 
* * bool aes_encryption = 9; * * @return This builder for chaining. */ public Builder clearAesEncryption() { bitField0_ = (bitField0_ & ~0x00000100); aesEncryption_ = false; onChanged(); return this; } private java.lang.Object username_ = ""; /** * * *
     * Required. Username of the Active Directory domain administrator.
     * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Username of the Active Directory domain administrator.
     * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Username of the Active Directory domain administrator.
     * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Required. Username of the Active Directory domain administrator.
     * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
     * Required. Username of the Active Directory domain administrator.
     * 
* * string username = 10 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object password_ = ""; /** * * *
     * Required. Password of the Active Directory domain administrator.
     * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Password of the Active Directory domain administrator.
     * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Password of the Active Directory domain administrator.
     * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword(java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Required. Password of the Active Directory domain administrator.
     * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Required. Password of the Active Directory domain administrator.
     * 
* * string password = 11 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureBackupOperatorsIsMutable() { if (!backupOperators_.isModifiable()) { backupOperators_ = new com.google.protobuf.LazyStringArrayList(backupOperators_); } bitField0_ |= 0x00000800; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the backupOperators. */ public com.google.protobuf.ProtocolStringList getBackupOperatorsList() { backupOperators_.makeImmutable(); return backupOperators_; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of backupOperators. */ public int getBackupOperatorsCount() { return backupOperators_.size(); } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The backupOperators at the given index. */ public java.lang.String getBackupOperators(int index) { return backupOperators_.get(index); } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the backupOperators at the given index. */ public com.google.protobuf.ByteString getBackupOperatorsBytes(int index) { return backupOperators_.getByteString(index); } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The backupOperators to set. * @return This builder for chaining. */ public Builder setBackupOperators(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBackupOperatorsIsMutable(); backupOperators_.set(index, value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The backupOperators to add. * @return This builder for chaining. */ public Builder addBackupOperators(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBackupOperatorsIsMutable(); backupOperators_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The backupOperators to add. * @return This builder for chaining. */ public Builder addAllBackupOperators(java.lang.Iterable values) { ensureBackupOperatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupOperators_); bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearBackupOperators() { backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); ; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Backup Operator active
     * directory group.
     * 
* * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the backupOperators to add. * @return This builder for chaining. */ public Builder addBackupOperatorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBackupOperatorsIsMutable(); backupOperators_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAdministratorsIsMutable() { if (!administrators_.isModifiable()) { administrators_ = new com.google.protobuf.LazyStringArrayList(administrators_); } bitField0_ |= 0x00001000; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the administrators. */ public com.google.protobuf.ProtocolStringList getAdministratorsList() { administrators_.makeImmutable(); return administrators_; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of administrators. */ public int getAdministratorsCount() { return administrators_.size(); } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The administrators at the given index. */ public java.lang.String getAdministrators(int index) { return administrators_.get(index); } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the administrators at the given index. */ public com.google.protobuf.ByteString getAdministratorsBytes(int index) { return administrators_.getByteString(index); } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The administrators to set. * @return This builder for chaining. */ public Builder setAdministrators(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdministratorsIsMutable(); administrators_.set(index, value); bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The administrators to add. * @return This builder for chaining. */ public Builder addAdministrators(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdministratorsIsMutable(); administrators_.add(value); bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The administrators to add. * @return This builder for chaining. */ public Builder addAllAdministrators(java.lang.Iterable values) { ensureAdministratorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, administrators_); bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearAdministrators() { administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; } /** * * *
     * Optional. Users to be added to the Built-in Admininstrators group.
     * 
* * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the administrators to add. * @return This builder for chaining. */ public Builder addAdministratorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAdministratorsIsMutable(); administrators_.add(value); bitField0_ |= 0x00001000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSecurityOperatorsIsMutable() { if (!securityOperators_.isModifiable()) { securityOperators_ = new com.google.protobuf.LazyStringArrayList(securityOperators_); } bitField0_ |= 0x00002000; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the securityOperators. */ public com.google.protobuf.ProtocolStringList getSecurityOperatorsList() { securityOperators_.makeImmutable(); return securityOperators_; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of securityOperators. */ public int getSecurityOperatorsCount() { return securityOperators_.size(); } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The securityOperators at the given index. */ public java.lang.String getSecurityOperators(int index) { return securityOperators_.get(index); } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The bytes of the securityOperators at the given index. */ public com.google.protobuf.ByteString getSecurityOperatorsBytes(int index) { return securityOperators_.getByteString(index); } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The securityOperators to set. * @return This builder for chaining. */ public Builder setSecurityOperators(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityOperatorsIsMutable(); securityOperators_.set(index, value); bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The securityOperators to add. * @return This builder for chaining. */ public Builder addSecurityOperators(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityOperatorsIsMutable(); securityOperators_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The securityOperators to add. * @return This builder for chaining. */ public Builder addAllSecurityOperators(java.lang.Iterable values) { ensureSecurityOperatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityOperators_); bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearSecurityOperators() { securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); ; onChanged(); return this; } /** * * *
     * Optional. Domain users to be given the SeSecurityPrivilege.
     * 
* * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes of the securityOperators to add. * @return This builder for chaining. */ public Builder addSecurityOperatorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityOperatorsIsMutable(); securityOperators_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } private java.lang.Object kdcHostname_ = ""; /** * * *
     * Name of the active directory machine. This optional parameter is used only
     * while creating kerberos volume
     * 
* * string kdc_hostname = 14; * * @return The kdcHostname. */ public java.lang.String getKdcHostname() { java.lang.Object ref = kdcHostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcHostname_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Name of the active directory machine. This optional parameter is used only
     * while creating kerberos volume
     * 
* * string kdc_hostname = 14; * * @return The bytes for kdcHostname. */ public com.google.protobuf.ByteString getKdcHostnameBytes() { java.lang.Object ref = kdcHostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcHostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Name of the active directory machine. This optional parameter is used only
     * while creating kerberos volume
     * 
* * string kdc_hostname = 14; * * @param value The kdcHostname to set. * @return This builder for chaining. */ public Builder setKdcHostname(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kdcHostname_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Name of the active directory machine. This optional parameter is used only
     * while creating kerberos volume
     * 
* * string kdc_hostname = 14; * * @return This builder for chaining. */ public Builder clearKdcHostname() { kdcHostname_ = getDefaultInstance().getKdcHostname(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * * *
     * Name of the active directory machine. This optional parameter is used only
     * while creating kerberos volume
     * 
* * string kdc_hostname = 14; * * @param value The bytes for kdcHostname to set. * @return This builder for chaining. */ public Builder setKdcHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kdcHostname_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } private java.lang.Object kdcIp_ = ""; /** * * *
     * KDC server IP address for the active directory machine.
     * 
* * string kdc_ip = 15; * * @return The kdcIp. */ public java.lang.String getKdcIp() { java.lang.Object ref = kdcIp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcIp_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * KDC server IP address for the active directory machine.
     * 
* * string kdc_ip = 15; * * @return The bytes for kdcIp. */ public com.google.protobuf.ByteString getKdcIpBytes() { java.lang.Object ref = kdcIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * KDC server IP address for the active directory machine.
     * 
* * string kdc_ip = 15; * * @param value The kdcIp to set. * @return This builder for chaining. */ public Builder setKdcIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kdcIp_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * KDC server IP address for the active directory machine.
     * 
* * string kdc_ip = 15; * * @return This builder for chaining. */ public Builder clearKdcIp() { kdcIp_ = getDefaultInstance().getKdcIp(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** * * *
     * KDC server IP address for the active directory machine.
     * 
* * string kdc_ip = 15; * * @param value The bytes for kdcIp to set. * @return This builder for chaining. */ public Builder setKdcIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kdcIp_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } private boolean nfsUsersWithLdap_; /** * * *
     * If enabled, will allow access to local users and LDAP users. If access is
     * needed for only LDAP users, it has to be disabled.
     * 
* * bool nfs_users_with_ldap = 16; * * @return The nfsUsersWithLdap. */ @java.lang.Override public boolean getNfsUsersWithLdap() { return nfsUsersWithLdap_; } /** * * *
     * If enabled, will allow access to local users and LDAP users. If access is
     * needed for only LDAP users, it has to be disabled.
     * 
* * bool nfs_users_with_ldap = 16; * * @param value The nfsUsersWithLdap to set. * @return This builder for chaining. */ public Builder setNfsUsersWithLdap(boolean value) { nfsUsersWithLdap_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * If enabled, will allow access to local users and LDAP users. If access is
     * needed for only LDAP users, it has to be disabled.
     * 
* * bool nfs_users_with_ldap = 16; * * @return This builder for chaining. */ public Builder clearNfsUsersWithLdap() { bitField0_ = (bitField0_ & ~0x00010000); nfsUsersWithLdap_ = false; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * Description of the active directory.
     * 
* * string description = 17; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Description of the active directory.
     * 
* * string description = 17; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Description of the active directory.
     * 
* * string description = 17; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Description of the active directory.
     * 
* * string description = 17; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** * * *
     * Description of the active directory.
     * 
* * string description = 17; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } private boolean ldapSigning_; /** * * *
     * Specifies whether or not the LDAP traffic needs to be signed.
     * 
* * bool ldap_signing = 18; * * @return The ldapSigning. */ @java.lang.Override public boolean getLdapSigning() { return ldapSigning_; } /** * * *
     * Specifies whether or not the LDAP traffic needs to be signed.
     * 
* * bool ldap_signing = 18; * * @param value The ldapSigning to set. * @return This builder for chaining. */ public Builder setLdapSigning(boolean value) { ldapSigning_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * * *
     * Specifies whether or not the LDAP traffic needs to be signed.
     * 
* * bool ldap_signing = 18; * * @return This builder for chaining. */ public Builder clearLdapSigning() { bitField0_ = (bitField0_ & ~0x00040000); ldapSigning_ = false; onChanged(); return this; } private boolean encryptDcConnections_; /** * * *
     * If enabled, traffic between the SMB server to Domain Controller (DC) will
     * be encrypted.
     * 
* * bool encrypt_dc_connections = 19; * * @return The encryptDcConnections. */ @java.lang.Override public boolean getEncryptDcConnections() { return encryptDcConnections_; } /** * * *
     * If enabled, traffic between the SMB server to Domain Controller (DC) will
     * be encrypted.
     * 
* * bool encrypt_dc_connections = 19; * * @param value The encryptDcConnections to set. * @return This builder for chaining. */ public Builder setEncryptDcConnections(boolean value) { encryptDcConnections_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** * * *
     * If enabled, traffic between the SMB server to Domain Controller (DC) will
     * be encrypted.
     * 
* * bool encrypt_dc_connections = 19; * * @return This builder for chaining. */ public Builder clearEncryptDcConnections() { bitField0_ = (bitField0_ & ~0x00080000); encryptDcConnections_ = false; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00100000; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00100000); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00100000; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00100000; return this; } /** * * *
     * Labels for the active directory.
     * 
* * map<string, string> labels = 20; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00100000; return this; } private java.lang.Object stateDetails_ = ""; /** * * *
     * Output only. The state details of the Active Directory.
     * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateDetails_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The state details of the Active Directory.
     * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The state details of the Active Directory.
     * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetails(java.lang.String value) { if (value == null) { throw new NullPointerException(); } stateDetails_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** * * *
     * Output only. The state details of the Active Directory.
     * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearStateDetails() { stateDetails_ = getDefaultInstance().getStateDetails(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } /** * * *
     * Output only. The state details of the Active Directory.
     * 
* * string state_details = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stateDetails_ = value; bitField0_ |= 0x00200000; 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.netapp.v1.ActiveDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ActiveDirectory) private static final com.google.cloud.netapp.v1.ActiveDirectory DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ActiveDirectory(); } public static com.google.cloud.netapp.v1.ActiveDirectory getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActiveDirectory 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 parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.netapp.v1.ActiveDirectory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy