Class CreateSynonymSetRequest (0.27.0)

public final class CreateSynonymSetRequest extends GeneratedMessageV3 implements CreateSynonymSetRequestOrBuilder

Request message for SynonymSetService.CreateSynonymSet.

Protobuf type google.cloud.contentwarehouse.v1.CreateSynonymSetRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_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 CreateSynonymSetRequest getDefaultInstance()
Returns
TypeDescription
CreateSynonymSetRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateSynonymSetRequest prototype)

public static CreateSynonymSetRequest.Builder newBuilder(CreateSynonymSetRequest prototype)
Parameter
NameDescription
prototypeCreateSynonymSetRequest
Returns
TypeDescription
CreateSynonymSetRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateSynonymSetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSynonymSetRequest

getParent()

public String getParent()

Required. The parent name. Format: projects/{project_number}/locations/{location}.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent name. Format: projects/{project_number}/locations/{location}.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSynonymSet()

public SynonymSet getSynonymSet()

Required. The synonymSet to be created for a context

.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 created for a context

.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 created for a context

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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