public static final class ListSourcesResponse.Builder extends GeneratedMessageV3.Builder<ListSourcesResponse.Builder> implements ListSourcesResponseOrBuilder
Response message for listing sources.
Protobuf type google.cloud.securitycenter.v1.ListSourcesResponse
Methods
addAllSources(Iterable<? extends Source> values)
public ListSourcesResponse.Builder addAllSources(Iterable<? extends Source> values)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.securitycenter.v1.Source>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSources(Source value)
public ListSourcesResponse.Builder addSources(Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
addSources(Source.Builder builderForValue)
public ListSourcesResponse.Builder addSources(Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
addSources(int index, Source value)
public ListSourcesResponse.Builder addSources(int index, Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameters
Returns
addSources(int index, Source.Builder builderForValue)
public ListSourcesResponse.Builder addSources(int index, Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameters
Returns
addSourcesBuilder()
public Source.Builder addSourcesBuilder()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
addSourcesBuilder(int index)
public Source.Builder addSourcesBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
build()
public ListSourcesResponse build()
Returns
buildPartial()
public ListSourcesResponse buildPartial()
Returns
clear()
public ListSourcesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListSourcesResponse.Builder clearNextPageToken()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSources()
public ListSourcesResponse.Builder clearSources()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
clone()
public ListSourcesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListSourcesResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getSources(int index)
public Source getSources(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
getSourcesBuilder(int index)
public Source.Builder getSourcesBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
getSourcesBuilderList()
public List<Source.Builder> getSourcesBuilderList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
getSourcesCount()
public int getSourcesCount()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
getSourcesList()
public List<Source> getSourcesList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
getSourcesOrBuilder(int index)
public SourceOrBuilder getSourcesOrBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
getSourcesOrBuilderList()
public List<? extends SourceOrBuilder> getSourcesOrBuilderList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Returns
Type | Description |
List<? extends com.google.cloud.securitycenter.v1.SourceOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListSourcesResponse other)
public ListSourcesResponse.Builder mergeFrom(ListSourcesResponse other)
Parameter
Returns
public ListSourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListSourcesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSources(int index)
public ListSourcesResponse.Builder removeSources(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListSourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListSourcesResponse.Builder setNextPageToken(String value)
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListSourcesResponse.Builder setNextPageTokenBytes(ByteString value)
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSources(int index, Source value)
public ListSourcesResponse.Builder setSources(int index, Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameters
Returns
setSources(int index, Source.Builder builderForValue)
public ListSourcesResponse.Builder setSources(int index, Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v1.Source sources = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides