Class SearchProtectedResourcesResponse.Builder (0.37.0)

public static final class SearchProtectedResourcesResponse.Builder extends GeneratedMessageV3.Builder<SearchProtectedResourcesResponse.Builder> implements SearchProtectedResourcesResponseOrBuilder

Response message for KeyTrackingService.SearchProtectedResources.

Protobuf type google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProtectedResources(Iterable<? extends ProtectedResource> values)

public SearchProtectedResourcesResponse.Builder addAllProtectedResources(Iterable<? extends ProtectedResource> values)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.kms.inventory.v1.ProtectedResource>
Returns
Type Description
SearchProtectedResourcesResponse.Builder

addProtectedResources(ProtectedResource value)

public SearchProtectedResourcesResponse.Builder addProtectedResources(ProtectedResource value)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
value ProtectedResource
Returns
Type Description
SearchProtectedResourcesResponse.Builder

addProtectedResources(ProtectedResource.Builder builderForValue)

public SearchProtectedResourcesResponse.Builder addProtectedResources(ProtectedResource.Builder builderForValue)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
builderForValue ProtectedResource.Builder
Returns
Type Description
SearchProtectedResourcesResponse.Builder

addProtectedResources(int index, ProtectedResource value)

public SearchProtectedResourcesResponse.Builder addProtectedResources(int index, ProtectedResource value)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameters
Name Description
index int
value ProtectedResource
Returns
Type Description
SearchProtectedResourcesResponse.Builder

addProtectedResources(int index, ProtectedResource.Builder builderForValue)

public SearchProtectedResourcesResponse.Builder addProtectedResources(int index, ProtectedResource.Builder builderForValue)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameters
Name Description
index int
builderForValue ProtectedResource.Builder
Returns
Type Description
SearchProtectedResourcesResponse.Builder

addProtectedResourcesBuilder()

public ProtectedResource.Builder addProtectedResourcesBuilder()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
ProtectedResource.Builder

addProtectedResourcesBuilder(int index)

public ProtectedResource.Builder addProtectedResourcesBuilder(int index)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ProtectedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchProtectedResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

build()

public SearchProtectedResourcesResponse build()
Returns
Type Description
SearchProtectedResourcesResponse

buildPartial()

public SearchProtectedResourcesResponse buildPartial()
Returns
Type Description
SearchProtectedResourcesResponse

clear()

public SearchProtectedResourcesResponse.Builder clear()
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchProtectedResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

clearNextPageToken()

public SearchProtectedResourcesResponse.Builder clearNextPageToken()

A token that 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
Type Description
SearchProtectedResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchProtectedResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

clearProtectedResources()

public SearchProtectedResourcesResponse.Builder clearProtectedResources()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
SearchProtectedResourcesResponse.Builder

clone()

public SearchProtectedResourcesResponse.Builder clone()
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchProtectedResourcesResponse getDefaultInstanceForType()
Returns
Type Description
SearchProtectedResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token that 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
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that 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
Type Description
ByteString

The bytes for nextPageToken.

getProtectedResources(int index)

public ProtectedResource getProtectedResources(int index)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ProtectedResource

getProtectedResourcesBuilder(int index)

public ProtectedResource.Builder getProtectedResourcesBuilder(int index)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ProtectedResource.Builder

getProtectedResourcesBuilderList()

public List<ProtectedResource.Builder> getProtectedResourcesBuilderList()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
List<Builder>

getProtectedResourcesCount()

public int getProtectedResourcesCount()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
int

getProtectedResourcesList()

public List<ProtectedResource> getProtectedResourcesList()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
List<ProtectedResource>

getProtectedResourcesOrBuilder(int index)

public ProtectedResourceOrBuilder getProtectedResourcesOrBuilder(int index)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ProtectedResourceOrBuilder

getProtectedResourcesOrBuilderList()

public List<? extends ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList()

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Returns
Type Description
List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchProtectedResourcesResponse other)

public SearchProtectedResourcesResponse.Builder mergeFrom(SearchProtectedResourcesResponse other)
Parameter
Name Description
other SearchProtectedResourcesResponse
Returns
Type Description
SearchProtectedResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchProtectedResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchProtectedResourcesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchProtectedResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

removeProtectedResources(int index)

public SearchProtectedResourcesResponse.Builder removeProtectedResources(int index)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchProtectedResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchProtectedResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

setNextPageToken(String value)

public SearchProtectedResourcesResponse.Builder setNextPageToken(String value)

A token that 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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchProtectedResourcesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchProtectedResourcesResponse.Builder setNextPageTokenBytes(ByteString value)

A token that 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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchProtectedResourcesResponse.Builder

This builder for chaining.

setProtectedResources(int index, ProtectedResource value)

public SearchProtectedResourcesResponse.Builder setProtectedResources(int index, ProtectedResource value)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameters
Name Description
index int
value ProtectedResource
Returns
Type Description
SearchProtectedResourcesResponse.Builder

setProtectedResources(int index, ProtectedResource.Builder builderForValue)

public SearchProtectedResourcesResponse.Builder setProtectedResources(int index, ProtectedResource.Builder builderForValue)

Protected resources for this page.

repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;

Parameters
Name Description
index int
builderForValue ProtectedResource.Builder
Returns
Type Description
SearchProtectedResourcesResponse.Builder

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

public SearchProtectedResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchProtectedResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchProtectedResourcesResponse.Builder
Overrides