Class SqlActiveDirectoryConfig (0.1.0)

public final class SqlActiveDirectoryConfig extends GeneratedMessage implements SqlActiveDirectoryConfigOrBuilder

Active Directory configuration, relevant only for Cloud SQL for SQL Server.

Protobuf type google.cloud.sql.v1beta4.SqlActiveDirectoryConfig

Static Fields

ADMIN_CREDENTIAL_SECRET_NAME_FIELD_NUMBER

public static final int ADMIN_CREDENTIAL_SECRET_NAME_FIELD_NUMBER
Field Value
Type Description
int

DNS_SERVERS_FIELD_NUMBER

public static final int DNS_SERVERS_FIELD_NUMBER
Field Value
Type Description
int

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
Type Description
int

ORGANIZATIONAL_UNIT_FIELD_NUMBER

public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SqlActiveDirectoryConfig getDefaultInstance()
Returns
Type Description
SqlActiveDirectoryConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SqlActiveDirectoryConfig.Builder newBuilder()
Returns
Type Description
SqlActiveDirectoryConfig.Builder

newBuilder(SqlActiveDirectoryConfig prototype)

public static SqlActiveDirectoryConfig.Builder newBuilder(SqlActiveDirectoryConfig prototype)
Parameter
Name Description
prototype SqlActiveDirectoryConfig
Returns
Type Description
SqlActiveDirectoryConfig.Builder

parseDelimitedFrom(InputStream input)

public static SqlActiveDirectoryConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SqlActiveDirectoryConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SqlActiveDirectoryConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SqlActiveDirectoryConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SqlActiveDirectoryConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SqlActiveDirectoryConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SqlActiveDirectoryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlActiveDirectoryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SqlActiveDirectoryConfig> parser()
Returns
Type Description
Parser<SqlActiveDirectoryConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdminCredentialSecretName()

public String getAdminCredentialSecretName()

Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).

string admin_credential_secret_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The adminCredentialSecretName.

getAdminCredentialSecretNameBytes()

public ByteString getAdminCredentialSecretNameBytes()

Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).

string admin_credential_secret_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for adminCredentialSecretName.

getDefaultInstanceForType()

public SqlActiveDirectoryConfig getDefaultInstanceForType()
Returns
Type Description
SqlActiveDirectoryConfig

getDnsServers(int index)

public String getDnsServers(int index)

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dnsServers at the given index.

getDnsServersBytes(int index)

public ByteString getDnsServersBytes(int index)

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dnsServers at the given index.

getDnsServersCount()

public int getDnsServersCount()

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
int

The count of dnsServers.

getDnsServersList()

public ProtocolStringList getDnsServersList()

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the dnsServers.

getDomain()

public String getDomain()

The name of the domain (e.g., mydomain.com).

string domain = 2;

Returns
Type Description
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

The name of the domain (e.g., mydomain.com).

string domain = 2;

Returns
Type Description
ByteString

The bytes for domain.

getKind()

public String getKind()

This is always sql#activeDirectoryConfig.

string kind = 1;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#activeDirectoryConfig.

string kind = 1;

Returns
Type Description
ByteString

The bytes for kind.

getMode()

public SqlActiveDirectoryConfig.ActiveDirectoryMode getMode()

Optional. The mode of the Active Directory configuration.

.google.cloud.sql.v1beta4.SqlActiveDirectoryConfig.ActiveDirectoryMode mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlActiveDirectoryConfig.ActiveDirectoryMode

The mode.

getModeValue()

public int getModeValue()

Optional. The mode of the Active Directory configuration.

.google.cloud.sql.v1beta4.SqlActiveDirectoryConfig.ActiveDirectoryMode mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getOrganizationalUnit()

public String getOrganizationalUnit()

Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.

string organizational_unit = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The organizationalUnit.

getOrganizationalUnitBytes()

public ByteString getOrganizationalUnitBytes()

Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.

string organizational_unit = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for organizationalUnit.

getParserForType()

public Parser<SqlActiveDirectoryConfig> getParserForType()
Returns
Type Description
Parser<SqlActiveDirectoryConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SqlActiveDirectoryConfig.Builder newBuilderForType()
Returns
Type Description
SqlActiveDirectoryConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SqlActiveDirectoryConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SqlActiveDirectoryConfig.Builder
Overrides

toBuilder()

public SqlActiveDirectoryConfig.Builder toBuilder()
Returns
Type Description
SqlActiveDirectoryConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException