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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public ListRulesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListRulesResponse.Builder addRules(Rule value)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Parameter |
Name |
Description |
value |
Rule
|
public ListRulesResponse.Builder addRules(Rule.Builder builderForValue)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
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
|
public ListRulesResponse.Builder addRules(int index, Rule.Builder builderForValue)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public Rule.Builder addRulesBuilder()
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public Rule.Builder addRulesBuilder(int index)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Parameter |
Name |
Description |
index |
int
|
public ListRulesResponse build()
public ListRulesResponse buildPartial()
public ListRulesResponse.Builder clear()
Overrides
public ListRulesResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListRulesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListRulesResponse.Builder clearRules()
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public ListRulesResponse.Builder clone()
Overrides
public ListRulesResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
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 |
|
public Rule.Builder getRulesBuilder(int index)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Parameter |
Name |
Description |
index |
int
|
public List<Rule.Builder> getRulesBuilderList()
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public int getRulesCount()
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Returns |
Type |
Description |
int |
|
public List<Rule> getRulesList()
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public RuleOrBuilder getRulesOrBuilder(int index)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Parameter |
Name |
Description |
index |
int
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListRulesResponse.Builder mergeFrom(ListRulesResponse other)
public ListRulesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListRulesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ListRulesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListRulesResponse.Builder removeRules(int index)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
Parameter |
Name |
Description |
index |
int
|
public ListRulesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public ListRulesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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
|
public ListRulesResponse.Builder setRules(int index, Rule.Builder builderForValue)
The rules returned.
repeated .google.devtools.artifactregistry.v1.Rule rules = 1;
public final ListRulesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides