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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
addProtectedResourcesBuilder()
public ProtectedResource.Builder addProtectedResourcesBuilder()
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchProtectedResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchProtectedResourcesResponse build()
Returns
buildPartial()
public SearchProtectedResourcesResponse buildPartial()
Returns
clear()
public SearchProtectedResourcesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchProtectedResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchProtectedResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProtectedResources()
public SearchProtectedResourcesResponse.Builder clearProtectedResources()
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Returns
clone()
public SearchProtectedResourcesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchProtectedResourcesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getProtectedResourcesBuilderList()
public List<ProtectedResource.Builder> getProtectedResourcesBuilderList()
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Returns
getProtectedResourcesCount()
public int getProtectedResourcesCount()
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Returns
getProtectedResourcesList()
public List<ProtectedResource> getProtectedResourcesList()
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Returns
getProtectedResourcesOrBuilder(int index)
public ProtectedResourceOrBuilder getProtectedResourcesOrBuilder(int index)
Protected resources for this page.
repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchProtectedResourcesResponse other)
public SearchProtectedResourcesResponse.Builder mergeFrom(SearchProtectedResourcesResponse other)
Parameter
Returns
public SearchProtectedResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchProtectedResourcesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchProtectedResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchProtectedResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchProtectedResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchProtectedResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides