public static final class ListPoliciesResponse.Builder extends GeneratedMessageV3.Builder<ListPoliciesResponse.Builder> implements ListPoliciesResponseOrBuilder
The response returned from the [ListPolicies]
[google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty
if no Policies
are set on the resource.
Protobuf type google.cloud.orgpolicy.v2.ListPoliciesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllPolicies(Iterable<? extends Policy> values)
public ListPoliciesResponse.Builder addAllPolicies(Iterable<? extends Policy> values)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.orgpolicy.v2.Policy>
|
Returns
addPolicies(Policy value)
public ListPoliciesResponse.Builder addPolicies(Policy value)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
addPolicies(Policy.Builder builderForValue)
public ListPoliciesResponse.Builder addPolicies(Policy.Builder builderForValue)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
addPolicies(int index, Policy value)
public ListPoliciesResponse.Builder addPolicies(int index, Policy value)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameters
Returns
addPolicies(int index, Policy.Builder builderForValue)
public ListPoliciesResponse.Builder addPolicies(int index, Policy.Builder builderForValue)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameters
Returns
addPoliciesBuilder()
public Policy.Builder addPoliciesBuilder()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
addPoliciesBuilder(int index)
public Policy.Builder addPoliciesBuilder(int index)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListPoliciesResponse build()
Returns
buildPartial()
public ListPoliciesResponse buildPartial()
Returns
clear()
public ListPoliciesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListPoliciesResponse.Builder clearNextPageToken()
Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPolicies()
public ListPoliciesResponse.Builder clearPolicies()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
clone()
public ListPoliciesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListPoliciesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getPolicies(int index)
public Policy getPolicies(int index)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
getPoliciesBuilder(int index)
public Policy.Builder getPoliciesBuilder(int index)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
getPoliciesBuilderList()
public List<Policy.Builder> getPoliciesBuilderList()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
getPoliciesCount()
public int getPoliciesCount()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
getPoliciesList()
public List<Policy> getPoliciesList()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
getPoliciesOrBuilder(int index)
public PolicyOrBuilder getPoliciesOrBuilder(int index)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
getPoliciesOrBuilderList()
public List<? extends PolicyOrBuilder> getPoliciesOrBuilderList()
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Returns
Type | Description |
List<? extends com.google.cloud.orgpolicy.v2.PolicyOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListPoliciesResponse other)
public ListPoliciesResponse.Builder mergeFrom(ListPoliciesResponse other)
Parameter
Returns
public ListPoliciesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListPoliciesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removePolicies(int index)
public ListPoliciesResponse.Builder removePolicies(int index)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListPoliciesResponse.Builder setNextPageToken(String value)
Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)
Page token used to retrieve the next page. This is currently not used, but
the server may at any point start supplying a valid token.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setPolicies(int index, Policy value)
public ListPoliciesResponse.Builder setPolicies(int index, Policy value)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameters
Returns
setPolicies(int index, Policy.Builder builderForValue)
public ListPoliciesResponse.Builder setPolicies(int index, Policy.Builder builderForValue)
All Policies
that exist on the resource. It will be empty if no
Policies
are set.
repeated .google.cloud.orgpolicy.v2.Policy policies = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides