Class ListCustomConstraintsRequest.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomConstraintsRequest build()
Returns
TypeDescription
ListCustomConstraintsRequest

buildPartial()

public ListCustomConstraintsRequest buildPartial()
Returns
TypeDescription
ListCustomConstraintsRequest

clear()

public ListCustomConstraintsRequest.Builder clear()
Returns
TypeDescription
ListCustomConstraintsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListCustomConstraintsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListCustomConstraintsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCustomConstraintsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ListCustomConstraintsRequest.Builder

This builder for chaining.

clone()

public ListCustomConstraintsRequest.Builder clone()
Returns
TypeDescription
ListCustomConstraintsRequest.Builder
Overrides

getDefaultInstanceForType()

public ListCustomConstraintsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListCustomConstraintsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCustomConstraintsRequest other)

public ListCustomConstraintsRequest.Builder mergeFrom(ListCustomConstraintsRequest other)
Parameter
NameDescription
otherListCustomConstraintsRequest
Returns
TypeDescription
ListCustomConstraintsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCustomConstraintsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCustomConstraintsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The pageSize to set.

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

The pageToken to set.

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

The bytes for pageToken to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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