Class ListBranchRulesResponse.Builder (0.24.0)

public static final class ListBranchRulesResponse.Builder extends GeneratedMessageV3.Builder<ListBranchRulesResponse.Builder> implements ListBranchRulesResponseOrBuilder

ListBranchRulesResponse is the response to listing branchRules.

Protobuf type google.cloud.securesourcemanager.v1.ListBranchRulesResponse

Static Methods

getDescriptor()

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

Methods

addAllBranchRules(Iterable<? extends BranchRule> values)

public ListBranchRulesResponse.Builder addAllBranchRules(Iterable<? extends BranchRule> values)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securesourcemanager.v1.BranchRule>
Returns
Type Description
ListBranchRulesResponse.Builder

addBranchRules(BranchRule value)

public ListBranchRulesResponse.Builder addBranchRules(BranchRule value)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
value BranchRule
Returns
Type Description
ListBranchRulesResponse.Builder

addBranchRules(BranchRule.Builder builderForValue)

public ListBranchRulesResponse.Builder addBranchRules(BranchRule.Builder builderForValue)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

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

addBranchRules(int index, BranchRule value)

public ListBranchRulesResponse.Builder addBranchRules(int index, BranchRule value)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameters
Name Description
index int
value BranchRule
Returns
Type Description
ListBranchRulesResponse.Builder

addBranchRules(int index, BranchRule.Builder builderForValue)

public ListBranchRulesResponse.Builder addBranchRules(int index, BranchRule.Builder builderForValue)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameters
Name Description
index int
builderForValue BranchRule.Builder
Returns
Type Description
ListBranchRulesResponse.Builder

addBranchRulesBuilder()

public BranchRule.Builder addBranchRulesBuilder()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
BranchRule.Builder

addBranchRulesBuilder(int index)

public BranchRule.Builder addBranchRulesBuilder(int index)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BranchRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBranchRulesResponse build()
Returns
Type Description
ListBranchRulesResponse

buildPartial()

public ListBranchRulesResponse buildPartial()
Returns
Type Description
ListBranchRulesResponse

clear()

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

clearBranchRules()

public ListBranchRulesResponse.Builder clearBranchRules()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
ListBranchRulesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBranchRulesResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListBranchRulesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBranchRules(int index)

public BranchRule getBranchRules(int index)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BranchRule

getBranchRulesBuilder(int index)

public BranchRule.Builder getBranchRulesBuilder(int index)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BranchRule.Builder

getBranchRulesBuilderList()

public List<BranchRule.Builder> getBranchRulesBuilderList()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
List<Builder>

getBranchRulesCount()

public int getBranchRulesCount()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
int

getBranchRulesList()

public List<BranchRule> getBranchRulesList()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
List<BranchRule>

getBranchRulesOrBuilder(int index)

public BranchRuleOrBuilder getBranchRulesOrBuilder(int index)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BranchRuleOrBuilder

getBranchRulesOrBuilderList()

public List<? extends BranchRuleOrBuilder> getBranchRulesOrBuilderList()

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Returns
Type Description
List<? extends com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder>

getDefaultInstanceForType()

public ListBranchRulesResponse getDefaultInstanceForType()
Returns
Type Description
ListBranchRulesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBranchRulesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBranchRules(int index)

public ListBranchRulesResponse.Builder removeBranchRules(int index)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBranchRulesResponse.Builder

setBranchRules(int index, BranchRule value)

public ListBranchRulesResponse.Builder setBranchRules(int index, BranchRule value)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameters
Name Description
index int
value BranchRule
Returns
Type Description
ListBranchRulesResponse.Builder

setBranchRules(int index, BranchRule.Builder builderForValue)

public ListBranchRulesResponse.Builder setBranchRules(int index, BranchRule.Builder builderForValue)

The list of branch rules.

repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1;

Parameters
Name Description
index int
builderForValue BranchRule.Builder
Returns
Type Description
ListBranchRulesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBranchRulesResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBranchRulesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBranchRulesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBranchRulesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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