Class Trust (1.44.0)

public final class Trust extends GeneratedMessageV3 implements TrustOrBuilder

Represents a relationship between two domains. This allows a controller in one domain to authenticate a user in another domain.

Protobuf type google.cloud.managedidentities.v1.Trust

Implements

TrustOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

LAST_TRUST_HEARTBEAT_TIME_FIELD_NUMBER

public static final int LAST_TRUST_HEARTBEAT_TIME_FIELD_NUMBER
Field Value
Type Description
int

SELECTIVE_AUTHENTICATION_FIELD_NUMBER

public static final int SELECTIVE_AUTHENTICATION_FIELD_NUMBER
Field Value
Type Description
int

STATE_DESCRIPTION_FIELD_NUMBER

public static final int STATE_DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_DNS_IP_ADDRESSES_FIELD_NUMBER

public static final int TARGET_DNS_IP_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

TARGET_DOMAIN_NAME_FIELD_NUMBER

public static final int TARGET_DOMAIN_NAME_FIELD_NUMBER
Field Value
Type Description
int

TRUST_DIRECTION_FIELD_NUMBER

public static final int TRUST_DIRECTION_FIELD_NUMBER
Field Value
Type Description
int

TRUST_HANDSHAKE_SECRET_FIELD_NUMBER

public static final int TRUST_HANDSHAKE_SECRET_FIELD_NUMBER
Field Value
Type Description
int

TRUST_TYPE_FIELD_NUMBER

public static final int TRUST_TYPE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Trust getDefaultInstance()
Returns
Type Description
Trust

getDescriptor()

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

newBuilder()

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

newBuilder(Trust prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Trust getDefaultInstanceForType()
Returns
Type Description
Trust

getLastTrustHeartbeatTime()

public Timestamp getLastTrustHeartbeatTime()

Output only. The last heartbeat time when the trust was known to be connected.

.google.protobuf.Timestamp last_trust_heartbeat_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastTrustHeartbeatTime.

getLastTrustHeartbeatTimeOrBuilder()

public TimestampOrBuilder getLastTrustHeartbeatTimeOrBuilder()

Output only. The last heartbeat time when the trust was known to be connected.

.google.protobuf.Timestamp last_trust_heartbeat_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getSelectiveAuthentication()

public boolean getSelectiveAuthentication()

Optional. The trust authentication type, which decides whether the trusted side has forest/domain wide access or selective access to an approved set of resources.

bool selective_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The selectiveAuthentication.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Trust.State getState()

Output only. The current state of the trust.

.google.cloud.managedidentities.v1.Trust.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trust.State

The state.

getStateDescription()

public String getStateDescription()

Output only. Additional information about the current state of the trust, if available.

string state_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDescription.

getStateDescriptionBytes()

public ByteString getStateDescriptionBytes()

Output only. Additional information about the current state of the trust, if available.

string state_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDescription.

getStateValue()

public int getStateValue()

Output only. The current state of the trust.

.google.cloud.managedidentities.v1.Trust.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTargetDnsIpAddresses(int index)

public String getTargetDnsIpAddresses(int index)

Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

repeated string target_dns_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetDnsIpAddresses at the given index.

getTargetDnsIpAddressesBytes(int index)

public ByteString getTargetDnsIpAddressesBytes(int index)

Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

repeated string target_dns_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetDnsIpAddresses at the given index.

getTargetDnsIpAddressesCount()

public int getTargetDnsIpAddressesCount()

Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

repeated string target_dns_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of targetDnsIpAddresses.

getTargetDnsIpAddressesList()

public ProtocolStringList getTargetDnsIpAddressesList()

Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

repeated string target_dns_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the targetDnsIpAddresses.

getTargetDomainName()

public String getTargetDomainName()

Required. The fully qualified target domain name which will be in trust with the current domain.

string target_domain_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The targetDomainName.

getTargetDomainNameBytes()

public ByteString getTargetDomainNameBytes()

Required. The fully qualified target domain name which will be in trust with the current domain.

string target_domain_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for targetDomainName.

getTrustDirection()

public Trust.TrustDirection getTrustDirection()

Required. The trust direction, which decides if the current domain is trusted, trusting, or both.

.google.cloud.managedidentities.v1.Trust.TrustDirection trust_direction = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trust.TrustDirection

The trustDirection.

getTrustDirectionValue()

public int getTrustDirectionValue()

Required. The trust direction, which decides if the current domain is trusted, trusting, or both.

.google.cloud.managedidentities.v1.Trust.TrustDirection trust_direction = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for trustDirection.

getTrustHandshakeSecret()

public String getTrustHandshakeSecret()

Required. The trust secret used for the handshake with the target domain. This will not be stored.

string trust_handshake_secret = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The trustHandshakeSecret.

getTrustHandshakeSecretBytes()

public ByteString getTrustHandshakeSecretBytes()

Required. The trust secret used for the handshake with the target domain. This will not be stored.

string trust_handshake_secret = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for trustHandshakeSecret.

getTrustType()

public Trust.TrustType getTrustType()

Required. The type of trust represented by the trust resource.

.google.cloud.managedidentities.v1.Trust.TrustType trust_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trust.TrustType

The trustType.

getTrustTypeValue()

public int getTrustTypeValue()

Required. The type of trust represented by the trust resource.

.google.cloud.managedidentities.v1.Trust.TrustType trust_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for trustType.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastTrustHeartbeatTime()

public boolean hasLastTrustHeartbeatTime()

Output only. The last heartbeat time when the trust was known to be connected.

.google.protobuf.Timestamp last_trust_heartbeat_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastTrustHeartbeatTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Trust.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Trust.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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