Class CreateTargetSiteRequest (0.35.0)

public final class CreateTargetSiteRequest extends GeneratedMessageV3 implements CreateTargetSiteRequestOrBuilder

Request message for SiteSearchEngineService.CreateTargetSite method.

Protobuf type google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_SITE_FIELD_NUMBER

public static final int TARGET_SITE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateTargetSiteRequest getDefaultInstance()
Returns
TypeDescription
CreateTargetSiteRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateTargetSiteRequest prototype)

public static CreateTargetSiteRequest.Builder newBuilder(CreateTargetSiteRequest prototype)
Parameter
NameDescription
prototypeCreateTargetSiteRequest
Returns
TypeDescription
CreateTargetSiteRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateTargetSiteRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTargetSiteRequest

getParent()

public String getParent()

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetSite()

public TargetSite getTargetSite()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TargetSite

The targetSite.

getTargetSiteOrBuilder()

public TargetSiteOrBuilder getTargetSiteOrBuilder()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TargetSiteOrBuilder

hasTargetSite()

public boolean hasTargetSite()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the targetSite field is set.

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 CreateTargetSiteRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateTargetSiteRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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