public static final class ListConstraintsResponse.Builder extends GeneratedMessageV3.Builder<ListConstraintsResponse.Builder> implements ListConstraintsResponseOrBuilder
The response returned from the [ListConstraints]
[google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
Protobuf type google.cloud.orgpolicy.v2.ListConstraintsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllConstraints(Iterable<? extends Constraint> values)
public ListConstraintsResponse.Builder addAllConstraints(Iterable<? extends Constraint> values)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.orgpolicy.v2.Constraint>
|
Returns
addConstraints(Constraint value)
public ListConstraintsResponse.Builder addConstraints(Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
addConstraints(Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder addConstraints(Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
addConstraints(int index, Constraint value)
public ListConstraintsResponse.Builder addConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameters
Returns
addConstraints(int index, Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder addConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameters
Returns
addConstraintsBuilder()
public Constraint.Builder addConstraintsBuilder()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
addConstraintsBuilder(int index)
public Constraint.Builder addConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListConstraintsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListConstraintsResponse build()
Returns
buildPartial()
public ListConstraintsResponse buildPartial()
Returns
clear()
public ListConstraintsResponse.Builder clear()
Returns
Overrides
clearConstraints()
public ListConstraintsResponse.Builder clearConstraints()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ListConstraintsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListConstraintsResponse.Builder clearNextPageToken()
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListConstraintsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListConstraintsResponse.Builder clone()
Returns
Overrides
getConstraints(int index)
public Constraint getConstraints(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
getConstraintsBuilder(int index)
public Constraint.Builder getConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
getConstraintsBuilderList()
public List<Constraint.Builder> getConstraintsBuilderList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
getConstraintsCount()
public int getConstraintsCount()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
getConstraintsList()
public List<Constraint> getConstraintsList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
getConstraintsOrBuilder(int index)
public ConstraintOrBuilder getConstraintsOrBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
getConstraintsOrBuilderList()
public List<? extends ConstraintOrBuilder> getConstraintsOrBuilderList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns
Type | Description |
List<? extends com.google.cloud.orgpolicy.v2.ConstraintOrBuilder> | |
getDefaultInstanceForType()
public ListConstraintsResponse 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.
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.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListConstraintsResponse other)
public ListConstraintsResponse.Builder mergeFrom(ListConstraintsResponse other)
Parameter
Returns
public ListConstraintsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListConstraintsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListConstraintsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeConstraints(int index)
public ListConstraintsResponse.Builder removeConstraints(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter
Returns
setConstraints(int index, Constraint value)
public ListConstraintsResponse.Builder setConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameters
Returns
setConstraints(int index, Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder setConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListConstraintsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListConstraintsResponse.Builder setNextPageToken(String value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListConstraintsResponse.Builder setNextPageTokenBytes(ByteString value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListConstraintsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListConstraintsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides