Class ListConstraintsResponse.Builder (2.33.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.orgpolicy.v2.Constraint>
Returns
TypeDescription
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
NameDescription
valueConstraint
Returns
TypeDescription
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
NameDescription
builderForValueConstraint.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConstraint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConstraint.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Constraint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListConstraintsResponse build()
Returns
TypeDescription
ListConstraintsResponse

buildPartial()

public ListConstraintsResponse buildPartial()
Returns
TypeDescription
ListConstraintsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListConstraintsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListConstraintsResponse.Builder
Overrides

clone()

public ListConstraintsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.orgpolicy.v2.ConstraintOrBuilder>

getDefaultInstanceForType()

public ListConstraintsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListConstraintsResponse

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.

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.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListConstraintsResponse other)

public ListConstraintsResponse.Builder mergeFrom(ListConstraintsResponse other)
Parameter
NameDescription
otherListConstraintsResponse
Returns
TypeDescription
ListConstraintsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListConstraintsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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