Class ListCustomConstraintsResponse.Builder (2.46.0)

public static final class ListCustomConstraintsResponse.Builder extends GeneratedMessageV3.Builder<ListCustomConstraintsResponse.Builder> implements ListCustomConstraintsResponseOrBuilder

The response returned from the [ListCustomConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method. It will be empty if no custom constraints are set on the organization resource.

Protobuf type google.cloud.orgpolicy.v2.ListCustomConstraintsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCustomConstraints(Iterable<? extends CustomConstraint> values)

public ListCustomConstraintsResponse.Builder addAllCustomConstraints(Iterable<? extends CustomConstraint> values)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.orgpolicy.v2.CustomConstraint>
Returns
Type Description
ListCustomConstraintsResponse.Builder

addCustomConstraints(CustomConstraint value)

public ListCustomConstraintsResponse.Builder addCustomConstraints(CustomConstraint value)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
value CustomConstraint
Returns
Type Description
ListCustomConstraintsResponse.Builder

addCustomConstraints(CustomConstraint.Builder builderForValue)

public ListCustomConstraintsResponse.Builder addCustomConstraints(CustomConstraint.Builder builderForValue)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
builderForValue CustomConstraint.Builder
Returns
Type Description
ListCustomConstraintsResponse.Builder

addCustomConstraints(int index, CustomConstraint value)

public ListCustomConstraintsResponse.Builder addCustomConstraints(int index, CustomConstraint value)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameters
Name Description
index int
value CustomConstraint
Returns
Type Description
ListCustomConstraintsResponse.Builder

addCustomConstraints(int index, CustomConstraint.Builder builderForValue)

public ListCustomConstraintsResponse.Builder addCustomConstraints(int index, CustomConstraint.Builder builderForValue)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameters
Name Description
index int
builderForValue CustomConstraint.Builder
Returns
Type Description
ListCustomConstraintsResponse.Builder

addCustomConstraintsBuilder()

public CustomConstraint.Builder addCustomConstraintsBuilder()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
CustomConstraint.Builder

addCustomConstraintsBuilder(int index)

public CustomConstraint.Builder addCustomConstraintsBuilder(int index)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomConstraint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomConstraintsResponse build()
Returns
Type Description
ListCustomConstraintsResponse

buildPartial()

public ListCustomConstraintsResponse buildPartial()
Returns
Type Description
ListCustomConstraintsResponse

clear()

public ListCustomConstraintsResponse.Builder clear()
Returns
Type Description
ListCustomConstraintsResponse.Builder
Overrides

clearCustomConstraints()

public ListCustomConstraintsResponse.Builder clearCustomConstraints()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
ListCustomConstraintsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCustomConstraintsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListCustomConstraintsResponse.Builder
Overrides

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListCustomConstraintsResponse.Builder clone()
Returns
Type Description
ListCustomConstraintsResponse.Builder
Overrides

getCustomConstraints(int index)

public CustomConstraint getCustomConstraints(int index)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomConstraint

getCustomConstraintsBuilder(int index)

public CustomConstraint.Builder getCustomConstraintsBuilder(int index)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomConstraint.Builder

getCustomConstraintsBuilderList()

public List<CustomConstraint.Builder> getCustomConstraintsBuilderList()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
List<Builder>

getCustomConstraintsCount()

public int getCustomConstraintsCount()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
int

getCustomConstraintsList()

public List<CustomConstraint> getCustomConstraintsList()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
List<CustomConstraint>

getCustomConstraintsOrBuilder(int index)

public CustomConstraintOrBuilder getCustomConstraintsOrBuilder(int index)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomConstraintOrBuilder

getCustomConstraintsOrBuilderList()

public List<? extends CustomConstraintOrBuilder> getCustomConstraintsOrBuilderList()

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Returns
Type Description
List<? extends com.google.cloud.orgpolicy.v2.CustomConstraintOrBuilder>

getDefaultInstanceForType()

public ListCustomConstraintsResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomConstraintsResponse

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, but the server may at any point start supplying a valid token.

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, but the server may at any point start supplying a valid token.

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(ListCustomConstraintsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCustomConstraintsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListCustomConstraintsResponse.Builder
Overrides

removeCustomConstraints(int index)

public ListCustomConstraintsResponse.Builder removeCustomConstraints(int index)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomConstraintsResponse.Builder

setCustomConstraints(int index, CustomConstraint value)

public ListCustomConstraintsResponse.Builder setCustomConstraints(int index, CustomConstraint value)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameters
Name Description
index int
value CustomConstraint
Returns
Type Description
ListCustomConstraintsResponse.Builder

setCustomConstraints(int index, CustomConstraint.Builder builderForValue)

public ListCustomConstraintsResponse.Builder setCustomConstraints(int index, CustomConstraint.Builder builderForValue)

All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.

repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;

Parameters
Name Description
index int
builderForValue CustomConstraint.Builder
Returns
Type Description
ListCustomConstraintsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCustomConstraintsResponse.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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCustomConstraintsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCustomConstraintsResponse.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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCustomConstraintsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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