public static final class GetBranchRuleRequest.Builder extends GeneratedMessageV3.Builder<GetBranchRuleRequest.Builder> implements GetBranchRuleRequestOrBuilder
GetBranchRuleRequest is the request for getting a branch rule.
Protobuf type google.cloud.securesourcemanager.v1.GetBranchRuleRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GetBranchRuleRequest.BuilderImplements
GetBranchRuleRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetBranchRuleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public GetBranchRuleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GetBranchRuleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
clone()
public GetBranchRuleRequest.Builder clone()
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
getDefaultInstanceForType()
public GetBranchRuleRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GetBranchRuleRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetBranchRuleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GetBranchRuleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetBranchRuleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GetBranchRuleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GetBranchRuleRequest.Builder |