Class TargetSite.Builder (0.37.0)

public static final class TargetSite.Builder extends GeneratedMessageV3.Builder<TargetSite.Builder> implements TargetSiteOrBuilder

A target site for the SiteSearchEngine.

Protobuf type google.cloud.discoveryengine.v1.TargetSite

Implements

TargetSiteOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TargetSite.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetSite.Builder
Overrides

build()

public TargetSite build()
Returns
TypeDescription
TargetSite

buildPartial()

public TargetSite buildPartial()
Returns
TypeDescription
TargetSite

clear()

public TargetSite.Builder clear()
Returns
TypeDescription
TargetSite.Builder
Overrides

clearExactMatch()

public TargetSite.Builder clearExactMatch()

Input only. 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.

bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearFailureReason()

public TargetSite.Builder clearFailureReason()

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

clearField(Descriptors.FieldDescriptor field)

public TargetSite.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TargetSite.Builder
Overrides

clearGeneratedUriPattern()

public TargetSite.Builder clearGeneratedUriPattern()

Output only. This is system-generated based on the provided_uri_pattern.

string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearIndexingStatus()

public TargetSite.Builder clearIndexingStatus()

Output only. Indexing status.

.google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearName()

public TargetSite.Builder clearName()

Output 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.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetSite.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TargetSite.Builder
Overrides

clearProvidedUriPattern()

public TargetSite.Builder clearProvidedUriPattern()

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearSiteVerificationInfo()

public TargetSite.Builder clearSiteVerificationInfo()

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.Builder

clearType()

public TargetSite.Builder clearType()

The type of the target site, e.g., whether the site is to be included or excluded.

.google.cloud.discoveryengine.v1.TargetSite.Type type = 3;

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

clearUpdateTime()

public TargetSite.Builder clearUpdateTime()

Output only. The target site's last updated time.

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

Returns
TypeDescription
TargetSite.Builder

clone()

public TargetSite.Builder clone()
Returns
TypeDescription
TargetSite.Builder
Overrides

getDefaultInstanceForType()

public TargetSite getDefaultInstanceForType()
Returns
TypeDescription
TargetSite

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExactMatch()

public boolean getExactMatch()

Input only. 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.

bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

The exactMatch.

getFailureReason()

public TargetSite.FailureReason getFailureReason()

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.FailureReason

The failureReason.

getFailureReasonBuilder()

public TargetSite.FailureReason.Builder getFailureReasonBuilder()

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.FailureReason.Builder

getFailureReasonOrBuilder()

public TargetSite.FailureReasonOrBuilder getFailureReasonOrBuilder()

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.FailureReasonOrBuilder

getGeneratedUriPattern()

public String getGeneratedUriPattern()

Output only. This is system-generated based on the provided_uri_pattern.

string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The generatedUriPattern.

getGeneratedUriPatternBytes()

public ByteString getGeneratedUriPatternBytes()

Output only. This is system-generated based on the provided_uri_pattern.

string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for generatedUriPattern.

getIndexingStatus()

public TargetSite.IndexingStatus getIndexingStatus()

Output only. Indexing status.

.google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TargetSite.IndexingStatus

The indexingStatus.

getIndexingStatusValue()

public int getIndexingStatusValue()

Output only. Indexing status.

.google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for indexingStatus.

getName()

public String getName()

Output 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.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output 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.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getProvidedUriPattern()

public String getProvidedUriPattern()

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The providedUriPattern.

getProvidedUriPatternBytes()

public ByteString getProvidedUriPatternBytes()

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for providedUriPattern.

getSiteVerificationInfo()

public SiteVerificationInfo getSiteVerificationInfo()

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SiteVerificationInfo

The siteVerificationInfo.

getSiteVerificationInfoBuilder()

public SiteVerificationInfo.Builder getSiteVerificationInfoBuilder()

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SiteVerificationInfo.Builder

getSiteVerificationInfoOrBuilder()

public SiteVerificationInfoOrBuilder getSiteVerificationInfoOrBuilder()

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SiteVerificationInfoOrBuilder

getType()

public TargetSite.Type getType()

The type of the target site, e.g., whether the site is to be included or excluded.

.google.cloud.discoveryengine.v1.TargetSite.Type type = 3;

Returns
TypeDescription
TargetSite.Type

The type.

getTypeValue()

public int getTypeValue()

The type of the target site, e.g., whether the site is to be included or excluded.

.google.cloud.discoveryengine.v1.TargetSite.Type type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The target site's last updated time.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The target site's last updated time.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The target site's last updated time.

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

Returns
TypeDescription
TimestampOrBuilder

hasFailureReason()

public boolean hasFailureReason()

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the failureReason field is set.

hasSiteVerificationInfo()

public boolean hasSiteVerificationInfo()

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the siteVerificationInfo field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The target site's last updated time.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFailureReason(TargetSite.FailureReason value)

public TargetSite.Builder mergeFailureReason(TargetSite.FailureReason value)

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTargetSite.FailureReason
Returns
TypeDescription
TargetSite.Builder

mergeFrom(TargetSite other)

public TargetSite.Builder mergeFrom(TargetSite other)
Parameter
NameDescription
otherTargetSite
Returns
TypeDescription
TargetSite.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TargetSite.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TargetSite.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TargetSite.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TargetSite.Builder
Overrides

mergeSiteVerificationInfo(SiteVerificationInfo value)

public TargetSite.Builder mergeSiteVerificationInfo(SiteVerificationInfo value)

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSiteVerificationInfo
Returns
TypeDescription
TargetSite.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetSite.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetSite.Builder
Overrides

mergeUpdateTime(Timestamp value)

public TargetSite.Builder mergeUpdateTime(Timestamp value)

Output only. The target site's last updated time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetSite.Builder

setExactMatch(boolean value)

public TargetSite.Builder setExactMatch(boolean value)

Input only. 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.

bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueboolean

The exactMatch to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setFailureReason(TargetSite.FailureReason value)

public TargetSite.Builder setFailureReason(TargetSite.FailureReason value)

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTargetSite.FailureReason
Returns
TypeDescription
TargetSite.Builder

setFailureReason(TargetSite.FailureReason.Builder builderForValue)

public TargetSite.Builder setFailureReason(TargetSite.FailureReason.Builder builderForValue)

Output only. Failure reason.

.google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueTargetSite.FailureReason.Builder
Returns
TypeDescription
TargetSite.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TargetSite.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetSite.Builder
Overrides

setGeneratedUriPattern(String value)

public TargetSite.Builder setGeneratedUriPattern(String value)

Output only. This is system-generated based on the provided_uri_pattern.

string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The generatedUriPattern to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setGeneratedUriPatternBytes(ByteString value)

public TargetSite.Builder setGeneratedUriPatternBytes(ByteString value)

Output only. This is system-generated based on the provided_uri_pattern.

string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for generatedUriPattern to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setIndexingStatus(TargetSite.IndexingStatus value)

public TargetSite.Builder setIndexingStatus(TargetSite.IndexingStatus value)

Output only. Indexing status.

.google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTargetSite.IndexingStatus

The indexingStatus to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setIndexingStatusValue(int value)

public TargetSite.Builder setIndexingStatusValue(int value)

Output only. Indexing status.

.google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for indexingStatus to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setName(String value)

public TargetSite.Builder setName(String value)

Output 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.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TargetSite.Builder setNameBytes(ByteString value)

Output 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.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setProvidedUriPattern(String value)

public TargetSite.Builder setProvidedUriPattern(String value)

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The providedUriPattern to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setProvidedUriPatternBytes(ByteString value)

public TargetSite.Builder setProvidedUriPatternBytes(ByteString value)

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for providedUriPattern to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TargetSite.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TargetSite.Builder
Overrides

setSiteVerificationInfo(SiteVerificationInfo value)

public TargetSite.Builder setSiteVerificationInfo(SiteVerificationInfo value)

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSiteVerificationInfo
Returns
TypeDescription
TargetSite.Builder

setSiteVerificationInfo(SiteVerificationInfo.Builder builderForValue)

public TargetSite.Builder setSiteVerificationInfo(SiteVerificationInfo.Builder builderForValue)

Output only. Site ownership and validity verification status.

.google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueSiteVerificationInfo.Builder
Returns
TypeDescription
TargetSite.Builder

setType(TargetSite.Type value)

public TargetSite.Builder setType(TargetSite.Type value)

The type of the target site, e.g., whether the site is to be included or excluded.

.google.cloud.discoveryengine.v1.TargetSite.Type type = 3;

Parameter
NameDescription
valueTargetSite.Type

The type to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setTypeValue(int value)

public TargetSite.Builder setTypeValue(int value)

The type of the target site, e.g., whether the site is to be included or excluded.

.google.cloud.discoveryengine.v1.TargetSite.Type type = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
TargetSite.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TargetSite.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetSite.Builder
Overrides

setUpdateTime(Timestamp value)

public TargetSite.Builder setUpdateTime(Timestamp value)

Output only. The target site's last updated time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetSite.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TargetSite.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The target site's last updated time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TargetSite.Builder