Class Sitemap.Builder (0.81.0)

public static final class Sitemap.Builder extends GeneratedMessage.Builder<Sitemap.Builder> implements SitemapOrBuilder

A sitemap for the SiteSearchEngine.

Protobuf type google.cloud.discoveryengine.v1.Sitemap

Implements

SitemapOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Sitemap build()
Returns
Type Description
Sitemap

buildPartial()

public Sitemap buildPartial()
Returns
Type Description
Sitemap

clear()

public Sitemap.Builder clear()
Returns
Type Description
Sitemap.Builder
Overrides

clearCreateTime()

public Sitemap.Builder clearCreateTime()

Output only. The sitemap's creation time.

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

Returns
Type Description
Sitemap.Builder

clearFeed()

public Sitemap.Builder clearFeed()
Returns
Type Description
Sitemap.Builder

clearName()

public Sitemap.Builder clearName()

Output only. The fully qualified resource name of the sitemap. projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/* The sitemap_id suffix is system-generated.

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

Returns
Type Description
Sitemap.Builder

This builder for chaining.

clearUri()

public Sitemap.Builder clearUri()

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Returns
Type Description
Sitemap.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. The sitemap's creation time.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The sitemap's creation time.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The sitemap's creation time.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Sitemap getDefaultInstanceForType()
Returns
Type Description
Sitemap

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFeedCase()

public Sitemap.FeedCase getFeedCase()
Returns
Type Description
Sitemap.FeedCase

getName()

public String getName()

Output only. The fully qualified resource name of the sitemap. projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/* The sitemap_id suffix is system-generated.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The fully qualified resource name of the sitemap. projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/* The sitemap_id suffix is system-generated.

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

Returns
Type Description
ByteString

The bytes for name.

getUri()

public String getUri()

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

hasCreateTime()

public boolean hasCreateTime()

Output only. The sitemap's creation time.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUri()

public boolean hasUri()

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Returns
Type Description
boolean

Whether the uri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Sitemap.Builder mergeCreateTime(Timestamp value)

Output only. The sitemap's creation time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Sitemap.Builder

mergeFrom(Sitemap other)

public Sitemap.Builder mergeFrom(Sitemap other)
Parameter
Name Description
other Sitemap
Returns
Type Description
Sitemap.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Sitemap.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sitemap.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Sitemap.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Sitemap.Builder
Overrides

setCreateTime(Timestamp value)

public Sitemap.Builder setCreateTime(Timestamp value)

Output only. The sitemap's creation time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Sitemap.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Sitemap.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The sitemap's creation time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Sitemap.Builder

setName(String value)

public Sitemap.Builder setName(String value)

Output only. The fully qualified resource name of the sitemap. projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/* The sitemap_id suffix is system-generated.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Sitemap.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Sitemap.Builder setNameBytes(ByteString value)

Output only. The fully qualified resource name of the sitemap. projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/* The sitemap_id suffix is system-generated.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Sitemap.Builder

This builder for chaining.

setUri(String value)

public Sitemap.Builder setUri(String value)

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Sitemap.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Sitemap.Builder setUriBytes(ByteString value)

Public URI for the sitemap, e.g. www.example.com/sitemap.xml.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Sitemap.Builder

This builder for chaining.