Class ListCustomConstraintsResponse.Builder (2.35.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.orgpolicy.v2.CustomConstraint>
Returns
TypeDescription
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
NameDescription
valueCustomConstraint
Returns
TypeDescription
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
NameDescription
builderForValueCustomConstraint.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomConstraint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomConstraint.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CustomConstraint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomConstraintsResponse build()
Returns
TypeDescription
ListCustomConstraintsResponse

buildPartial()

public ListCustomConstraintsResponse buildPartial()
Returns
TypeDescription
ListCustomConstraintsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListCustomConstraintsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCustomConstraintsResponse

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

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

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

public ListCustomConstraintsResponse.Builder mergeFrom(ListCustomConstraintsResponse other)
Parameter
NameDescription
otherListCustomConstraintsResponse
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCustomConstraintsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCustomConstraint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomConstraint.Builder
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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