Class ListTargetSitesResponse.Builder (0.47.0)

public static final class ListTargetSitesResponse.Builder extends GeneratedMessageV3.Builder<ListTargetSitesResponse.Builder> implements ListTargetSitesResponseOrBuilder

Response message for SiteSearchEngineService.ListTargetSites method.

Protobuf type google.cloud.discoveryengine.v1beta.ListTargetSitesResponse

Static Methods

getDescriptor()

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

Methods

addAllTargetSites(Iterable<? extends TargetSite> values)

public ListTargetSitesResponse.Builder addAllTargetSites(Iterable<? extends TargetSite> values)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.TargetSite>
Returns
Type Description
ListTargetSitesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetSites(TargetSite value)

public ListTargetSitesResponse.Builder addTargetSites(TargetSite value)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
value TargetSite
Returns
Type Description
ListTargetSitesResponse.Builder

addTargetSites(TargetSite.Builder builderForValue)

public ListTargetSitesResponse.Builder addTargetSites(TargetSite.Builder builderForValue)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
builderForValue TargetSite.Builder
Returns
Type Description
ListTargetSitesResponse.Builder

addTargetSites(int index, TargetSite value)

public ListTargetSitesResponse.Builder addTargetSites(int index, TargetSite value)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameters
Name Description
index int
value TargetSite
Returns
Type Description
ListTargetSitesResponse.Builder

addTargetSites(int index, TargetSite.Builder builderForValue)

public ListTargetSitesResponse.Builder addTargetSites(int index, TargetSite.Builder builderForValue)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameters
Name Description
index int
builderForValue TargetSite.Builder
Returns
Type Description
ListTargetSitesResponse.Builder

addTargetSitesBuilder()

public TargetSite.Builder addTargetSitesBuilder()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
TargetSite.Builder

addTargetSitesBuilder(int index)

public TargetSite.Builder addTargetSitesBuilder(int index)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetSite.Builder

build()

public ListTargetSitesResponse build()
Returns
Type Description
ListTargetSitesResponse

buildPartial()

public ListTargetSitesResponse buildPartial()
Returns
Type Description
ListTargetSitesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListTargetSitesResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListTargetSitesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetSites()

public ListTargetSitesResponse.Builder clearTargetSites()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
ListTargetSitesResponse.Builder

clearTotalSize()

public ListTargetSitesResponse.Builder clearTotalSize()

The total number of items matching the request. This will always be populated in the response.

int32 total_size = 3;

Returns
Type Description
ListTargetSitesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTargetSitesResponse getDefaultInstanceForType()
Returns
Type Description
ListTargetSitesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTargetSites(int index)

public TargetSite getTargetSites(int index)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetSite

getTargetSitesBuilder(int index)

public TargetSite.Builder getTargetSitesBuilder(int index)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetSite.Builder

getTargetSitesBuilderList()

public List<TargetSite.Builder> getTargetSitesBuilderList()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
List<Builder>

getTargetSitesCount()

public int getTargetSitesCount()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
int

getTargetSitesList()

public List<TargetSite> getTargetSitesList()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
List<TargetSite>

getTargetSitesOrBuilder(int index)

public TargetSiteOrBuilder getTargetSitesOrBuilder(int index)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetSiteOrBuilder

getTargetSitesOrBuilderList()

public List<? extends TargetSiteOrBuilder> getTargetSitesOrBuilderList()

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.TargetSiteOrBuilder>

getTotalSize()

public int getTotalSize()

The total number of items matching the request. This will always be populated in the response.

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTargetSitesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTargetSitesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTargetSitesResponse.Builder
Overrides

removeTargetSites(int index)

public ListTargetSitesResponse.Builder removeTargetSites(int index)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTargetSitesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListTargetSitesResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTargetSitesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTargetSitesResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTargetSitesResponse.Builder

This builder for chaining.

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

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

setTargetSites(int index, TargetSite value)

public ListTargetSitesResponse.Builder setTargetSites(int index, TargetSite value)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameters
Name Description
index int
value TargetSite
Returns
Type Description
ListTargetSitesResponse.Builder

setTargetSites(int index, TargetSite.Builder builderForValue)

public ListTargetSitesResponse.Builder setTargetSites(int index, TargetSite.Builder builderForValue)

List of TargetSites.

repeated .google.cloud.discoveryengine.v1beta.TargetSite target_sites = 1;

Parameters
Name Description
index int
builderForValue TargetSite.Builder
Returns
Type Description
ListTargetSitesResponse.Builder

setTotalSize(int value)

public ListTargetSitesResponse.Builder setTotalSize(int value)

The total number of items matching the request. This will always be populated in the response.

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListTargetSitesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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