Class ListTargetSitesResponse (0.30.0)

public final class ListTargetSitesResponse extends GeneratedMessageV3 implements ListTargetSitesResponseOrBuilder

Response message for SiteSearchEngineService.ListTargetSites method.

Protobuf type google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_SITES_FIELD_NUMBER

public static final int TARGET_SITES_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_SIZE_FIELD_NUMBER

public static final int TOTAL_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListTargetSitesResponse getDefaultInstance()
Returns
TypeDescription
ListTargetSitesResponse

getDescriptor()

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

newBuilder()

public static ListTargetSitesResponse.Builder newBuilder()
Returns
TypeDescription
ListTargetSitesResponse.Builder

newBuilder(ListTargetSitesResponse prototype)

public static ListTargetSitesResponse.Builder newBuilder(ListTargetSitesResponse prototype)
Parameter
NameDescription
prototypeListTargetSitesResponse
Returns
TypeDescription
ListTargetSitesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListTargetSitesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListTargetSitesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListTargetSitesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListTargetSitesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListTargetSitesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListTargetSitesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListTargetSitesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTargetSitesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListTargetSitesResponse> parser()
Returns
TypeDescription
Parser<ListTargetSitesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ListTargetSitesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTargetSitesResponse

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.

getParserForType()

public Parser<ListTargetSitesResponse> getParserForType()
Returns
TypeDescription
Parser<ListTargetSitesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetSites(int index)

public TargetSite getTargetSites(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSite

getTargetSitesCount()

public int getTargetSitesCount()

List of TargetSites.

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

Returns
TypeDescription
int

getTargetSitesList()

public List<TargetSite> getTargetSitesList()

List of TargetSites.

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

Returns
TypeDescription
List<TargetSite>

getTargetSitesOrBuilder(int index)

public TargetSiteOrBuilder getTargetSitesOrBuilder(int index)

List of TargetSites.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetSiteOrBuilder

getTargetSitesOrBuilderList()

public List<? extends TargetSiteOrBuilder> getTargetSitesOrBuilderList()

List of TargetSites.

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

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListTargetSitesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListTargetSitesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListTargetSitesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListTargetSitesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListTargetSitesResponse.Builder toBuilder()
Returns
TypeDescription
ListTargetSitesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException