Class Trust

  • All Implemented Interfaces:
    TrustOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Trust
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Field Detail

      • TARGET_DOMAIN_NAME_FIELD_NUMBER

        public static final int TARGET_DOMAIN_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRUST_TYPE_FIELD_NUMBER

        public static final int TRUST_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRUST_DIRECTION_FIELD_NUMBER

        public static final int TRUST_DIRECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SELECTIVE_AUTHENTICATION_FIELD_NUMBER

        public static final int SELECTIVE_AUTHENTICATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TARGET_DNS_IP_ADDRESSES_FIELD_NUMBER

        public static final int TARGET_DNS_IP_ADDRESSES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRUST_HANDSHAKE_SECRET_FIELD_NUMBER

        public static final int TRUST_HANDSHAKE_SECRET_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATE_DESCRIPTION_FIELD_NUMBER

        public static final int STATE_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_TRUST_HEARTBEAT_TIME_FIELD_NUMBER

        public static final int LAST_TRUST_HEARTBEAT_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        Specified by:
        getTargetDomainName in interface TrustOrBuilder
        Returns:
        The targetDomainName.
      • getTargetDomainNameBytes

        public com.google.protobuf.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];
        Specified by:
        getTargetDomainNameBytes in interface TrustOrBuilder
        Returns:
        The bytes for targetDomainName.
      • 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];
        Specified by:
        getTrustTypeValue in interface TrustOrBuilder
        Returns:
        The enum numeric value on the wire for trustType.
      • 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];
        Specified by:
        getTrustType in interface TrustOrBuilder
        Returns:
        The trustType.
      • 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];
        Specified by:
        getTrustDirectionValue in interface TrustOrBuilder
        Returns:
        The enum numeric value on the wire for trustDirection.
      • 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];
        Specified by:
        getTrustDirection in interface TrustOrBuilder
        Returns:
        The trustDirection.
      • 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];
        Specified by:
        getSelectiveAuthentication in interface TrustOrBuilder
        Returns:
        The selectiveAuthentication.
      • getTargetDnsIpAddressesList

        public com.google.protobuf.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];
        Specified by:
        getTargetDnsIpAddressesList in interface TrustOrBuilder
        Returns:
        A list containing the targetDnsIpAddresses.
      • 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];
        Specified by:
        getTargetDnsIpAddressesCount in interface TrustOrBuilder
        Returns:
        The count of targetDnsIpAddresses.
      • getTargetDnsIpAddresses

        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];
        Specified by:
        getTargetDnsIpAddresses in interface TrustOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The targetDnsIpAddresses at the given index.
      • getTargetDnsIpAddressesBytes

        public com.google.protobuf.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];
        Specified by:
        getTargetDnsIpAddressesBytes in interface TrustOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the targetDnsIpAddresses at the given index.
      • 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];
        Specified by:
        getTrustHandshakeSecret in interface TrustOrBuilder
        Returns:
        The trustHandshakeSecret.
      • getTrustHandshakeSecretBytes

        public com.google.protobuf.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];
        Specified by:
        getTrustHandshakeSecretBytes in interface TrustOrBuilder
        Returns:
        The bytes for trustHandshakeSecret.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface TrustOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface TrustOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface TrustOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last update time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface TrustOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last update time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface TrustOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last update time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface TrustOrBuilder
      • 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];
        Specified by:
        getStateValue in interface TrustOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • 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];
        Specified by:
        getState in interface TrustOrBuilder
        Returns:
        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];
        Specified by:
        getStateDescription in interface TrustOrBuilder
        Returns:
        The stateDescription.
      • getStateDescriptionBytes

        public com.google.protobuf.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];
        Specified by:
        getStateDescriptionBytes in interface TrustOrBuilder
        Returns:
        The bytes for stateDescription.
      • 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];
        Specified by:
        hasLastTrustHeartbeatTime in interface TrustOrBuilder
        Returns:
        Whether the lastTrustHeartbeatTime field is set.
      • getLastTrustHeartbeatTime

        public com.google.protobuf.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];
        Specified by:
        getLastTrustHeartbeatTime in interface TrustOrBuilder
        Returns:
        The lastTrustHeartbeatTime.
      • getLastTrustHeartbeatTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getLastTrustHeartbeatTimeOrBuilder in interface TrustOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Trust parseFrom​(ByteBuffer data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(ByteBuffer data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(com.google.protobuf.ByteString data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(com.google.protobuf.ByteString data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(byte[] data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(byte[] data,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Trust parseFrom​(com.google.protobuf.CodedInputStream input,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Trust.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Trust.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Trust.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Trust getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Trust> parser()
      • getParserForType

        public com.google.protobuf.Parser<Trust> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Trust getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder