Class ListCustomConstraintsResponse (2.33.0)

public final class ListCustomConstraintsResponse extends GeneratedMessageV3 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 Fields

CUSTOM_CONSTRAINTS_FIELD_NUMBER

public static final int CUSTOM_CONSTRAINTS_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListCustomConstraintsResponse getDefaultInstance()
Returns
TypeDescription
ListCustomConstraintsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ListCustomConstraintsResponse.Builder newBuilder()
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

newBuilder(ListCustomConstraintsResponse prototype)

public static ListCustomConstraintsResponse.Builder newBuilder(ListCustomConstraintsResponse prototype)
Parameter
NameDescription
prototypeListCustomConstraintsResponse
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListCustomConstraintsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListCustomConstraintsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListCustomConstraintsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListCustomConstraintsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListCustomConstraintsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListCustomConstraintsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListCustomConstraintsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCustomConstraintsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListCustomConstraintsResponse> parser()
Returns
TypeDescription
Parser<ListCustomConstraintsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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.

getParserForType()

public Parser<ListCustomConstraintsResponse> getParserForType()
Returns
TypeDescription
Parser<ListCustomConstraintsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListCustomConstraintsResponse.Builder newBuilderForType()
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListCustomConstraintsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListCustomConstraintsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListCustomConstraintsResponse.Builder toBuilder()
Returns
TypeDescription
ListCustomConstraintsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException