Class UpdateRuleRequest.Builder (1.52.0)

public static final class UpdateRuleRequest.Builder extends GeneratedMessageV3.Builder<UpdateRuleRequest.Builder> implements UpdateRuleRequestOrBuilder

The request to update a rule.

Protobuf type google.devtools.artifactregistry.v1.UpdateRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateRuleRequest build()
Returns
Type Description
UpdateRuleRequest

buildPartial()

public UpdateRuleRequest buildPartial()
Returns
Type Description
UpdateRuleRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRule()

public UpdateRuleRequest.Builder clearRule()

The rule that replaces the resource on the server.

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

Returns
Type Description
UpdateRuleRequest.Builder

clearUpdateMask()

public UpdateRuleRequest.Builder clearUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateRuleRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateRuleRequest getDefaultInstanceForType()
Returns
Type Description
UpdateRuleRequest

getDescriptorForType()

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

getRule()

public Rule getRule()

The rule that replaces the resource on the server.

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

Returns
Type Description
Rule

The rule.

getRuleBuilder()

public Rule.Builder getRuleBuilder()

The rule that replaces the resource on the server.

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

Returns
Type Description
Rule.Builder

getRuleOrBuilder()

public RuleOrBuilder getRuleOrBuilder()

The rule that replaces the resource on the server.

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

Returns
Type Description
RuleOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasRule()

public boolean hasRule()

The rule that replaces the resource on the server.

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

Returns
Type Description
boolean

Whether the rule field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRule(Rule value)

public UpdateRuleRequest.Builder mergeRule(Rule value)

The rule that replaces the resource on the server.

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

Parameter
Name Description
value Rule
Returns
Type Description
UpdateRuleRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateRuleRequest.Builder mergeUpdateMask(FieldMask value)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateRuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRule(Rule value)

public UpdateRuleRequest.Builder setRule(Rule value)

The rule that replaces the resource on the server.

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

Parameter
Name Description
value Rule
Returns
Type Description
UpdateRuleRequest.Builder

setRule(Rule.Builder builderForValue)

public UpdateRuleRequest.Builder setRule(Rule.Builder builderForValue)

The rule that replaces the resource on the server.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateRuleRequest.Builder setUpdateMask(FieldMask value)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateRuleRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateRuleRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateRuleRequest.Builder