Class ListRuleSetsResponse.Builder (0.5.0)

public static final class ListRuleSetsResponse.Builder extends GeneratedMessageV3.Builder<ListRuleSetsResponse.Builder> implements ListRuleSetsResponseOrBuilder

Response message for RuleSetService.ListRuleSets.

Protobuf type google.cloud.contentwarehouse.v1.ListRuleSetsResponse

Static Methods

getDescriptor()

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

Methods

addAllRuleSets(Iterable<? extends RuleSet> values)

public ListRuleSetsResponse.Builder addAllRuleSets(Iterable<? extends RuleSet> values)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.RuleSet>
Returns
TypeDescription
ListRuleSetsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRuleSets(RuleSet value)

public ListRuleSetsResponse.Builder addRuleSets(RuleSet value)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
valueRuleSet
Returns
TypeDescription
ListRuleSetsResponse.Builder

addRuleSets(RuleSet.Builder builderForValue)

public ListRuleSetsResponse.Builder addRuleSets(RuleSet.Builder builderForValue)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
builderForValueRuleSet.Builder
Returns
TypeDescription
ListRuleSetsResponse.Builder

addRuleSets(int index, RuleSet value)

public ListRuleSetsResponse.Builder addRuleSets(int index, RuleSet value)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameters
NameDescription
indexint
valueRuleSet
Returns
TypeDescription
ListRuleSetsResponse.Builder

addRuleSets(int index, RuleSet.Builder builderForValue)

public ListRuleSetsResponse.Builder addRuleSets(int index, RuleSet.Builder builderForValue)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameters
NameDescription
indexint
builderForValueRuleSet.Builder
Returns
TypeDescription
ListRuleSetsResponse.Builder

addRuleSetsBuilder()

public RuleSet.Builder addRuleSetsBuilder()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
RuleSet.Builder

addRuleSetsBuilder(int index)

public RuleSet.Builder addRuleSetsBuilder(int index)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RuleSet.Builder

build()

public ListRuleSetsResponse build()
Returns
TypeDescription
ListRuleSetsResponse

buildPartial()

public ListRuleSetsResponse buildPartial()
Returns
TypeDescription
ListRuleSetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRuleSetsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListRuleSetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRuleSetsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListRuleSetsResponse.Builder
Overrides

clearRuleSets()

public ListRuleSetsResponse.Builder clearRuleSets()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
ListRuleSetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListRuleSetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRuleSetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getRuleSets(int index)

public RuleSet getRuleSets(int index)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RuleSet

getRuleSetsBuilder(int index)

public RuleSet.Builder getRuleSetsBuilder(int index)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RuleSet.Builder

getRuleSetsBuilderList()

public List<RuleSet.Builder> getRuleSetsBuilderList()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
List<Builder>

getRuleSetsCount()

public int getRuleSetsCount()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
int

getRuleSetsList()

public List<RuleSet> getRuleSetsList()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
List<RuleSet>

getRuleSetsOrBuilder(int index)

public RuleSetOrBuilder getRuleSetsOrBuilder(int index)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RuleSetOrBuilder

getRuleSetsOrBuilderList()

public List<? extends RuleSetOrBuilder> getRuleSetsOrBuilderList()

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRuleSetsResponse other)

public ListRuleSetsResponse.Builder mergeFrom(ListRuleSetsResponse other)
Parameter
NameDescription
otherListRuleSetsResponse
Returns
TypeDescription
ListRuleSetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRuleSets(int index)

public ListRuleSetsResponse.Builder removeRuleSets(int index)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListRuleSetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRuleSetsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListRuleSetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRuleSetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListRuleSetsResponse.Builder

This builder for chaining.

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

public ListRuleSetsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListRuleSetsResponse.Builder
Overrides

setRuleSets(int index, RuleSet value)

public ListRuleSetsResponse.Builder setRuleSets(int index, RuleSet value)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameters
NameDescription
indexint
valueRuleSet
Returns
TypeDescription
ListRuleSetsResponse.Builder

setRuleSets(int index, RuleSet.Builder builderForValue)

public ListRuleSetsResponse.Builder setRuleSets(int index, RuleSet.Builder builderForValue)

The rule sets from the specified parent.

repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1;

Parameters
NameDescription
indexint
builderForValueRuleSet.Builder
Returns
TypeDescription
ListRuleSetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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