Class CreateRuleRequest.Builder (1.53.0)

public static final class CreateRuleRequest.Builder extends GeneratedMessageV3.Builder<CreateRuleRequest.Builder> implements CreateRuleRequestOrBuilder

The request to create a new rule.

Protobuf type google.devtools.artifactregistry.v1.CreateRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRuleRequest build()
Returns
Type Description
CreateRuleRequest

buildPartial()

public CreateRuleRequest buildPartial()
Returns
Type Description
CreateRuleRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateRuleRequest.Builder clearParent()

Required. The name of the parent resource where the rule will be created.

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

Returns
Type Description
CreateRuleRequest.Builder

This builder for chaining.

clearRule()

public CreateRuleRequest.Builder clearRule()

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Returns
Type Description
CreateRuleRequest.Builder

clearRuleId()

public CreateRuleRequest.Builder clearRuleId()

The rule id to use for this repository.

string rule_id = 2;

Returns
Type Description
CreateRuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateRuleRequest getDefaultInstanceForType()
Returns
Type Description
CreateRuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The name of the parent resource where the rule will be created.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the parent resource where the rule will be created.

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

Returns
Type Description
ByteString

The bytes for parent.

getRule()

public Rule getRule()

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Returns
Type Description
Rule

The rule.

getRuleBuilder()

public Rule.Builder getRuleBuilder()

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Returns
Type Description
Rule.Builder

getRuleId()

public String getRuleId()

The rule id to use for this repository.

string rule_id = 2;

Returns
Type Description
String

The ruleId.

getRuleIdBytes()

public ByteString getRuleIdBytes()

The rule id to use for this repository.

string rule_id = 2;

Returns
Type Description
ByteString

The bytes for ruleId.

getRuleOrBuilder()

public RuleOrBuilder getRuleOrBuilder()

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Returns
Type Description
RuleOrBuilder

hasRule()

public boolean hasRule()

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Returns
Type Description
boolean

Whether the rule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRule(Rule value)

public CreateRuleRequest.Builder mergeRule(Rule value)

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Parameter
Name Description
value Rule
Returns
Type Description
CreateRuleRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateRuleRequest.Builder setParent(String value)

Required. The name of the parent resource where the rule will be created.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRuleRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent resource where the rule will be created.

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

This builder for chaining.

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

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

setRule(Rule value)

public CreateRuleRequest.Builder setRule(Rule value)

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Parameter
Name Description
value Rule
Returns
Type Description
CreateRuleRequest.Builder

setRule(Rule.Builder builderForValue)

public CreateRuleRequest.Builder setRule(Rule.Builder builderForValue)

The rule to be created.

.google.devtools.artifactregistry.v1.Rule rule = 3;

Parameter
Name Description
builderForValue Rule.Builder
Returns
Type Description
CreateRuleRequest.Builder

setRuleId(String value)

public CreateRuleRequest.Builder setRuleId(String value)

The rule id to use for this repository.

string rule_id = 2;

Parameter
Name Description
value String

The ruleId to set.

Returns
Type Description
CreateRuleRequest.Builder

This builder for chaining.

setRuleIdBytes(ByteString value)

public CreateRuleRequest.Builder setRuleIdBytes(ByteString value)

The rule id to use for this repository.

string rule_id = 2;

Parameter
Name Description
value ByteString

The bytes for ruleId to set.

Returns
Type Description
CreateRuleRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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