#[non_exhaustive]pub struct TargetSite {
pub name: String,
pub provided_uri_pattern: String,
pub type: Type,
pub exact_match: bool,
pub generated_uri_pattern: String,
pub root_domain_uri: String,
pub site_verification_info: Option<SiteVerificationInfo>,
pub indexing_status: IndexingStatus,
pub update_time: Option<Timestamp>,
pub failure_reason: Option<FailureReason>,
/* private fields */
}site-search-engine-service only.Expand description
A target site for the SiteSearchEngine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The fully qualified resource name of the target site.
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}
The target_site_id is system-generated.
provided_uri_pattern: StringRequired. Input only. The user provided URI pattern from which the
generated_uri_pattern is generated.
type: TypeThe type of the target site, e.g., whether the site is to be included or excluded.
exact_match: boolImmutable. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.
generated_uri_pattern: StringOutput only. This is system-generated based on the provided_uri_pattern.
root_domain_uri: StringOutput only. Root domain of the provided_uri_pattern.
site_verification_info: Option<SiteVerificationInfo>Output only. Site ownership and validity verification status.
indexing_status: IndexingStatusOutput only. Indexing status.
update_time: Option<Timestamp>Output only. The target site’s last updated time.
failure_reason: Option<FailureReason>Output only. Failure reason.
Implementations§
Source§impl TargetSite
impl TargetSite
Sourcepub fn set_provided_uri_pattern<T: Into<String>>(self, v: T) -> Self
pub fn set_provided_uri_pattern<T: Into<String>>(self, v: T) -> Self
Sets the value of provided_uri_pattern.
§Example
let x = TargetSite::new().set_provided_uri_pattern("example");Sourcepub fn set_exact_match<T: Into<bool>>(self, v: T) -> Self
pub fn set_exact_match<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_generated_uri_pattern<T: Into<String>>(self, v: T) -> Self
pub fn set_generated_uri_pattern<T: Into<String>>(self, v: T) -> Self
Sets the value of generated_uri_pattern.
§Example
let x = TargetSite::new().set_generated_uri_pattern("example");Sourcepub fn set_root_domain_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_root_domain_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of root_domain_uri.
§Example
let x = TargetSite::new().set_root_domain_uri("example");Sourcepub fn set_site_verification_info<T>(self, v: T) -> Selfwhere
T: Into<SiteVerificationInfo>,
pub fn set_site_verification_info<T>(self, v: T) -> Selfwhere
T: Into<SiteVerificationInfo>,
Sets the value of site_verification_info.
§Example
use google_cloud_discoveryengine_v1::model::SiteVerificationInfo;
let x = TargetSite::new().set_site_verification_info(SiteVerificationInfo::default()/* use setters */);Sourcepub fn set_or_clear_site_verification_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<SiteVerificationInfo>,
pub fn set_or_clear_site_verification_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<SiteVerificationInfo>,
Sets or clears the value of site_verification_info.
§Example
use google_cloud_discoveryengine_v1::model::SiteVerificationInfo;
let x = TargetSite::new().set_or_clear_site_verification_info(Some(SiteVerificationInfo::default()/* use setters */));
let x = TargetSite::new().set_or_clear_site_verification_info(None::<SiteVerificationInfo>);Sourcepub fn set_indexing_status<T: Into<IndexingStatus>>(self, v: T) -> Self
pub fn set_indexing_status<T: Into<IndexingStatus>>(self, v: T) -> Self
Sets the value of indexing_status.
§Example
use google_cloud_discoveryengine_v1::model::target_site::IndexingStatus;
let x0 = TargetSite::new().set_indexing_status(IndexingStatus::Pending);
let x1 = TargetSite::new().set_indexing_status(IndexingStatus::Failed);
let x2 = TargetSite::new().set_indexing_status(IndexingStatus::Succeeded);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = TargetSite::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = TargetSite::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = TargetSite::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_failure_reason<T>(self, v: T) -> Selfwhere
T: Into<FailureReason>,
pub fn set_failure_reason<T>(self, v: T) -> Selfwhere
T: Into<FailureReason>,
Sets the value of failure_reason.
§Example
use google_cloud_discoveryengine_v1::model::target_site::FailureReason;
let x = TargetSite::new().set_failure_reason(FailureReason::default()/* use setters */);Sourcepub fn set_or_clear_failure_reason<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureReason>,
pub fn set_or_clear_failure_reason<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureReason>,
Sets or clears the value of failure_reason.
§Example
use google_cloud_discoveryengine_v1::model::target_site::FailureReason;
let x = TargetSite::new().set_or_clear_failure_reason(Some(FailureReason::default()/* use setters */));
let x = TargetSite::new().set_or_clear_failure_reason(None::<FailureReason>);Trait Implementations§
Source§impl Clone for TargetSite
impl Clone for TargetSite
Source§fn clone(&self) -> TargetSite
fn clone(&self) -> TargetSite
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetSite
impl Debug for TargetSite
Source§impl Default for TargetSite
impl Default for TargetSite
Source§fn default() -> TargetSite
fn default() -> TargetSite
Source§impl PartialEq for TargetSite
impl PartialEq for TargetSite
impl StructuralPartialEq for TargetSite
Auto Trait Implementations§
impl Freeze for TargetSite
impl RefUnwindSafe for TargetSite
impl Send for TargetSite
impl Sync for TargetSite
impl Unpin for TargetSite
impl UnsafeUnpin for TargetSite
impl UnwindSafe for TargetSite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request