Class UpdateBranchRuleRequest.Builder (0.24.0)

public static final class UpdateBranchRuleRequest.Builder extends GeneratedMessageV3.Builder<UpdateBranchRuleRequest.Builder> implements UpdateBranchRuleRequestOrBuilder

UpdateBranchRuleRequest is the request to update a branchRule.

Protobuf type google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBranchRuleRequest build()
Returns
Type Description
UpdateBranchRuleRequest

buildPartial()

public UpdateBranchRuleRequest buildPartial()
Returns
Type Description
UpdateBranchRuleRequest

clear()

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

clearBranchRule()

public UpdateBranchRuleRequest.Builder clearBranchRule()

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBranchRuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateBranchRuleRequest.Builder clearUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBranchRuleRequest.Builder

clearValidateOnly()

public UpdateBranchRuleRequest.Builder clearValidateOnly()

Optional. If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly)

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateBranchRuleRequest.Builder

This builder for chaining.

clone()

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

getBranchRule()

public BranchRule getBranchRule()

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BranchRule

The branchRule.

getBranchRuleBuilder()

public BranchRule.Builder getBranchRuleBuilder()

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BranchRule.Builder

getBranchRuleOrBuilder()

public BranchRuleOrBuilder getBranchRuleOrBuilder()

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BranchRuleOrBuilder

getDefaultInstanceForType()

public UpdateBranchRuleRequest getDefaultInstanceForType()
Returns
Type Description
UpdateBranchRuleRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly)

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasBranchRule()

public boolean hasBranchRule()

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the branchRule field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

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

mergeBranchRule(BranchRule value)

public UpdateBranchRuleRequest.Builder mergeBranchRule(BranchRule value)

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BranchRule
Returns
Type Description
UpdateBranchRuleRequest.Builder

mergeFrom(UpdateBranchRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateBranchRuleRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBranchRuleRequest.Builder

setBranchRule(BranchRule value)

public UpdateBranchRuleRequest.Builder setBranchRule(BranchRule value)

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BranchRule
Returns
Type Description
UpdateBranchRuleRequest.Builder

setBranchRule(BranchRule.Builder builderForValue)

public UpdateBranchRuleRequest.Builder setBranchRule(BranchRule.Builder builderForValue)

.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BranchRule.Builder
Returns
Type Description
UpdateBranchRuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateBranchRuleRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBranchRuleRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBranchRuleRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateBranchRuleRequest.Builder

setValidateOnly(boolean value)

public UpdateBranchRuleRequest.Builder setValidateOnly(boolean value)

Optional. If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly)

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateBranchRuleRequest.Builder

This builder for chaining.