Class CreateRuleSetRequest.Builder (0.44.0)

public static final class CreateRuleSetRequest.Builder extends GeneratedMessageV3.Builder<CreateRuleSetRequest.Builder> implements CreateRuleSetRequestOrBuilder

Request message for RuleSetService.CreateRuleSet.

Protobuf type google.cloud.contentwarehouse.v1.CreateRuleSetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateRuleSetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

build()

public CreateRuleSetRequest build()
Returns
Type Description
CreateRuleSetRequest

buildPartial()

public CreateRuleSetRequest buildPartial()
Returns
Type Description
CreateRuleSetRequest

clear()

public CreateRuleSetRequest.Builder clear()
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateRuleSetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateRuleSetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

clearParent()

public CreateRuleSetRequest.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
Type Description
CreateRuleSetRequest.Builder

This builder for chaining.

clearRuleSet()

public CreateRuleSetRequest.Builder clearRuleSet()

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRuleSetRequest.Builder

clone()

public CreateRuleSetRequest.Builder clone()
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateRuleSetRequest getDefaultInstanceForType()
Returns
Type Description
CreateRuleSetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

getRuleSet()

public RuleSet getRuleSet()

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuleSet

The ruleSet.

getRuleSetBuilder()

public RuleSet.Builder getRuleSetBuilder()

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuleSet.Builder

getRuleSetOrBuilder()

public RuleSetOrBuilder getRuleSetOrBuilder()

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuleSetOrBuilder

hasRuleSet()

public boolean hasRuleSet()

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the ruleSet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRuleSetRequest other)

public CreateRuleSetRequest.Builder mergeFrom(CreateRuleSetRequest other)
Parameter
Name Description
other CreateRuleSetRequest
Returns
Type Description
CreateRuleSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateRuleSetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateRuleSetRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

mergeRuleSet(RuleSet value)

public CreateRuleSetRequest.Builder mergeRuleSet(RuleSet value)

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RuleSet
Returns
Type Description
CreateRuleSetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateRuleSetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateRuleSetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

setParent(String value)

public CreateRuleSetRequest.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
Name Description
value String

The parent to set.

Returns
Type Description
CreateRuleSetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRuleSetRequest.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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRuleSetRequest.Builder

This builder for chaining.

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

public CreateRuleSetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides

setRuleSet(RuleSet value)

public CreateRuleSetRequest.Builder setRuleSet(RuleSet value)

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RuleSet
Returns
Type Description
CreateRuleSetRequest.Builder

setRuleSet(RuleSet.Builder builderForValue)

public CreateRuleSetRequest.Builder setRuleSet(RuleSet.Builder builderForValue)

Required. The rule set to create.

.google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RuleSet.Builder
Returns
Type Description
CreateRuleSetRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateRuleSetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRuleSetRequest.Builder
Overrides