Class CreateSynonymSetRequest.Builder (0.20.0)

public static final class CreateSynonymSetRequest.Builder extends GeneratedMessageV3.Builder<CreateSynonymSetRequest.Builder> implements CreateSynonymSetRequestOrBuilder

Request message for SynonymSetService.CreateSynonymSet.

Protobuf type google.cloud.contentwarehouse.v1.CreateSynonymSetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSynonymSetRequest build()
Returns
TypeDescription
CreateSynonymSetRequest

buildPartial()

public CreateSynonymSetRequest buildPartial()
Returns
TypeDescription
CreateSynonymSetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateSynonymSetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateSynonymSetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSynonymSetRequest.Builder clearParent()

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

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

Returns
TypeDescription
CreateSynonymSetRequest.Builder

This builder for chaining.

clearSynonymSet()

public CreateSynonymSetRequest.Builder clearSynonymSet()

Required. The synonymSet to be created for a context

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

Returns
TypeDescription
CreateSynonymSetRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateSynonymSetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSynonymSetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

getSynonymSetBuilder()

public SynonymSet.Builder getSynonymSetBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSynonymSetRequest other)

public CreateSynonymSetRequest.Builder mergeFrom(CreateSynonymSetRequest other)
Parameter
NameDescription
otherCreateSynonymSetRequest
Returns
TypeDescription
CreateSynonymSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSynonymSet(SynonymSet value)

public CreateSynonymSetRequest.Builder mergeSynonymSet(SynonymSet value)

Required. The synonymSet to be created for a context

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

Parameter
NameDescription
valueSynonymSet
Returns
TypeDescription
CreateSynonymSetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSynonymSetRequest.Builder setParent(String value)

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

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateSynonymSetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSynonymSetRequest.Builder setParentBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateSynonymSetRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateSynonymSetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateSynonymSetRequest.Builder
Overrides

setSynonymSet(SynonymSet value)

public CreateSynonymSetRequest.Builder setSynonymSet(SynonymSet value)

Required. The synonymSet to be created for a context

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

Parameter
NameDescription
valueSynonymSet
Returns
TypeDescription
CreateSynonymSetRequest.Builder

setSynonymSet(SynonymSet.Builder builderForValue)

public CreateSynonymSetRequest.Builder setSynonymSet(SynonymSet.Builder builderForValue)

Required. The synonymSet to be created for a context

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

Parameter
NameDescription
builderForValueSynonymSet.Builder
Returns
TypeDescription
CreateSynonymSetRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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