Class CreateRuleSetRequest.Builder (0.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRuleSetRequest build()
Returns
TypeDescription
CreateRuleSetRequest

buildPartial()

public CreateRuleSetRequest buildPartial()
Returns
TypeDescription
CreateRuleSetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateRuleSetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateRuleSetRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateRuleSetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRuleSetRequest

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.

getRuleSet()

public RuleSet getRuleSet()

Required. The rule set to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the ruleSet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateRuleSetRequest other)

public CreateRuleSetRequest.Builder mergeFrom(CreateRuleSetRequest other)
Parameter
NameDescription
otherCreateRuleSetRequest
Returns
TypeDescription
CreateRuleSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateRuleSetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRuleSet
Returns
TypeDescription
CreateRuleSetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateRuleSetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRuleSet
Returns
TypeDescription
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
NameDescription
builderForValueRuleSet.Builder
Returns
TypeDescription
CreateRuleSetRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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