Class SearchProtectedResourcesResponse.Builder (0.8.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.kms.inventory.v1.ProtectedResource>
Returns
TypeDescription
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
NameDescription
valueProtectedResource
Returns
TypeDescription
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
NameDescription
builderForValueProtectedResource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueProtectedResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProtectedResource.Builder
Returns
TypeDescription
SearchProtectedResourcesResponse.Builder

addProtectedResourcesBuilder()

public ProtectedResource.Builder addProtectedResourcesBuilder()

Protected resources for this page.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProtectedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchProtectedResourcesResponse build()
Returns
TypeDescription
SearchProtectedResourcesResponse

buildPartial()

public SearchProtectedResourcesResponse buildPartial()
Returns
TypeDescription
SearchProtectedResourcesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchProtectedResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchProtectedResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtectedResources()

public SearchProtectedResourcesResponse.Builder clearProtectedResources()

Protected resources for this page.

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

Returns
TypeDescription
SearchProtectedResourcesResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchProtectedResourcesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchProtectedResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProtectedResource.Builder

getProtectedResourcesBuilderList()

public List<ProtectedResource.Builder> getProtectedResourcesBuilderList()

Protected resources for this page.

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

Returns
TypeDescription
List<Builder>

getProtectedResourcesCount()

public int getProtectedResourcesCount()

Protected resources for this page.

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

Returns
TypeDescription
int

getProtectedResourcesList()

public List<ProtectedResource> getProtectedResourcesList()

Protected resources for this page.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProtectedResourceOrBuilder

getProtectedResourcesOrBuilderList()

public List<? extends ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList()

Protected resources for this page.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchProtectedResourcesResponse other)

public SearchProtectedResourcesResponse.Builder mergeFrom(SearchProtectedResourcesResponse other)
Parameter
NameDescription
otherSearchProtectedResourcesResponse
Returns
TypeDescription
SearchProtectedResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchProtectedResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchProtectedResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchProtectedResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueProtectedResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProtectedResource.Builder
Returns
TypeDescription
SearchProtectedResourcesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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