public static final class ListConstraintsResponse.Builder extends GeneratedMessageV3.Builder<ListConstraintsResponse.Builder> implements ListConstraintsResponseOrBuilder
The response returned from the [ListConstraints]
[google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
Protobuf type google.cloud.orgpolicy.v2.ListConstraintsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllConstraints(Iterable<? extends Constraint> values)
public ListConstraintsResponse.Builder addAllConstraints(Iterable<? extends Constraint> values)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.orgpolicy.v2.Constraint>
|
addConstraints(Constraint value)
public ListConstraintsResponse.Builder addConstraints(Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
addConstraints(Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder addConstraints(Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
addConstraints(int index, Constraint value)
public ListConstraintsResponse.Builder addConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
addConstraints(int index, Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder addConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
addConstraintsBuilder()
public Constraint.Builder addConstraintsBuilder()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
addConstraintsBuilder(int index)
public Constraint.Builder addConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListConstraintsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListConstraintsResponse build()
buildPartial()
public ListConstraintsResponse buildPartial()
clear()
public ListConstraintsResponse.Builder clear()
Overrides
clearConstraints()
public ListConstraintsResponse.Builder clearConstraints()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
clearField(Descriptors.FieldDescriptor field)
public ListConstraintsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListConstraintsResponse.Builder clearNextPageToken()
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListConstraintsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListConstraintsResponse.Builder clone()
Overrides
getConstraints(int index)
public Constraint getConstraints(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
index | int
|
getConstraintsBuilder(int index)
public Constraint.Builder getConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
index | int
|
getConstraintsBuilderList()
public List<Constraint.Builder> getConstraintsBuilderList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
getConstraintsCount()
public int getConstraintsCount()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns |
---|
Type | Description |
int | |
getConstraintsList()
public List<Constraint> getConstraintsList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
getConstraintsOrBuilder(int index)
public ConstraintOrBuilder getConstraintsOrBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
index | int
|
getConstraintsOrBuilderList()
public List<? extends ConstraintOrBuilder> getConstraintsOrBuilderList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.orgpolicy.v2.ConstraintOrBuilder> | |
getDefaultInstanceForType()
public ListConstraintsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
Page token used to retrieve the next page. This is currently not used.
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.
string next_page_token = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for nextPageToken.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListConstraintsResponse other)
public ListConstraintsResponse.Builder mergeFrom(ListConstraintsResponse other)
public ListConstraintsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListConstraintsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListConstraintsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeConstraints(int index)
public ListConstraintsResponse.Builder removeConstraints(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
Parameter |
---|
Name | Description |
index | int
|
setConstraints(int index, Constraint value)
public ListConstraintsResponse.Builder setConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
setConstraints(int index, Constraint.Builder builderForValue)
public ListConstraintsResponse.Builder setConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ListConstraintsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListConstraintsResponse.Builder setNextPageToken(String value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListConstraintsResponse.Builder setNextPageTokenBytes(ByteString value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListConstraintsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListConstraintsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides