Class Sitemap.Builder (0.50.0)

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

A sitemap for the SiteSearchEngine.

Protobuf type google.cloud.discoveryengine.v1beta.Sitemap

Implements

SitemapOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Sitemap.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Sitemap.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Sitemap.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Sitemap.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Sitemap.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Sitemap.Builder
Overrides

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Sitemap.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public Sitemap.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Sitemap.Builder
Overrides

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.

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

public Sitemap.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Sitemap.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Sitemap.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Sitemap.Builder
Overrides

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.