Class ListTargetSitesResponse.Builder (0.37.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.v1.ListTargetSitesResponse

Static Methods

getDescriptor()

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

Methods

addAllTargetSites(Iterable<? extends TargetSite> values)

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

List of TargetSites.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1.TargetSite>
Returns
TypeDescription
ListTargetSitesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetSites(TargetSite value)

public ListTargetSitesResponse.Builder addTargetSites(TargetSite value)

List of TargetSites.

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

Parameter
NameDescription
valueTargetSite
Returns
TypeDescription
ListTargetSitesResponse.Builder

addTargetSites(TargetSite.Builder builderForValue)

public ListTargetSitesResponse.Builder addTargetSites(TargetSite.Builder builderForValue)

List of TargetSites.

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

Parameter
NameDescription
builderForValueTargetSite.Builder
Returns
TypeDescription
ListTargetSitesResponse.Builder

addTargetSites(int index, TargetSite value)

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

List of TargetSites.

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

Parameters
NameDescription
indexint
valueTargetSite
Returns
TypeDescription
ListTargetSitesResponse.Builder

addTargetSites(int index, TargetSite.Builder builderForValue)

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

List of TargetSites.

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

Parameters
NameDescription
indexint
builderForValueTargetSite.Builder
Returns
TypeDescription
ListTargetSitesResponse.Builder

addTargetSitesBuilder()

public TargetSite.Builder addTargetSitesBuilder()

List of TargetSites.

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

Returns
TypeDescription
TargetSite.Builder

addTargetSitesBuilder(int index)

public TargetSite.Builder addTargetSitesBuilder(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSite.Builder

build()

public ListTargetSitesResponse build()
Returns
TypeDescription
ListTargetSitesResponse

buildPartial()

public ListTargetSitesResponse buildPartial()
Returns
TypeDescription
ListTargetSitesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListTargetSitesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListTargetSitesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetSites()

public ListTargetSitesResponse.Builder clearTargetSites()

List of TargetSites.

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

Returns
TypeDescription
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
TypeDescription
ListTargetSitesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTargetSitesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTargetSitesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

getTargetSites(int index)

public TargetSite getTargetSites(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSite

getTargetSitesBuilder(int index)

public TargetSite.Builder getTargetSitesBuilder(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSite.Builder

getTargetSitesBuilderList()

public List<TargetSite.Builder> getTargetSitesBuilderList()

List of TargetSites.

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

Returns
TypeDescription
List<Builder>

getTargetSitesCount()

public int getTargetSitesCount()

List of TargetSites.

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

Returns
TypeDescription
int

getTargetSitesList()

public List<TargetSite> getTargetSitesList()

List of TargetSites.

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

Returns
TypeDescription
List<TargetSite>

getTargetSitesOrBuilder(int index)

public TargetSiteOrBuilder getTargetSitesOrBuilder(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSiteOrBuilder

getTargetSitesOrBuilderList()

public List<? extends TargetSiteOrBuilder> getTargetSitesOrBuilderList()

List of TargetSites.

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

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1.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
TypeDescription
int

The totalSize.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListTargetSitesResponse other)

public ListTargetSitesResponse.Builder mergeFrom(ListTargetSitesResponse other)
Parameter
NameDescription
otherListTargetSitesResponse
Returns
TypeDescription
ListTargetSitesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTargetSites(int index)

public ListTargetSitesResponse.Builder removeTargetSites(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListTargetSitesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTargetSitesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListTargetSitesResponse.Builder
Overrides

setTargetSites(int index, TargetSite value)

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

List of TargetSites.

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

Parameters
NameDescription
indexint
valueTargetSite
Returns
TypeDescription
ListTargetSitesResponse.Builder

setTargetSites(int index, TargetSite.Builder builderForValue)

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

List of TargetSites.

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

Parameters
NameDescription
indexint
builderForValueTargetSite.Builder
Returns
TypeDescription
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
NameDescription
valueint

The totalSize to set.

Returns
TypeDescription
ListTargetSitesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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