Class UpdateSynonymSetRequest (0.30.0)

public final class UpdateSynonymSetRequest extends GeneratedMessageV3 implements UpdateSynonymSetRequestOrBuilder

Request message for SynonymSetService.UpdateSynonymSet. Removes the SynonymSet for the specified context and replaces it with the SynonymSet in this request.

Protobuf type google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SYNONYM_SET_FIELD_NUMBER

public static final int SYNONYM_SET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateSynonymSetRequest getDefaultInstance()
Returns
TypeDescription
UpdateSynonymSetRequest

getDescriptor()

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

newBuilder()

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

newBuilder(UpdateSynonymSetRequest prototype)

public static UpdateSynonymSetRequest.Builder newBuilder(UpdateSynonymSetRequest prototype)
Parameter
NameDescription
prototypeUpdateSynonymSetRequest
Returns
TypeDescription
UpdateSynonymSetRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UpdateSynonymSetRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSynonymSetRequest

getName()

public String getName()

Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSynonymSet()

public SynonymSet getSynonymSet()

Required. The synonymSet to be updated for the customer

.google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynonymSet

The synonymSet.

getSynonymSetOrBuilder()

public SynonymSetOrBuilder getSynonymSetOrBuilder()

Required. The synonymSet to be updated for the customer

.google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynonymSetOrBuilder

hasSynonymSet()

public boolean hasSynonymSet()

Required. The synonymSet to be updated for the customer

.google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the synonymSet 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 UpdateSynonymSetRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateSynonymSetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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