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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ListPoliciesResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ListPoliciesResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ListPoliciesResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder mergeFrom(ListPoliciesResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public ListPoliciesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ListPoliciesResponse.Builder>
IOException
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;
getPoliciesList
in interface ListPoliciesResponseOrBuilder
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;
getPoliciesCount
in interface ListPoliciesResponseOrBuilder
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;
getPolicies
in interface ListPoliciesResponseOrBuilder
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getPoliciesOrBuilder
in interface ListPoliciesResponseOrBuilder
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;
getPoliciesOrBuilderList
in interface ListPoliciesResponseOrBuilder
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;
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;
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;
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;
getNextPageToken
in interface ListPoliciesResponseOrBuilder
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;
getNextPageTokenBytes
in interface ListPoliciesResponseOrBuilder
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;
value
- The nextPageToken to set.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;
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;
value
- The bytes for nextPageToken to set.public final ListPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
public final ListPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ListPoliciesResponse.Builder>
Copyright © 2021 Google LLC. All rights reserved.