Class ListConstraintsResponse.Builder (2.52.0)

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
Type Description
Descriptor

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
Type Description
ListConstraintsResponse.Builder

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
Name Description
value Constraint
Returns
Type Description
ListConstraintsResponse.Builder

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
Name Description
builderForValue Constraint.Builder
Returns
Type Description
ListConstraintsResponse.Builder

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
Name Description
index int
value Constraint
Returns
Type Description
ListConstraintsResponse.Builder

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
Name Description
index int
builderForValue Constraint.Builder
Returns
Type Description
ListConstraintsResponse.Builder

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
Type Description
Constraint.Builder

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
Name Description
index int
Returns
Type Description
Constraint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListConstraintsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListConstraintsResponse.Builder
Overrides

build()

public ListConstraintsResponse build()
Returns
Type Description
ListConstraintsResponse

buildPartial()

public ListConstraintsResponse buildPartial()
Returns
Type Description
ListConstraintsResponse

clear()

public ListConstraintsResponse.Builder clear()
Returns
Type Description
ListConstraintsResponse.Builder
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
Type Description
ListConstraintsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListConstraintsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListConstraintsResponse.Builder
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
Type Description
ListConstraintsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListConstraintsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListConstraintsResponse.Builder
Overrides

clone()

public ListConstraintsResponse.Builder clone()
Returns
Type Description
ListConstraintsResponse.Builder
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
Name Description
index int
Returns
Type Description
Constraint

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
Name Description
index int
Returns
Type Description
Constraint.Builder

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
Type Description
List<Builder>

getConstraintsCount()

public int getConstraintsCount()

The collection of constraints that are available on the targeted resource.

repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;

Returns
Type Description
int

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
Type Description
List<Constraint>

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
Name Description
index int
Returns
Type Description
ConstraintOrBuilder

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
Type Description
ListConstraintsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListConstraintsResponse other)

public ListConstraintsResponse.Builder mergeFrom(ListConstraintsResponse other)
Parameter
Name Description
other ListConstraintsResponse
Returns
Type Description
ListConstraintsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListConstraintsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListConstraintsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListConstraintsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListConstraintsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListConstraintsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListConstraintsResponse.Builder
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
Name Description
index int
Returns
Type Description
ListConstraintsResponse.Builder

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
Name Description
index int
value Constraint
Returns
Type Description
ListConstraintsResponse.Builder

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
Name Description
index int
builderForValue Constraint.Builder
Returns
Type Description
ListConstraintsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListConstraintsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListConstraintsResponse.Builder
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
Type Description
ListConstraintsResponse.Builder

This builder for chaining.

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
Type Description
ListConstraintsResponse.Builder

This builder for chaining.

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

public ListConstraintsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListConstraintsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListConstraintsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListConstraintsResponse.Builder
Overrides