Class ListRulesResponse.Builder (1.54.0)

public static final class ListRulesResponse.Builder extends GeneratedMessageV3.Builder<ListRulesResponse.Builder> implements ListRulesResponseOrBuilder

The response from listing rules.

Protobuf type google.devtools.artifactregistry.v1.ListRulesResponse

Static Methods

getDescriptor()

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

Methods

addAllRules(Iterable<? extends Rule> values)

public ListRulesResponse.Builder addAllRules(Iterable<? extends Rule> values)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1.Rule>
Returns
Type Description
ListRulesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRules(Rule value)

public ListRulesResponse.Builder addRules(Rule value)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
value Rule
Returns
Type Description
ListRulesResponse.Builder

addRules(Rule.Builder builderForValue)

public ListRulesResponse.Builder addRules(Rule.Builder builderForValue)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
builderForValue Rule.Builder
Returns
Type Description
ListRulesResponse.Builder

addRules(int index, Rule value)

public ListRulesResponse.Builder addRules(int index, Rule value)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameters
Name Description
index int
value Rule
Returns
Type Description
ListRulesResponse.Builder

addRules(int index, Rule.Builder builderForValue)

public ListRulesResponse.Builder addRules(int index, Rule.Builder builderForValue)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameters
Name Description
index int
builderForValue Rule.Builder
Returns
Type Description
ListRulesResponse.Builder

addRulesBuilder()

public Rule.Builder addRulesBuilder()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
Rule.Builder

addRulesBuilder(int index)

public Rule.Builder addRulesBuilder(int index)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
Rule.Builder

build()

public ListRulesResponse build()
Returns
Type Description
ListRulesResponse

buildPartial()

public ListRulesResponse buildPartial()
Returns
Type Description
ListRulesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRulesResponse.Builder clearNextPageToken()

The token to retrieve the next page of rules, or empty if there are no more rules to return.

string next_page_token = 2;

Returns
Type Description
ListRulesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRules()

public ListRulesResponse.Builder clearRules()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
ListRulesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListRulesResponse getDefaultInstanceForType()
Returns
Type Description
ListRulesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The token to retrieve the next page of rules, or empty if there are no more rules to return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token to retrieve the next page of rules, or empty if there are no more rules to return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRules(int index)

public Rule getRules(int index)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
Rule

getRulesBuilder(int index)

public Rule.Builder getRulesBuilder(int index)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
Rule.Builder

getRulesBuilderList()

public List<Rule.Builder> getRulesBuilderList()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
int

getRulesList()

public List<Rule> getRulesList()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
List<Rule>

getRulesOrBuilder(int index)

public RuleOrBuilder getRulesOrBuilder(int index)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
RuleOrBuilder

getRulesOrBuilderList()

public List<? extends RuleOrBuilder> getRulesOrBuilderList()

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Returns
Type Description
List<? extends com.google.devtools.artifactregistry.v1.RuleOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRulesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRules(int index)

public ListRulesResponse.Builder removeRules(int index)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRulesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRulesResponse.Builder setNextPageToken(String value)

The token to retrieve the next page of rules, or empty if there are no more rules to return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRulesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRulesResponse.Builder setNextPageTokenBytes(ByteString value)

The token to retrieve the next page of rules, or empty if there are no more rules to return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRulesResponse.Builder

This builder for chaining.

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

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

setRules(int index, Rule value)

public ListRulesResponse.Builder setRules(int index, Rule value)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameters
Name Description
index int
value Rule
Returns
Type Description
ListRulesResponse.Builder

setRules(int index, Rule.Builder builderForValue)

public ListRulesResponse.Builder setRules(int index, Rule.Builder builderForValue)

The rules returned.

repeated .google.devtools.artifactregistry.v1.Rule rules = 1;

Parameters
Name Description
index int
builderForValue Rule.Builder
Returns
Type Description
ListRulesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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