Package com.google.cloud.orgpolicy.v2
Class ListConstraintsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
- com.google.cloud.orgpolicy.v2.ListConstraintsResponse.Builder
-
- All Implemented Interfaces:
ListConstraintsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListConstraintsResponse
public static final class ListConstraintsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder> implements ListConstraintsResponseOrBuilder
The response returned from the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
Protobuf typegoogle.cloud.orgpolicy.v2.ListConstraintsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListConstraintsResponse.Builder
addAllConstraints(Iterable<? extends Constraint> values)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
addConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
addConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
addConstraints(Constraint value)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
addConstraints(Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.Constraint.Builder
addConstraintsBuilder()
The collection of constraints that are available on the targeted resource.Constraint.Builder
addConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListConstraintsResponse
build()
ListConstraintsResponse
buildPartial()
ListConstraintsResponse.Builder
clear()
ListConstraintsResponse.Builder
clearConstraints()
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListConstraintsResponse.Builder
clearNextPageToken()
Page token used to retrieve the next page.ListConstraintsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListConstraintsResponse.Builder
clone()
Constraint
getConstraints(int index)
The collection of constraints that are available on the targeted resource.Constraint.Builder
getConstraintsBuilder(int index)
The collection of constraints that are available on the targeted resource.List<Constraint.Builder>
getConstraintsBuilderList()
The collection of constraints that are available on the targeted resource.int
getConstraintsCount()
The collection of constraints that are available on the targeted resource.List<Constraint>
getConstraintsList()
The collection of constraints that are available on the targeted resource.ConstraintOrBuilder
getConstraintsOrBuilder(int index)
The collection of constraints that are available on the targeted resource.List<? extends ConstraintOrBuilder>
getConstraintsOrBuilderList()
The collection of constraints that are available on the targeted resource.ListConstraintsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
Page token used to retrieve the next page.com.google.protobuf.ByteString
getNextPageTokenBytes()
Page token used to retrieve the next page.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListConstraintsResponse.Builder
mergeFrom(ListConstraintsResponse other)
ListConstraintsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListConstraintsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListConstraintsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListConstraintsResponse.Builder
removeConstraints(int index)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
setConstraints(int index, Constraint value)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
setConstraints(int index, Constraint.Builder builderForValue)
The collection of constraints that are available on the targeted resource.ListConstraintsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListConstraintsResponse.Builder
setNextPageToken(String value)
Page token used to retrieve the next page.ListConstraintsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
Page token used to retrieve the next page.ListConstraintsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListConstraintsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
clear
public ListConstraintsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
getDefaultInstanceForType
public ListConstraintsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListConstraintsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListConstraintsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListConstraintsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
setField
public ListConstraintsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
clearField
public ListConstraintsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
clearOneof
public ListConstraintsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
setRepeatedField
public ListConstraintsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
addRepeatedField
public ListConstraintsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
mergeFrom
public ListConstraintsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListConstraintsResponse.Builder>
-
mergeFrom
public ListConstraintsResponse.Builder mergeFrom(ListConstraintsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
mergeFrom
public ListConstraintsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListConstraintsResponse.Builder>
- Throws:
IOException
-
getConstraintsList
public List<Constraint> getConstraintsList()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
- Specified by:
getConstraintsList
in interfaceListConstraintsResponseOrBuilder
-
getConstraintsCount
public int getConstraintsCount()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
- Specified by:
getConstraintsCount
in interfaceListConstraintsResponseOrBuilder
-
getConstraints
public Constraint getConstraints(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
- Specified by:
getConstraints
in interfaceListConstraintsResponseOrBuilder
-
setConstraints
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
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;
-
addConstraints
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
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
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
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;
-
addAllConstraints
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;
-
clearConstraints
public ListConstraintsResponse.Builder clearConstraints()
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
-
removeConstraints
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;
-
getConstraintsBuilder
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;
-
getConstraintsOrBuilder
public ConstraintOrBuilder getConstraintsOrBuilder(int index)
The collection of constraints that are available on the targeted resource.
repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
- Specified by:
getConstraintsOrBuilder
in interfaceListConstraintsResponseOrBuilder
-
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;
- Specified by:
getConstraintsOrBuilderList
in interfaceListConstraintsResponseOrBuilder
-
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
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;
-
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;
-
getNextPageToken
public String getNextPageToken()
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
- Specified by:
getNextPageToken
in interfaceListConstraintsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
- Specified by:
getNextPageTokenBytes
in interfaceListConstraintsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
public ListConstraintsResponse.Builder setNextPageToken(String value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public ListConstraintsResponse.Builder clearNextPageToken()
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListConstraintsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
Page token used to retrieve the next page. This is currently not used.
string next_page_token = 2;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListConstraintsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
mergeUnknownFields
public final ListConstraintsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListConstraintsResponse.Builder>
-
-