Class ListCustomConstraintsRequest.Builder (2.43.0)

public static final class ListCustomConstraintsRequest.Builder extends GeneratedMessageV3.Builder<ListCustomConstraintsRequest.Builder> implements ListCustomConstraintsRequestOrBuilder

The request sent to the [ListCustomConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method.

Protobuf type google.cloud.orgpolicy.v2.ListCustomConstraintsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomConstraintsRequest build()
Returns
Type Description
ListCustomConstraintsRequest

buildPartial()

public ListCustomConstraintsRequest buildPartial()
Returns
Type Description
ListCustomConstraintsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListCustomConstraintsRequest.Builder clearPageSize()

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

int32 page_size = 2;

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

clearPageToken()

public ListCustomConstraintsRequest.Builder clearPageToken()

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

string page_token = 3;

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

clearParent()

public ListCustomConstraintsRequest.Builder clearParent()

Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListCustomConstraintsRequest getDefaultInstanceForType()
Returns
Type Description
ListCustomConstraintsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPageSize()

public int getPageSize()

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCustomConstraintsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public ListCustomConstraintsRequest.Builder setPageSize(int value)

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListCustomConstraintsRequest.Builder setPageToken(String value)

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListCustomConstraintsRequest.Builder setPageTokenBytes(ByteString value)

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

setParent(String value)

public ListCustomConstraintsRequest.Builder setParent(String value)

Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListCustomConstraintsRequest.Builder setParentBytes(ByteString value)

Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListCustomConstraintsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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