Class ListPoliciesResponse.Builder (2.2.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.orgpolicy.v2.Policy>
Returns
TypeDescription
ListPoliciesResponse.Builder

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
NameDescription
valuePolicy
Returns
TypeDescription
ListPoliciesResponse.Builder

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
NameDescription
builderForValuePolicy.Builder
Returns
TypeDescription
ListPoliciesResponse.Builder

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
NameDescription
indexint
valuePolicy
Returns
TypeDescription
ListPoliciesResponse.Builder

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
NameDescription
indexint
builderForValuePolicy.Builder
Returns
TypeDescription
ListPoliciesResponse.Builder

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
TypeDescription
Policy.Builder

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
NameDescription
indexint
Returns
TypeDescription
Policy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides

build()

public ListPoliciesResponse build()
Returns
TypeDescription
ListPoliciesResponse

buildPartial()

public ListPoliciesResponse buildPartial()
Returns
TypeDescription
ListPoliciesResponse

clear()

public ListPoliciesResponse.Builder clear()
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListPoliciesResponse.Builder
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
TypeDescription
ListPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListPoliciesResponse.Builder
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
TypeDescription
ListPoliciesResponse.Builder

clone()

public ListPoliciesResponse.Builder clone()
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Policy

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
NameDescription
indexint
Returns
TypeDescription
Policy.Builder

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
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<Policy>

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
NameDescription
indexint
Returns
TypeDescription
PolicyOrBuilder

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
TypeDescription
List<? extends com.google.cloud.orgpolicy.v2.PolicyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPoliciesResponse other)

public ListPoliciesResponse.Builder mergeFrom(ListPoliciesResponse other)
Parameter
NameDescription
otherListPoliciesResponse
Returns
TypeDescription
ListPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListPoliciesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListPoliciesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListPoliciesResponse.Builder
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
NameDescription
indexint
Returns
TypeDescription
ListPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListPoliciesResponse.Builder
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListPoliciesResponse.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListPoliciesResponse.Builder

This builder for chaining.

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
NameDescription
indexint
valuePolicy
Returns
TypeDescription
ListPoliciesResponse.Builder

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
NameDescription
indexint
builderForValuePolicy.Builder
Returns
TypeDescription
ListPoliciesResponse.Builder

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

public ListPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListPoliciesResponse.Builder
Overrides