Class GetBranchRuleRequest.Builder (0.53.0)

public static final class GetBranchRuleRequest.Builder extends GeneratedMessage.Builder<GetBranchRuleRequest.Builder> implements GetBranchRuleRequestOrBuilder

GetBranchRuleRequest is the request for getting a branch rule.

Protobuf type google.cloud.securesourcemanager.v1.GetBranchRuleRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetBranchRuleRequest build()
Returns
Type Description
GetBranchRuleRequest

buildPartial()

public GetBranchRuleRequest buildPartial()
Returns
Type Description
GetBranchRuleRequest

clear()

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

clearName()

public GetBranchRuleRequest.Builder clearName()

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

Returns
Type Description
GetBranchRuleRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetBranchRuleRequest getDefaultInstanceForType()
Returns
Type Description
GetBranchRuleRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetBranchRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetBranchRuleRequest.Builder setName(String value)

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetBranchRuleRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetBranchRuleRequest.Builder setNameBytes(ByteString value)

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetBranchRuleRequest.Builder

This builder for chaining.