Class Hook.PushOption.Builder (0.53.0)

public static final class Hook.PushOption.Builder extends GeneratedMessage.Builder<Hook.PushOption.Builder> implements Hook.PushOptionOrBuilder

Protobuf type google.cloud.securesourcemanager.v1.Hook.PushOption

Static Methods

getDescriptor()

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

Methods

build()

public Hook.PushOption build()
Returns
Type Description
Hook.PushOption

buildPartial()

public Hook.PushOption buildPartial()
Returns
Type Description
Hook.PushOption

clear()

public Hook.PushOption.Builder clear()
Returns
Type Description
Hook.PushOption.Builder
Overrides

clearBranchFilter()

public Hook.PushOption.Builder clearBranchFilter()

Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or , events for all branches are reported. Examples: main, {main,release}. See https://pkg.go.dev/github.com/gobwas/glob documentation.

string branch_filter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Hook.PushOption.Builder

This builder for chaining.

getBranchFilter()

public String getBranchFilter()

Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or , events for all branches are reported. Examples: main, {main,release}. See https://pkg.go.dev/github.com/gobwas/glob documentation.

string branch_filter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The branchFilter.

getBranchFilterBytes()

public ByteString getBranchFilterBytes()

Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or , events for all branches are reported. Examples: main, {main,release}. See https://pkg.go.dev/github.com/gobwas/glob documentation.

string branch_filter = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for branchFilter.

getDefaultInstanceForType()

public Hook.PushOption getDefaultInstanceForType()
Returns
Type Description
Hook.PushOption

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Hook.PushOption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBranchFilter(String value)

public Hook.PushOption.Builder setBranchFilter(String value)

Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or , events for all branches are reported. Examples: main, {main,release}. See https://pkg.go.dev/github.com/gobwas/glob documentation.

string branch_filter = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The branchFilter to set.

Returns
Type Description
Hook.PushOption.Builder

This builder for chaining.

setBranchFilterBytes(ByteString value)

public Hook.PushOption.Builder setBranchFilterBytes(ByteString value)

Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or , events for all branches are reported. Examples: main, {main,release}. See https://pkg.go.dev/github.com/gobwas/glob documentation.

string branch_filter = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for branchFilter to set.

Returns
Type Description
Hook.PushOption.Builder

This builder for chaining.